Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- if #tArgs > 0 then
- if tArgs[1] == "help" then
- print("Usages:")
- print("requestStatement(key,name,id)")
- print("sendTransaction(key,name,sum,id)")
- else
- local new = fs.open(tArgs[1]..".lua","w")
- new.writeLine("local id = --UserInput--")
- new.close()
- end
- end
- function requestStatement(lock,name,pc)
- rednet.send(pc,{"read",name,"placeholder",lock})
- local id,message = rednet.receive()
- if id == pc then
- return message
- end
- end
- function sendTransaction(lock,name,sum,pc)
- rednet.send(pc,{"write",name,sum,lock})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement