Advertisement
CodeCrafter

Steam

Mar 10th, 2013
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. -- config
  2.  
  3.  
  4. local modemSide = "top"
  5.  
  6. local serverId = 10
  7.  
  8. -- End of config
  9.  
  10. -- INPORTANT!!!!
  11.  
  12.  
  13. -- make sure that you have httpApi: Enabled !!!!
  14.  
  15. -- Begin of Code...
  16.  
  17. term.clear()
  18. term.setCursorPos(1,1)
  19.  
  20.  
  21. function frame()
  22. print(" ______________/SteamCraft\_____________________ ")
  23. print(" | | ")
  24. print(" | +-----------------------+ | ")
  25. print(" | |By gijsvdsande | | ")
  26. print(" | +-----------------------+ | ")
  27. print(" | | ")
  28. print(" \_______________________________________________/ ")
  29. end
  30.  
  31.  
  32.  
  33.  
  34. function LoadGui()
  35. term.clear()
  36. print(" _________________/GameMenu\_______________ ")
  37. print(" | New!!!!!|"..message.." | ")
  38. print(" +------------------------------------------+ ")
  39. print(" | Your games: Worm | ")
  40. print(" | | ")
  41. print(" \_____________|Store|______________________/ ")
  42. rednet.send(serverId,"Im logged In! ")
  43. end
  44.  
  45. frame()
  46.  
  47. event,arg,x,y = os.pullEvent("mouse_click")
  48. term.setCursorPos(x,y)
  49. write("We go to the store!")
  50.  
  51.  
  52. term.clear()
  53. term.setCursorPos(1,1)
  54. LoadGui()
  55.  
  56. event,arg,x,y = os.pullEvent("mouse_click")
  57. term.setCursorPos(1,5)
  58. write("nu In de store mineception download??? ")
  59.  
  60. event,arg,x,y = os.pullEvent("mouse_click")
  61. term.setCursorPos(1,5)
  62. write("downloading...")
  63.  
  64. shell.run("pastebin","get","wmdAN3kN","steamCMD1")
  65.  
  66. term.clear()
  67.  
  68. LoadGui()
  69.  
  70. x = io.read()
  71.  
  72. if x == "Worm" then
  73. shell.run("worm")
  74. elseif x == "mineception" then
  75. shell.run("mineception")
  76. else
  77. print("Not A Game ")
  78. term.clear()
  79. LoadGui()
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement