Advertisement
therealinsight

Untitled

May 8th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[ BlueBank Admin by TrumpetMiner v3.5
  2. --[ pastebin get 6WpAVENC admin
  3. --[ Setup
  4. term.setBackgroundColor(colors.blue)
  5. term.setTextColor(colors.yellow)
  6. ser = 46    -- Server ID#
  7. side = "back" -- Rednet Modem Side
  8. dSide = "right" -- Disk Drive Side (End)
  9. rednet.open(side)
  10.  
  11. function start()
  12.  term.clear()
  13.  term.setCursorPos(3,4)
  14.  print "[Add Money]"
  15.  --term.setCursorPos(3,6)
  16.  --print "[Check Balance]"
  17.  term.setCursorPos(3,8)
  18.  print "[New Encryption Key]"
  19.  term.setCursorPos(3,10)
  20.  print "[Auth Code Request]"
  21.  
  22. event, button, x, y = os.pullEvent("mouse_click")
  23.  
  24. if x >= 3 and x <= 14 and y == 4 then
  25.   term.clear()
  26.   term.setCursorPos(3,4)
  27.   write "User: "
  28.   user = read()
  29.   term.setCursorPos(3,6)
  30.   write "Amount: "
  31.   amt = read()
  32.   term.setCursorPos(3,8)
  33.   write "Authorization Code > "
  34.   auth = read()
  35.   rednet.broadcast("Add")
  36.   rednet.broadcast(user)
  37.   rednet.broadcast(amt)
  38.   rednet.broadcast(auth)
  39.   id, msg = rednet.receive()
  40.   term.clear()
  41.   term.setCursorPos(3,4)
  42.   print(msg)
  43.   os.pullEvent("mouse_click")
  44.   start()
  45. elseif x >=3 and x <= 22 and y == 8 then
  46.   key()
  47. elseif x >= 3 and x <= 21 and y == 10 then
  48.   term.clear()
  49.   rednet.broadcast("Auth")
  50.   id, msg = rednet.receive()
  51.   term.setCursorPos(3,4)
  52.   print(msg)
  53.   os.pullEvent("mouse_click")
  54.   start()
  55. else
  56.   start()
  57. end
  58. end
  59.  
  60. function key()
  61.  term.clear()
  62.  if disk.hasData(dSide) == true then
  63.    term.setCursorPos(3,4)
  64.  
  65.    start()
  66.  else
  67.    term.setCursorPos(3,4)
  68.    print "Please Insert Key"
  69.    os.pullEvent("disk")
  70.    key()
  71.  end
  72. end
  73.  
  74. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement