Advertisement
Guest User

startup

a guest
Dec 20th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. print("Core loaded. PING - SERVER NUN ONLINE!")
  2. --server
  3. local standort = "Dubai [DUB]"
  4. rednet.open("back")
  5.  
  6. while(true) do
  7.     e, a, b, c = os.pullEvent("rednet_message")
  8.     if(b == "heartbeat_protocol_req") then
  9.         print("Computer #",a," is ",c," blocks away!")
  10.         rednet.send(a, textutils.serialize({"heartbeat_protocol_rep", standort}))
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement