Advertisement
Guest User

startup

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. function lancementDe()
  4.   rednet.send(256,"true","jeuxOie")
  5.   rednet.send(263,"true","jeuxOie")
  6. end
  7.  
  8. function bouton()
  9.   term.clear()
  10.   term.setCursorPos(6,10)
  11.   term.blit(" Lancer les des ","ffffffffffffffff","3333333333333333")
  12.   term.setCursorPos(6,9)
  13.   term.blit("                ","ffffffffffffffff","3333333333333333")
  14.   term.setCursorPos(6,11)
  15.   term.blit("                ","ffffffffffffffff","3333333333333333")
  16.  
  17.   while true do
  18.     a,b,c,d = os.pullEvent("mouse_click")
  19.    
  20.     if c >= 5 and c <= 22 and d >= 9 and d <= 11 then
  21.       lancementDe()
  22.     end
  23.   end
  24. end
  25. bouton()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement