ecco7777

eccoclicker Pocketcomputer

Nov 14th, 2017 (edited)
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.76 KB | None | 0 0
  1. shell.run("delete ecco")
  2. shell.run("pastebin get t4WJV7fp ecco")
  3. shell.run("delete bild")
  4. shell.run("pastebin get dzeTw5Qs bild")
  5. shell.run("delete startup")
  6. shell.run("pastebin get f6AmvcMw startup")
  7.  
  8. if os.getComputerLabel()==nil then
  9. print("Bitte gebe deinen Spielernamen ein:")
  10. os.setComputerLabel(io.read())
  11. end
  12.  
  13. term.setBackgroundColor(colors.black)
  14.  
  15. term.clear()
  16. term.setCursorPos(1,1)
  17. --print("Spiel ecco-Clicker")
  18. term.setTextColor(colors.orange)
  19.   print("Spiel ecco-Clicker")
  20. term.setTextColor(colors.white)
  21. --print("euch im schlaf.")
  22. bild=paintutils.loadImage("ecco")
  23. paintutils.drawImage(bild,1,3)
  24.  
  25. function Clicker()
  26. term.write(count)
  27. term.setCursorPos(1,2)
  28. term.write("Clicks:")
  29. while true do
  30. event, side, xPos, yPos = os.pullEvent()
  31. m.setCursorPos(8,2)
  32. m.write(count)
  33. count=count+1
  34. end
  35. end
  36.  
  37. function Terraria()
  38. shell.run("terraria")
  39. end
  40.  
  41. --Speicherabfrage
  42. if fs.exists("ClickerCount")==false then
  43. h=fs.open("ClickerCount","w")
  44. h.writeLine("1")
  45. h.close()
  46. end
  47. h=fs.open("ClickerCount","r")
  48. ccount=h.readLine()
  49. h.close()
  50. --http.post("http://5.230.146.116/eccoclicker.php?ID="..os.getComputerID().."&Label="..os.getComputerLabel().."&Clicks="..ccount)
  51.  
  52. term.setBackgroundColor(colors.black)
  53. term.setCursorPos(8,2)
  54. term.write(tonumber(ccount))
  55. term.setCursorPos(1,2)
  56. term.write("Clicks:")
  57.  
  58. function main()
  59. while true do
  60. event, side, xPos, yPos = os.pullEvent()
  61. if math.fmod(ccount,100)==0 then
  62. --http.post("http://www.gecco34.bplaced.net/PHP/eccoclicker/eccoclicker.php?--ID="..os.getComputerID().."&Label="..os.getComputerLabel().."&Clicks="..ccount)
  63. end
  64. ccount=ccount+1
  65. term.setCursorPos(8,2)
  66. term.write(tostring(ccount))
  67. h=fs.open("ClickerCount","w")
  68. h.writeLine(ccount)
  69. h.close()
  70. end
  71. end--main ende
  72.  
  73. main()
Add Comment
Please, Sign In to add comment