Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. command /bar [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. make console execute command "chestcommands open BarBets %player%"
  5. stop
  6. if arg 1 is set:
  7. if arg 1 is "1m":
  8. give player 1 373:0 named "&CWin or lose $1m"
  9. make console execute command "eco take %player% 1000000"
  10. if arg 1 is "5m":
  11. give player 1 373:0 named "&CWin or lose $5m"
  12. make console execute command "eco take %player% 5000000"
  13. if arg 1 is "10m":
  14. give player 1 373:0 named "&CWin or lose $10m"
  15. make console execute command "eco take %player% 10000000"
  16. if arg 1 is "20m":
  17. give player 1 373:0 named "&CWin or lose $20m"
  18. make console execute command "eco take %player% 20000000"
  19.  
  20. on consume of potion:
  21. if name of player's held item is "&cWin or lose $1m":
  22. chance of 50%:
  23. send "&aYou won!"
  24. make console execute command "eco give %player% 2000000"
  25. stop
  26. else:
  27. send "&cYou lost :("
  28. stop
  29. if name of player's held item is "&cWin or lose $5m":
  30. chance of 50%:
  31. send "&aYou won!"
  32. make console execute command "eco give %player% 10000000"
  33. stop
  34. else:
  35. send "&cYou lost :("
  36. stop
  37. if name of player's held item is "&cWin or lose $10m":
  38. chance of 50%:
  39. send "&aYou won!"
  40. make console execute command "eco give %player% 20000000"
  41. stop
  42. else:
  43. send "&cYou lost :("
  44. stop
  45. if name of player's held item is "&cWin or lose $20m":
  46. chance of 50%:
  47. send "&aYou won!"
  48. make console execute command "eco give %player% 40000000"
  49. stop
  50. else:
  51. send "&cYou lost :("
  52. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement