Advertisement
SirBaconBitz

Untitled

Feb 2nd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. modem = peripheral.wrap("front")
  2. dial = peripheral.wrap("back")
  3. while true do
  4. e, a, b, c, d, f = os.pullEvent("modem_message")
  5. msg = d
  6. if msg == "terminate" then
  7. dial.terminate()
  8. else
  9. dial.dial(msg)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement