PaullyBeenis

CC: Bank Client

Mar 4th, 2021 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- VARIABLES --
  2. ID = 13
  3. port = "234265324534515762343289734906098437986128473623895734569823426324534512343289734906509843798612847362389573459823425676324534512343289734906098437986128473623895675734598"
  4. SRVID = 14
  5. modemSide = "back"
  6.  
  7. -- UTILITY FUNCTIONS --
  8. local function printF(msg)
  9.     term.setTextColor(colors.yellow)
  10.     print(msg)
  11.     term.setTextColor(colors.white)
  12. end
  13.  
  14. -- MAIN --
  15. term.setTextColor(colors.red)
  16. print("Welcome to BeenisBank! Enter commands below.")
  17. term.setTextColor(colors.white)
  18. while true do
  19.     send = tostring(read())
  20.     rednet.open(modemSide)
  21.     rednet.send(SRVID,send,port)
  22.     local id,msg,dist=rednet.receive(port)
  23.     printF(msg)
  24.     rednet.close()
  25. end
  26.  
  27.  
Add Comment
Please, Sign In to add comment