View difference between Paste ID: 2AKfa6FG and 0aHEen03
SHOW: | | - or go back to the newest paste.
1
--[[ 
2
This program is designed for use with Computercraft
3-
This is a legacy version of the billboard program designed for use in Minecraft 1.6.4
3+
This is a legacy version of the kiosk program designed for use in minecraft 1.6.4 and earlier (Tekkit)
4
Custom version for: The Condemned Network - Tekkit Main (1.6.4) player mall
5-
Billboard Specs: 8 blocks wide by 5 blocks tall advanced monitor 
5+
Kiosk Specs: 2 blocks wide by 3 blocks tall advanced monitor 
6-
 
6+
7
Programmed by Rolcam
8
You can copy/modify this program as you wish, just please leave the documentation intact
9-
 
9+
10
]]--
11
-- Mall Location Variable (mLoc) - This determines what text based sign the kiosk is to display when it cycles back to its main screen
12-
-- Adds a casino advert to the sign rotation if set to 1
12+
-- Default Locations: 0 - Ad Agency Demo | 1 - Main Mall Directory (Front Entrance Facing) | 2 - McDonalds Kiosk | 3 - Ad Only Mode
13-
slotHall = 0 
13+
mLoc = 3
14
--Change this to the side the monitor is on
15-
side = "back"
15+
side = "top"
16-
-- Time variable for how long (in seconds) to display each advert
16+
-- Time variable for how long (in seconds) to display each sign
17-
t = 5
17+
t = 7
18
--Prevents program termination
19
os.pullEvent = os.pullEventRaw
20
--Redirects setup/install output to monitor (for artistic effect)
21
local monitor = peripheral.wrap(side)
22
if not fs.exists("boot") then
23
    term.setTextColor(colors.red)
24
    print("Warning: boot image missing!")
25-
    shell.run("pastebin get edscQ8zU boot")
25+
26
    term.setTextColor(colors.white)
27-
    print("Main boot image downloaded.")
27+
    shell.run("pastebin get JUKMFJSe boot")
28
    term.setTextColor(colors.green)
29
    print("Kiosk boot image downloaded.")
30
    term.setTextColor(colors.white)
31
else
32
    term.setTextColor(colors.green)
33
    print("boot image found!")
34
    term.setTextColor(colors.white)
35
end
36
local img = paintutils.loadImage("boot")
37
term.redirect(monitor)
38
paintutils.drawImage(img, 1,1)
39
term.restore()
40
term.setBackgroundColor(colors.blue)
41
term.setTextColor(colors.orange)
42
term.clear()
43
print("Rolcam's Billboard Program V3")
44
term.setTextColor(colors.white)
45
print(" ")
46
print("Beginning system check...")
47
--Checks for missing signs and labels itself
48
print("Checking signs...")
49
if not fs.exists("image") then
50
    term.setTextColor(colors.red)
51
    print("Warning: advert image missing!")
52-
    shell.run("pastebin get EZDcTC35 image")
52+
53
    print("Downloading image...")
54
    shell.run("pastebin get WwMDuBuY image")
55
    term.setTextColor(colors.green)
56
    print("File downloaded")
57
    term.setTextColor(colors.white)
58
else
59
    term.setTextColor(colors.green)
60
    print("beach image found!")
61
    term.setTextColor(colors.white)
62-
if not fs.exists("mall") then
62+
63
64-
    print("Warning: Mall sign is missing!")
64+
if not fs.exists("XpqUUpqX") then
65
    term.setTextColor(colors.red)
66
	print("Warning: XpqUUpqX's advert sign is missing!")
67-
    shell.run("pastebin get k1dsWddA mall")
67+
	term.setTextColor(colors.white)
68
	print("Downloading image...")
69
	shell.run("pastebin get NSRCc7uv XpqUUpqX")
70
	term.setTextColor(colors.green)
71
	print("File downloaded")
72
	term.setTextColor(colors.white)
73-
    print("Mall sign image found!")
73+
74
    term.setTextColor(colors.green)
75
    print("XpqUUpqX's advert sign found!")
76
    term.setTextColor(colors.white)
