Dreamer_1314

A simple trade command (incomplete)

May 23rd, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. A simple trade command for non premium users :
  2.  
  3. Variables Needed :
  4. Trade = 0
  5. Trade User = 0
  6.  
  7. Command 1 :
  8.  
  9. Trigger : .trade
  10.  
  11. Language : BDScript 1
  12.  
  13. Trade Send Code :
  14. $onlyIf[$getVar[Trade;$authorID]==0;Someone else is sending you a trade request with you type `.accept` or `.decline` to trade with someone else again]
  15. $onlyIf[$getVar[Trade;$mention[1]]==0;The user is currently having a trade request with someone else]
  16. $onlyIf[$mentioned[1]!=$authorID;You can't trade with yourself]
  17. $title[Trade Sent]
  18. $description[Your trade request was sent to <@$mentioned[1]> for him to accept your trade he needs to type `.accept`]
  19. $color[ffff00]
  20. $setVar[Trade;1;$mentioned[1]]
  21. $setVar[Trade User;$username;$mentioned[1]]
  22.  
  23. Command 2 :
  24.  
  25. Trigger : .decline
  26.  
  27. Trade Decline Code :
  28. $onlyIf[$getVar[Trade;$authorID]==1;You don't have any active trade requests yet]
  29. $title[Trade Declined]
  30. $description[You declined $getVar[Trade User;$authorID] Trade Request]
  31. $color[0000ff]
  32. $setVar[Trade;0;$authorID]
Advertisement
Add Comment
Please, Sign In to add comment