Guest User

Skript Boutique problême

a guest
Dec 14th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. command /givemoney [<text>] [<number>] [<player>]:
  2. permission: givemoney.sk
  3. trigger:
  4. if arg 1 is "supercoins":
  5. if arg 2 is set:
  6. if arg 3 is set:
  7. add arg 2 to {supercoins.%uuid of player%}
  8. send "&7Tu as donné &e%arg 2% SuperCoins &7à &6%arg 3%" to player
  9. send "&c%player% &7t'a donné &e%arg 2% SuperCoins &7!" to arg 3
  10. send "&7Tu as désormais &e%{supercoins.%uuid of player%}% SuperCoins &7!" to arg 3
  11. if arg 1 is "megacoins":
  12. if arg 2 is set:
  13. if arg 3 is set:
  14. add arg 2 to {megacoins.%uuid of player%}
  15. send "&7Tu as donné &e%arg 2% MégaCoins &7à &6%arg 3%" to player
  16. send "&c%player% &7t'a donné &e%arg 2% MégaCoins &7!" to arg 3
  17. send "&7Tu as désormais &e%{megacoins.%uuid of player%}% MégaCoins &7!" to arg 3
  18.  
  19. on death:
  20. if attacker is a player:
  21. add 2 to {supercoins.%uuid of attacker%}
  22. send "&7Tu viens de gagner &e2 SuperCoins &7!" to player
  23.  
  24. command /boutique:
  25. trigger:
  26. open chest with 3 rows named "&8Boutique" to player
  27. wait 3 ticks
  28. format slot 26 of player with player's skull named "&6%player%" with lore "&7SuperCoins: &e%{supercoins.%uuid of player%}%||&7MégaCoins: &d%{megacoins.%uuid of player%}%" to be unstealable
  29. format slot 3 of player with diamond named "&6Grade" with lore "&7Achete un nouveau grade" to run [make player execute command "/achat grades"]
  30. format slot 4 of player with emerald named "&6Boutique de jeu" with lore "&7Achete toi de nouveaux kits" to run [make player execute command "/achat kits"]
  31. format slot 5 of player with paper named "&6Soon..." to be unstealable
  32.  
  33. command /achat [<text>] [<text>] [<time span>]:
  34. trigger:
  35. if arg 1 is not set:
  36. if arg 2 is not set:
  37. if arg 3 is not set:
  38. send "&6Boutique >> &cFais /boutique !"
  39. if arg 1 is "grades":
  40. if arg 2 is not set:
  41. if arg 3 is not set:
  42. open chest with 6 rows named "&6Grades" to player
  43. wait 3 ticks
  44. format slot 20 of player with coal named "&fMiniVIP" with lore "&fCe grade coûte 150 MégaCoins||||&fDure 3 semaines.||||&7Avec ce grade, tu débloques||&7..." to close then run [make player execute command "/achat grades minivip 3 weeks"]
  45. format slot 53 of player with red wool named "&4Retour" to run [make player execute command "/boutique"]
  46. format slot 44 of player with player's skull named "&6%player%" with lore "&7SuperCoins: &e%{supercoins.%uuid of player%}%||&7MégaCoins: &d%{megacoins.%uuid of player%}%" to be unstealable
  47. if arg 2 is "minivip":
  48. if arg 3 is not set:
  49. send "&6Boutique >> &cFais /boutique."
  50. if arg 3 is set:
  51. if {megacoins.%uuid of player%} is greater than 149:
  52. execute console command "/manuadd %player% minivip"
  53. send "&6Boutique >> &aBravo ! Tu as bien acheté le grade MiniVIP pendant 3 semaines !"
  54. send "&6Boutique >> &aEzolia te remercie de ton achat !"
  55. wait arg 3
  56. execute console command "/manuadd %player% default"
  57. else:
  58. send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
  59. if arg 1 is "kits":
  60. if arg 2 is not set:
  61. if arg 3 is not set:
  62. open chest with 3 rows named "&6Kits" to player
  63. wait 3 ticks
  64. format slot 10 of player with leather tunic named "&fKit MiniVIP" with lore "&fCe kit coûte 30 MégaCoins.||&7Ce kit contient:||&7..." to run [make player execute command "/achat kits minivip"]
  65. format slot 12 of player with iron chestplate named "&bKit VIP" with lore "&fCe kit coûte 80 MégaCoins.||&7Ce kit contient||&7..." to run [make player execute command "/achat kits vip"]
  66. format slot 14 of player with diamond chestplate named "&aKit VIP+" with lore "&fCe kit coûte 120 MégaCoins.||&7Ce kit contient||&7..." to run [make player execute command "/achat kits vip+"]
  67. format slot 26 of player with red wool named "&4Retour" to run [make player execute command "/boutique"]
  68. format slot 17 of player with player's skull named "&6%player%" with lore "&7SuperCoins: &e%{supercoins.%uuid of player%}%||&7MégaCoins: &d%{megacoins.%uuid of player%}%" to be unstealable
  69. if arg 2 is "minivip":
  70. if arg 3 is not set:
  71. if {megacoins.%uuid of player%} is greater than 29:
  72. execute console command "/manuaddp %player% essentials.kits.minivip"
  73. remove 30 from {megacoins.%uuid of player%}
  74. send "&6Boutique >> &aTu as bien acheté le kit MiniVIP."
  75. send "&6Boutique >> &aEzolia te remercie de ton achat."
  76. else:
  77. send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
  78. if arg 3 is set:
  79. send "&6Boutique >> &cFais /boutique."
  80. if arg 2 is "vip":
  81. if arg 3 is not set:
  82. if {megacoins.%uuid of player%} is greater than 79:
  83. execute console command "/manuaddp %player% essentials.kits.vip"
  84. send "&6Boutique >> &aTu as bien acheté le kit VIP."
  85. send "&6Boutique >> &aEzolia te remercie de ton achat."
  86. else:
  87. send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
  88. if arg 3 is set:
  89. send "&6Boutique >> &cFais /boutique."
  90. if arg 2 is "vip+":
  91. if arg 3 is not set:
  92. if {megacoins.%uuid of player%} is greater than 119:
  93. execute console command "/manuaddp %player% essentials.kits.vip+"
  94. send "&6Boutique >> &aTu as bien acheté le kit VIP+."
  95. send "&6Boutique >> &aEzolia te remercie de ton achat."
  96. else:
  97. send "&6Boutique >> &cTu n'as pas assez de MégaCoins !"
  98. if arg 3 is set:
  99. send "&6Boutique >> &cFais /boutique."
  100.  
  101. every 600 seconds:
  102. if player have permission "receive.coins":
  103. add 1 to {supercoins.%uuid of player%}
  104. send "&7Tu as reçu ta paye :) Bon jeu sur ezolia"
  105.  
  106. on join:
  107. if {supercoins.%uuid of player%} is less than 0:
  108. set {supercoins.%uuid of player%} to 0
  109. if {megacoins.%uuid of player%} is less than 0:
  110. set {supercoins.%uuid of player%} to 0
Add Comment
Please, Sign In to add comment