77-
--Downloads the slot hall signs if this board is configured for the slot hall
77+
78-
if slotHall == 1 then
78+
79-
    if not fs.exists("Frame1") then
79+
if not fs.exists("JoeBobDaGreat") then
80-
        term.setTextColor(colors.red)
80+
81-
        print("Warning: Slot frame 1 image missing!")
81+
	print("Warning: JoeBobDaGreat's advert sign is missing!")
82-
        term.setTextColor(colors.white)
82+
	term.setTextColor(colors.white)
83-
        print("Downloading image...")
83+
	print("Downloading image...")
84-
        shell.run("pastebin get 0jtcj1F4 Frame1")
84+
	shell.run("pastebin get QRFnPLvu JoeBobDaGreat")
85-
        term.setTextColor(colors.green)
85+
	term.setTextColor(colors.green)
86-
        print("File downloaded")
86+
	print("File downloaded")
87-
        term.setTextColor(colors.white)
87+
	term.setTextColor(colors.white)
88
else
89-
        term.setTextColor(colors.green)
89+
90-
        print("Slot frame 1 image found!")
90+
    print("JoeBobDaGreat's advert sign found!")
91-
        term.setTextColor(colors.white)
91+
92
end
93-
    if not fs.exists("Frame2") then
93+
94-
        term.setTextColor(colors.red)
94+
if mLoc == 2 then
95-
        print("Warning: Slot frame 2 image missing!")
95+
    if not fs.exists("McDonalds") then
96-
        term.setTextColor(colors.white)
96+
    	term.setTextColor(colors.red)
97-
        print("Downloading image...")
97+
		print("Warning: Kiosk McDonalds sign is missing!")
98-
        shell.run("pastebin get xgqQ1wJ2 Frame2")
98+
		term.setTextColor(colors.white)
99-
        term.setTextColor(colors.green)
99+
		print("Downloading image...")
100-
        print("File downloaded")
100+
		shell.run("pastebin get J3PTn6ze McDonalds")
101-
        term.setTextColor(colors.white)
101+
		term.setTextColor(colors.green)
102
		print("File downloaded")
103-
        term.setTextColor(colors.green)
103+
		term.setTextColor(colors.white)
104-
        print("Slot frame 2 image found!")
104+
	else
105-
        term.setTextColor(colors.white)
105+
    	term.setTextColor(colors.green)
106
    	print("Kiosk McDonalds sign found!")
107-
    if not fs.exists("Frame3") then
107+
    	term.setTextColor(colors.white)
108-
        term.setTextColor(colors.red)
108+
	end
109-
        print("Warning: Slot frame 3 image missing!")
109+
110-
        term.setTextColor(colors.white)
110+
111-
        print("Downloading image...")
111+
--Sign Loading
112-
        shell.run("pastebin get 07eWGpLk Frame3")
112+
113-
        term.setTextColor(colors.green)
113+
XpqAd = paintutils.loadImage("XpqUUpqX")
114-
        print("File downloaded")
114+
McDon = paintutils.loadImage("McDonalds")
115-
        term.setTextColor(colors.white)
115+
JoeBobAd = paintutils.loadImage("JoeBobDaGreat")
116
        
117-
        term.setTextColor(colors.green)
117+
118-
        print("Slot frame 3 image found!")
118+
119-
        term.setTextColor(colors.white)
119+
120
    term.setTextColor(colors.red)
121-
    p = paintutils.loadImage("Frame1")
121+
122-
    q = paintutils.loadImage("Frame2")
122+
123-
    s = paintutils.loadImage("Frame3")
123+
    os.setComputerLabel("Mall - Advert Kiosk")
124
    term.setTextColor(colors.white)
125
else
126
    term.setTextColor(colors.green)
127
    print("Computer is already labelled. Great!")
128
    term.setTextColor(colors.white)
129
end
130
print("System Check Completed!")
131
sleep(1)
132
print("Starting Kiosk!")
133-
    os.setComputerLabel("Mall - Billboard")
133+
134
-- Displays text overlay over images - Modify this to fit your needs
135
function adText()
136
    if mLoc == 0 then
