Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local Auth = 3434
- local LCh = 455
- local SCh = 233
- local Version = "1.1.0"
- local function TextField()
- local input
- local TX, TY = term.getCursorPos()
- TY = TY - 1
- while true do
- term.setCursorPos(TX,TY)
- term.clearLine()
- term.write()
- local e, a, b, c = os.pullEvent("key")
- if a == keys.enter then break elseif e == "key" then input = read(C) end
- end
- return input
- end
- function GetV()
- return Version
- end
- function AuthenticateAccount(Key)
- local Router = peripheral.find("wireless_modem")
- local M = {"Auth",{{Key}},Auth}
- Router.transmit(SCh,LCh,textutils.serialize(M))
- local a, b, c, d, e
- repeat
- a, b, c, d, e = os.pullEvent("modem_message")
- until b == LCh
- return e
- end
- function charge(Key2,Amount)
- term.clear()
- term.setCursorPos(1,1)
- term.write("===Secure=Connection===")
- term.setCursorPos(1,2)
- term.write("enter Bank Key")
- term.setCursorPos(2,3)
- local Key = TextField()
- local Router = peripheral.find("wireless_modem")
- local M = {"transfer",{Pin,Key,Key2,Amount},Auth}
- Router.transmit(SCh,LCh,textutils.serialize(M))
- local a, b, c, d, e
- repeat
- a, b, c, d, e = os.pullEvent("modem_message")
- until b == LCh
- return e
- end
Advertisement
Add Comment
Please, Sign In to add comment