Dreamer_1314

A simple give command with accept and decline function

May 24th, 2022
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. Variables Needed :
  2. Currency Name = 0
  3. Give Amount = 0
  4. Give User = 0
  5. Give Request = 0
  6.  
  7. Give Command :
  8.  
  9. Trigger = .give
  10.  
  11. Language : BDScript 1
  12.  
  13. Give Command Code :
  14.  
  15. $onlyIf[$mentioned[1]!=$authorID;You can't trade with yourself]
  16. $title[Gift Sent]
  17. $description[For $username[$mentioned[1]] to accept your gift he needs to type `.accept`]
  18. $color[00ff00]
  19. $setVar[Give;$message[1];$mentioned[1]]
  20. $setVar[Give User;$username;$mentioned[1]]
  21. $setVar[Give Request;1;$mentioned[1]]
  22.  
  23. Accept Command :
  24.  
  25. Trigger : .accept
  26.  
  27. Language : BDScript 1
  28.  
  29. Accept Command Code :
  30.  
  31. $onlyIf[$getVar[Give Request;$authorID]==1;You currently don't have any active give requests]
  32. $title[Give Request Accepted]
  33. $description[You accept $getVar[Give User;$authorID]'s offer]
  34. $color[ffff00]
  35. $setVar[Currency Name;$sum[$getVar[Currency Name;$authorID];$getVar[Give Amount;$authorID]];$authorID]
  36. $setVar[Give Amount;0;$authorID]
  37. $setVar[Give User;0;$authorID]
  38. $setVar[Give Request;0;$authorID]
  39.  
  40. Decline Command :
  41.  
  42. Trigger : .decline
  43.  
  44. Language : BDScript 1
  45.  
  46. Decline Command Code :
  47.  
  48. $onlyIf[$getVar[Give Request;$authorID]==1;You currently don't have any active give requests]
  49. $title[Give Request Accepted]
  50. $description[You declined $getVar[Give User;$authorID]'s offer]
  51. $color[ff0000]
  52. $setVar[Give Amount;0;$authorID]
  53. $setVar[Give User;0;$authorID]
  54. $setVar[Give Request;0;$authorID]
  55.  
  56. Note : Pls change all the "Currency Name" text to what you call your current example coins,Dank Coins or Pokècoins and make all the needed variables at the top and the correct syntax is .give (amount) (mention user)
Advertisement
Add Comment
Please, Sign In to add comment