137
        term.setBackgroundColor(colors.black)
138
 		term.clear()
139
        term.setCursorPos(1,1)
140-
print("Starting Billboard!")
140+
        term.setTextColor(colors.orange)
141
        print("  Condemned Mall  ")
142
        print("Advertising Agency")
143
        print("    Demo Kiosk    ")
144-
mallImg = paintutils.loadImage("mall")
144+
        print(" ")
145
        term.setTextColor(colors.yellow)
146-
	paintutils.drawImage(mallImg, 1, 1)
146+
        sleep(0.5)
147-
    sleep(10)
147+
        print("Pricing Rates --->")
148
        print(" ")
149
  		sleep(0.5)
150-
	if slotHall == 1 then
150+
        print("<--- Example Text ")
151-
        num1 = 1
151+
        sleep(0.5)
152-
        num2 = 2
152+
        print(" Example Text --->")
153-
        num3 = 3
153+
        sleep(10)
154-
        term.setBackgroundColor(colors.orange)
154+
    elseif mLoc == 1 then
155
    	term.setBackgroundColor(colors.black)
156-
        paintutils.drawImage(p,15,7)
156+
157-
        term.setCursorPos(21,20)
157+
        term.setTextColor(colors.yellow)
158-
        print(">")
158+
        term.setCursorPos(1,1)
159-
        term.setCursorPos(31,20)
159+
        print("Welcome :)")
160-
        if num1 == 1 then
160+
        print("Condemned Mall")
161-
            print("7")
161+
        print("Player Shops")
162-
        elseif num1 == 2 then
162+
        term.setTextColor(colors.cyan)
163-
            print("R")
163+
        term.setCursorPos(1,6)
164-
        elseif num1 == 3 then
164+
        print("Created by:")
165-
            print("J")
165+
        print("Vloetboy, Rush0313 ")
166-
        elseif num1 == 4 then
166+
        print("& Admins")
167-
            print("I")
167+
        term.setTextColor(colors.yellow)
168-
        elseif num1 == 5 then
168+
        term.setCursorPos(1,10)
169-
            print("D")
169+
        print("   McDonalds and   ")
170-
        else
170+
        print("     Taco Bell     ")
171-
            print("L")
171+
        print("    --------->>    ")
172-
        end
172+
        print(" ")
173-
        term.setCursorPos(41,20)
173+
        print("  /warp tutorial   ")
174-
        if num2 == 1 then
174+
        print("    <<---------    ")
175-
            print("7")
175+
        print(" ")
176-
        elseif num2 == 2 then
176+
        term.setTextColor(colors.orange)
177-
            print("R")
177+
        print("    Admin Shop     ")
178-
        elseif num2 == 3 then
178+
        print("  Straight Ahead!  ")
179-
            print("J")
179+
        sleep(10)
180-
        elseif num2 == 4 then
180+
    elseif mLoc == 2 then
181-
            print("I")
181+
		term.clear()
182-
        elseif num2 == 5 then
182+
        paintutils.drawImage(McDon, 1, 1)
183-
            print("D")
183+
        term.setTextColor(colors.yellow)
184-
        else
184+
        term.setCursorPos(1,10)
185-
            print("L")
185+
        print("    Welcome to     ")
186-
        end
186+
        print("     McDonalds     ")
187-
        term.setCursorPos(51,20)
187+
        print("                   ")
188-
        if num3 == 1 then
188+
        print("    Order Here!    ")
189-
            print("7")
189+
        sleep(10)
190-
        elseif num3 == 2 then
190+
    elseif mLoc == 3 then
191-
            print("R")
191+
        sleep(0.5)
192-
        elseif num3 == 3 then
192+
193-
            print("J")
193+
        if adNum == 1 then
194-
        elseif num3 == 4 then
194+
    		term.setTextColor(colors.orange)
195-
            print("I")
195+
			term.setBackgroundColor(colors.black)
196-
        elseif num3 == 5 then
196+
    		term.setCursorPos(2,14)
197-
            print("D")
197+
    		print("  Your Ad Here! ")
198-
        else
198+
    		term.setCursorPos(2,15)
199-
            print("L")
199+
    		print(" Contact Rolcam ")
200-
        end
200+
        	term.setCursorPos(2,16)
201-
        term.setCursorPos(61,20)
201+
        	print("  for details!  ")
202-
        print("<")
202+
    		term.setTextColor(colors.white)
203-
        sleep(1)
203+
    		term.setCursorPos(1,1)
204-
        paintutils.drawImage(q,15,7)
204+
        elseif adNum == 2 then
205-
        term.setCursorPos(21,20)
205+
            term.setTextColor(colors.orange)
206-
        print(">")
206+
			term.setBackgroundColor(colors.purple)
207-
        term.setCursorPos(31,20)
207+
    		term.setCursorPos(1,14)
208-
        if num1 == 1 then
208+
    		print("     Buy From     ")
209-
            print("7")
209+
    		print("  XpqUUpqX's Shop ")
210-
        elseif num1 == 2 then
210+
    		term.setTextColor(colors.white)
211-
            print("R")
211+
    		term.setCursorPos(1,1)
212-
        elseif num1 == 3 then
212+
        elseif adNum == 3 then
213-
            print("J")
213+
            term.setTextColor(colors.black)
214-
        elseif num1 == 4 then
214+
			term.setBackgroundColor(colors.cyan)
215-
            print("I")
215+
    		term.setCursorPos(1,13)
216-
        elseif num1 == 5 then
216+
    		print("    Buy From      ")
217-
            print("D")
217+
    		print("  JoeBobDaGreat   ")
218-
        else
218+
            print(" ")
219-
            print("L")
219+
            print(" Joe's prices will")
220-
        end
220+
            print("   be the best!   ")
221-
        term.setCursorPos(41,20)
221+
            print("     One day.     ")
222-
        if num2 == 1 then
222+
    		term.setTextColor(colors.white)
223-
            print("7")
223+
    		term.setCursorPos(1,1)
224-
        elseif num2 == 2 then
224+
        	
225-
            print("R")
225+
    	end
226-
        elseif num2 == 3 then
226+
227-
            print("J")
227+
228-
        elseif num2 == 4 then
228+
229-
            print("I")
229+
230-
        elseif num2 == 5 then
230+
231-
            print("D")
231+
mLoc2 = mLoc
232-
        else
232+
233-
            print("L")
233+
234-
        end
234+
235-
        term.setCursorPos(51,20)
235+
    -- Main Screen
236-
        if num3 == 1 then
236+
    mLoc = mLoc2
237-
            print("7")
237+
    adText()
238-
        elseif num3 == 2 then
238+
    -- Default Advert
239-
            print("R")
239+
	mLoc = 999
240-
        elseif num3 == 3 then
240+
241-
            print("J")
241+
    adNum = 1
242-
        elseif num3 == 4 then
242+
    adText()
243-
            print("I")
243+
244-
        elseif num3 == 5 then
244+
    -- Main Screen
245-
            print("D")
245+
    mLoc = mLoc2
246-
        else
246+
    adText()
247-
            print("L")
247+
    -- XpqUUpqX's Advert
248-
        end
248+
	mLoc = 999
249-
        term.setCursorPos(61,20)
249+
    adNum = 2
250-
        print("<")
250+
    paintutils.drawImage(XpqAd, 1, 1)
251-
        sleep(0.2)
251+
    adText()
252-
        paintutils.drawImage(s,15,7)
252+
253-
        term.setCursorPos(21,20)
253+
    -- Main Screen
254-
        print(">")
254+
    mLoc = mLoc2
255-
        term.setCursorPos(31,20)
255+
    adText()
256-
        if num1 == 1 then
256+
    -- JoeBobDaGreat's Advert
257-
            print("7")
257+
	mLoc = 999
258-
        elseif num1 == 2 then
258+
    adNum = 3
259-
            print("R")
259+
    paintutils.drawImage(JoeBobAd, 1, 1)
260-
        elseif num1 == 3 then
260+
    adText()
261-
            print("J")
261+
262-
        elseif num1 == 4 then
262+