Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Talking my ecco7777 Copyright 2016
- shell.run("delete eccotroll")
- shell.run("pastebin get 1PusvXGx eccotroll")
- shell.run("delete eccotroll")
- shell.run("pastebin get 1PusvXGx eccotroll")
- shell.run("delete ecco")
- shell.run("pastebin get t4WJV7fp ecco")
- shell.run("delete bild")
- shell.run("pastebin get 3iBE8juA bild")
- chestside=2
- --0 for down, 1 for up, 2 for -Z, 3 for +Z, 4 for -X and 5 for +X.
- money=0
- cost=0.125
- m=peripheral.wrap("top")
- s=peripheral.wrap("right")
- c=peripheral.wrap("left")
- text={
- "Du bist ein Gewinner!",
- "Ecco liebt dich!",
- "Bienen sind op",
- "Du wirst viel Geld verlieren",
- "Hol dir einen ecco-Cicker! pastebin get h5ScYTtk startup",
- "Bäume sind auch nur Menschen",
- "Frag mich nach Tina",
- "Ich der Herr der Bienen",
- "Danke fuer dein Geld, es wird nicht gespendet.",
- "Vanilla braucht Computercraft!"}
- function play()
- if money>=cost then
- money=money-cost
- shell.run("monitor top bild ecco")
- m.setCursorPos(1,33) m.write("Money: "..tostring(money))
- c.say(text[math.random(1,10)],10)
- sleep(1)
- else
- shell.run("monitor top bild eccotroll")
- m.setCursorPos(1,33) m.write("Money: "..tostring(money))
- c.say("Für 1.25$ rede ich mit dir :)",10)
- sleep(1)
- end
- end
- function payin()
- if id==21256 then money=money+(0.125*amount) end
- if id==30186 then money=money+(1*amount) end
- if id==54024 then money=money+(8*amount) end
- if id==86792 then money=money+(64*amount) end
- if id==119560 then money=money+(512*amount) end
- s.sort(chestside,amount)
- end
- shell.run("monitor top bild ecco")
- while true do
- shell.run("monitor top bild ecco")
- m.setCursorPos(1,33) m.write("Money: "..tostring(money))
- event,id,amount=os.pullEvent()
- if event=="isort_item" then payin() end
- if event=="monitor_touch" then play() end
- end
Add Comment
Please, Sign In to add comment