Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("col")
- col.setBackground(colors.black)
- rednet.open("bottom")
- col.clear()
- function alloff()
- col.msg(02," &8+-------------+")
- col.msg(03," &8|&7Zombie-Pigmen&8| &cAUS")
- col.msg(04," &8+-------------+")
- col.msg(05," &8+-------------+")
- col.msg(06," &8| &7Zombie &8| &cAUS")
- col.msg(07," &8+-------------+")
- col.msg(08," &8+-------------+")
- col.msg(09," &8| &7Spider &8| &cAUS")
- col.msg(10," &8+-------------+")
- col.msg(11," &8+-------------+")
- col.msg(12," &8| &7free &8| &cAUS")
- col.msg(13," &8+-------------+")
- col.msg(14," &8+-------------+")
- col.msg(15," &8| &7Cow &8| &cAUS")
- col.msg(16," &8+-------------+")
- end
- function pigmenAN()
- col.msg(03," &8|&7Zombie-Pigmen&8| ")
- sleep(0.1)
- col.msg(03," &8|&fZombie-Pigmen&8| &aAN ")
- end
- function zombieAN()
- col.msg(06," &8| &7Zombie &8| ")
- sleep(0.1)
- col.msg(06," &8| &fZombie &8| &aAN ")
- end
- function spiderAN()
- col.msg(09," &8| &7Spider &8| ")
- sleep(0.1)
- col.msg(09," &8| &fSpider &8| &aAN ")
- end
- function freeAN()
- col.msg(12," &8| &7free &8| ")
- sleep(0.1)
- col.msg(12," &8| &ffree &8| &aAN ")
- end
- function cowAN()
- col.msg(15," &8| &7Cow &8| ")
- sleep(0.1)
- col.msg(15," &8| &fCow &8| &aAN ")
- end
- function pigmenAUS()
- col.msg(03," &8|&fZombie-Pigmen&8| ")
- sleep(0.1)
- col.msg(03," &8|&7Zombie-Pigmen&8| &cAUS")
- end
- function zombieAUS()
- col.msg(06," &8| &7Zombie &8| ")
- sleep(0.1)
- col.msg(06," &8| &7Zombie &8| &cAUS")
- end
- function spiderAUS()
- col.msg(09," &8| &7Spider &8| ")
- sleep(0.1)
- col.msg(09," &8| &7Spider &8| &cAUS")
- end
- function freeAUS()
- col.msg(12," &8| &7free &8| ")
- sleep(0.1)
- col.msg(12," &8| &7free &8| &cAUS")
- end
- function cowAUS()
- col.msg(15," &8| &7Cow &8| ")
- sleep(0.1)
- col.msg(15," &8| &7Cow &8| &cAUS")
- end
- --Programm
- file = fs.open("info/logs", "r")
- inhalt = file.readLine()
- file.close()
- print(inhalt)
- alloff()
- if inhalt == "1.0" then
- print(inhalt1)
- pigmenAN()
- elseif inhalt == "2.0" then
- print(inhalt2)
- zombieAN()
- elseif inhalt == "3.0" then
- print(inhalt3)
- spiderAN()
- elseif inhalt == "4.0" then
- print(inhalt4)
- freeAN()
- elseif inhalt == "5.0" then
- print(inhalt5)
- cowAN()
- else
- print("hm...")
- end
- v = 0
- while true do
- local event, side, X, Y = os.pullEvent("monitor_touch")
- if v == 0 and X >= 2 and X <= 16 and Y == 03 and side == "top" then
- alloff()
- pigmenAN()
- y = 1
- v = 1
- rednet.send(5881,y)
- local file = fs.open("info/logs", "w")
- file.write(1)
- file.close()
- sleep(0.5)
- end
- if v == 1 and X >= 20 and X <= 24 and Y == 03 and side == "top" then
- pigmenAUS()
- v = 0
- sleep(0.5)
- end
- if v == 0 and X >= 2 and X <= 16 and Y == 06 and side == "top" then
- alloff()
- zombieAN()
- y = 2
- v = 2
- rednet.send(5881,y)
- local file = fs.open("info/logs", "w")
- file.write(2)
- file.close()
- sleep(0.5)
- end
- if v == 2 and X >= 20 and X <= 24 and Y == 06 and side == "top" then
- zombieAUS()
- v = 0
- sleep(0.5)
- end
- if v == 0 and X >= 2 and X <= 16 and Y == 09 and side == "top" then
- alloff()
- spiderAN()
- y = 3
- v = 3
- rednet.send(5881,y)
- local file = fs.open("info/logs", "w")
- file.write(3)
- file.close()
- sleep(0.5)
- end
- if v == 3 and X >= 20 and X <= 24 and Y == 09 and side == "top" then
- spiderAUS()
- v = 0
- sleep(0.5)
- end
- if v == 0 and X >= 2 and X <= 16 and Y == 12 and side == "top" then
- alloff()
- freeAN()
- y = 4
- v = 4
- rednet.send(5881,y)
- local file = fs.open("info/logs", "w")
- file.write(4)
- file.close()
- sleep(0.5)
- end
- if v == 4 and X >= 20 and X <= 24 and Y == 12 and side == "top" then
- freeAUS()
- v = 0
- sleep(0.5)
- end
- if v == 0 and X >= 2 and X <= 16 and Y == 15 and side == "top" then
- alloff()
- cowAN()
- y = 5
- v = 5
- rednet.send(5881,y)
- local file = fs.open("info/logs", "w")
- file.write(5)
- file.close()
- sleep(0.5)
- end
- if v == 5 and X >= 20 and X <= 24 and Y == 15 and side == "top" then
- freeAUS()
- v = 0
- sleep(0.5)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement