Guest User

go2

a guest
Jul 28th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. os.loadAPI("goto")
  2. goto.init("pos")
  3. rednet.open("right")
  4.  
  5. ---[[
  6. while true do
  7.  event, senderId, message, distance = os.pullEvent("rednet_message") --Recive the Hashed Table
  8.  t = textutils.unserialize(message) --UnHash The Table
  9.  print(t[0]) --debug
  10.  print(t[1]) --debug
  11.  if senderId == 85 then --If Its the Right Computer Do
  12.    if tostring(t[0]) == RS then
  13.      for i = 1,tonumber(t[1]) do
  14.        turtle.suck()
  15.      end
  16.    else
  17.      print("Somthing Failed")
  18.    end
  19.  end
  20. end
  21. --]]
Advertisement
Add Comment
Please, Sign In to add comment