Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function(context, args)
  2. {
  3. if (!args)
  4. return "Please enter a user:'username', pass:'password', and a amount:'amount in GC' to deposit money."
  5.  
  6. var userpair = {u:args.user, p:args.pass}
  7. var usercheck = #db.f(userpair).first_and_close()
  8.  
  9. if (!usercheck)
  10. #s.chats.tell({to:context.caller, msg:"`DInvalid username or password.`"})
  11. else
  12. #s.chats.tell({to:context.caller, msg:"`DAre you sure you want to deposit " + args.amount + "? Confirm with confirm:true"})
  13. if(args.confirm = true)
  14. #s.accts.xfer_gc_to({to:"paypal", amount:args.amount})
  15. return "Thanks for using paypal!"
  16. else
  17. return "Deposit cancelled."
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement