Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("delete ecco")
- shell.run("pastebin get t4WJV7fp ecco")
- shell.run("delete bild")
- shell.run("pastebin get dzeTw5Qs bild")
- shell.run("delete startup")
- shell.run("pastebin get f6AmvcMw startup")
- if os.getComputerLabel()==nil then
- print("Bitte gebe deinen Spielernamen ein:")
- os.setComputerLabel(io.read())
- end
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- --print("Spiel ecco-Clicker")
- term.setTextColor(colors.orange)
- print("Spiel ecco-Clicker")
- term.setTextColor(colors.white)
- --print("euch im schlaf.")
- bild=paintutils.loadImage("ecco")
- paintutils.drawImage(bild,1,3)
- function Clicker()
- term.write(count)
- term.setCursorPos(1,2)
- term.write("Clicks:")
- while true do
- event, side, xPos, yPos = os.pullEvent()
- m.setCursorPos(8,2)
- m.write(count)
- count=count+1
- end
- end
- function Terraria()
- shell.run("terraria")
- end
- --Speicherabfrage
- if fs.exists("ClickerCount")==false then
- h=fs.open("ClickerCount","w")
- h.writeLine("1")
- h.close()
- end
- h=fs.open("ClickerCount","r")
- ccount=h.readLine()
- h.close()
- --http.post("http://5.230.146.116/eccoclicker.php?ID="..os.getComputerID().."&Label="..os.getComputerLabel().."&Clicks="..ccount)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(8,2)
- term.write(tonumber(ccount))
- term.setCursorPos(1,2)
- term.write("Clicks:")
- function main()
- while true do
- event, side, xPos, yPos = os.pullEvent()
- if math.fmod(ccount,100)==0 then
- --http.post("http://www.gecco34.bplaced.net/PHP/eccoclicker/eccoclicker.php?--ID="..os.getComputerID().."&Label="..os.getComputerLabel().."&Clicks="..ccount)
- end
- ccount=ccount+1
- term.setCursorPos(8,2)
- term.write(tostring(ccount))
- h=fs.open("ClickerCount","w")
- h.writeLine(ccount)
- h.close()
- end
- end--main ende
- main()
Add Comment
Please, Sign In to add comment