Advertisement
ecco7777

loadimage backup

Jun 26th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. shell.run("delete terraria")
  2. shell.run("pastebin get 9Pit75eD terraria")
  3. term.setBackgroundColor(colors.black)
  4. m=peripheral.wrap("right")
  5. term.clear()
  6. m.setCursorPos(1,1)
  7. --print("Setzte einen Adv.")
  8. --print("Monitor neben den PC")
  9. bild=paintutils.loadImage("ecco")
  10. paintutils.drawImage(bild,1,3)
  11.  
  12. while true do
  13. if peripheral.getType("left") == "monitor" then
  14. m=peripheral.wrap("left")
  15. m.setCursorPos(1,1)
  16. m.write("X Musik")
  17. m.setCursorPos(1,2)
  18. m.write("X Chat")
  19. event, button, x, y = os.pullEvent("monitor_touch")
  20. if y==1 then
  21. m.setCursorPos(1,1)
  22. m.write("O Musik")
  23. shell.run("terraria")
  24. end
  25.  
  26.  
  27. if y==2 then
  28. if peripheral.getType("back")=="modem" then
  29. rednet.open("back")
  30. m.setCursorPos(1,2)
  31. m.write("O Chat")
  32. m.setTextColor(32768)
  33. m.setBackgroundColor(32768)
  34. m.clear()
  35. m.setCursorPos(1,18)
  36. m.write("ChatModus")
  37. paintutils.drawImage(bild,1,3)
  38. m.setBackgroundColor(1)
  39. m.write("ChatModus")
  40. m.setCursorPos(1,19)
  41. message=io.read()
  42. rednet.send(11242,message)
  43. else
  44. print("kein modem")
  45. end
  46. end
  47. end
  48. end
  49.  
  50.  
  51.  
  52.  
  53. --shell.run("delete eccotroll")
  54. ---shell.run("pastebin get 1PusvXGx eccotroll")
  55. --term.setBackgroundColor(colors.black)
  56. --term.clear()
  57. --bild=paintutils.loadImage("ecco")
  58. --paintutils.drawImage(bild,1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement