Advertisement
Guest User

client.lua

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