Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. # Skript by nimajnb and magicalworld13
  2. # easy eco skript with customizible shop
  3. # commands are: /money [give] or [set] ore [remove] [player] and then the amount of money
  4.  
  5. command /money [<text>] [<offlineplayer>] [<number>]:
  6. trigger:
  7. if arg-1 is not set:
  8. send "&7You have &a%{money.%player's uuid%}%&a$&7 in your account."
  9. if arg-1 is set:
  10. if arg-1 is not "set" or "give" or "remove":
  11. send "Incorrect usage. Use /money (set/give/remove) (player) (amount)"
  12. if arg-1 is "set" or "give" or "remove":
  13. if arg-2 is not set:
  14. send "&cYou need to specify a player."
  15. if arg-2 is set:
  16. if {money.%arg-2's uuid%} does not exist:
  17. send "%arg-2% is not registered."
  18. if {money.%player's uuid%} exists:
  19. if arg-3 is not set:
  20. send "&cYou need to specify how much money you would like to %arg-1%&7."
  21. if arg-3 is set:
  22. if arg-3 is a number:
  23. if arg-1 is "set":
  24. set {money.%arg-2's uuid%} to arg-3
  25. send "&7You set %arg-2%&7's money to &a%arg-3%&a$"
  26. if arg-1 is "give":
  27. add arg-3 to {money.%arg-2's uuid%}
  28. send "&7You gave %arg-2%&a %arg-3%&a$"
  29. if arg-1 is "remove":
  30. remove arg-3 from {money.%arg-2's uuid%}
  31. send "&7You removed &a%arg-3%&a$&7 from %arg-2%"
  32.  
  33. command /account [<offlineplayer>]:
  34. trigger:
  35. if arg-1 is not set:
  36. send "&7You have &a%{money.%player's uuid%}%&a$&7 in your account."
  37. if arg-1 is set:
  38. if {money.%arg-1's uuid%} is set:
  39. send "&7%arg-1%&7 has &a%{money.%player's uuid%}%&a$&7 in their account."
  40.  
  41.  
  42. on death of a player:
  43. if attacker is a player:
  44. add 20 to {money.%attacker's uuid%}
  45. send "&cYou killed %victim% and earned 20$" to attacker
  46.  
  47. command /shop:
  48. trigger:
  49. open virtual chest inventory with size 4 named "&aShop" to player
  50. format gui slot 3 of player with skull of player named "&8&lUser: &7&l%player%"
  51. format gui slot 4 of player with oak sign named "&a&lShop"
  52. format gui slot 20 of player with paper named "&a&lVIP" with lore "&7Cost: 200$"
  53. format gui slot 21 of player with paper named "&c&lMVP" with lore "&7Cost: 280$"
  54. format gui slot 22 of player with paper named "&b&lElite" with lore "&7Cost: 500$"
  55. format gui slot 23 of player with paper named "&3&lOVERLORD" with lore "&7Cost: 1500$"
  56. format gui slot 24 of player with paper named "&d&lGod" with lore "&7Cost: 3000$"
  57.  
  58. on join:
  59. if {money.%player's uuid%} is not set:
  60. set {money.%player's uuid%} to 0
  61.  
  62. on inventory click:
  63. if clicked item is paper:
  64. if {money.%player's uuid%} is not set:
  65. set {money.%player's uuid%} to 0
  66. if name of clicked item is "&a&lVIP":
  67. if {money.%player's uuid%} is less than 200:
  68. send "&cYou do not have 200$"
  69. stop
  70. remove 200 from {money.%player's uuid%}
  71. make console execute command "pex user %player% group add vip"
  72. send "&aYou succesfully purchased VIP"
  73. if name of clicked item is "&b&lMVP":
  74. if {money.%player's uuid%} is less than 280:
  75. send "&cYou do not have 280$"
  76. stop
  77. remove 280 from {money.%player's uuid%}
  78. make console execute command "pex user %player% group add mvp"
  79. send "&aYou succesfully purchased &c&lMVP"
  80. if name of clicked item is "&b&lElite":
  81. if {money.%player's uuid%} is less than 500:
  82. send "&cYou do not have 500$"
  83. stop
  84. remove 500 from {money.%player's uuid%}
  85. make console execute command "pex user %player% group add elite"
  86. send "&aYou succesfully purchased &b&lElite"
  87. if name of clicked item is "&d&lGod":
  88. if {money.%player's uuid%} is less than 3000:
  89. send "&cYou do not have 3000$"
  90. stop
  91. remove 3000 from {money.%player's uuid%}
  92. make console execute command "pex user %player% group add god"
  93. send "&aYou succesfully purchased &d&lGod"
  94. if name of clicked item is "&3&lOVERLORD":
  95. if {money.%player's uuid%} is less than 1500:
  96. send "&cYou do not have 1500$"
  97. stop
  98. remove 1500 from {money.%player's uuid%}
  99. make console execute command "pex user %player% group add overlord"
  100. send "&aYou succesfully purchased &3&lOVERLORD"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement