thatsimplekid

Client

Jan 26th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. rednet.open("back")
  4. rednet.open("front")
  5. rednet.open("top")
  6. rednet.open("bottom")
  7. rednet.open("left")
  8. rednet.open("right")
  9. print("ANTNCO Bank Client Pre-Alpha 1")
  10. print("Currently only supports ADD/REMOVE funds")
  11. print("")
  12. rednet.send(20, "addrem")
  13. id,msg = rednet.receive(60)
  14.  if msg=="IGN" then
  15.   write("IGN: ")
  16.   ign = read()
  17.   rednet.send(id, ign)
  18.   id1,msg1 = rednet.receive()
  19.   if id1==id and msg1=="AMT" then
  20.    print("Amount To Remove, Use -... To Add Funds")
  21.    write("AMT: ")
  22.    inpt = read()
  23.    rednet.send(id,inpt)
  24.   end
  25.  end
Advertisement
Add Comment
Please, Sign In to add comment