Advertisement
Guest User

Skript de Shop

a guest
Mar 29th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. #---------------------------------------#
  2. # shop #
  3. #---------------------------------------#
  4.  
  5.  
  6. on npc right click:
  7. if citizen named "fermier":
  8. execute player command "fermier"
  9.  
  10. command /fermier:
  11. trigger:
  12. open chest with 3 rows named "&d&lshop" to player
  13. wait 3 ticks
  14. format slot 0 of player with cactus named "&2Cactus" with lore "&aachete et Vend tes cactus! ||&a400 Paprika le stack" to run [Execute player command "/cac"]
  15. format slot 1 of player with seeds named "&2Seeds" with lore "&aAchettre et vend 64 graine" to run [execute player command "/sed"]
  16. format slot 2 of player with Steak named "&6Viende cuite" with lore "&aAcheter et vend de la viende" to run [execute player command "/viand"]
  17. format slot 3 of player with carrot named "&6Carrote" with lore "&aAchete et vend des carrote" to run [execute player command "/car" ]
  18. format slot 4 of player with 393 named "&6Patate cuite" with lore "&aAchete et vend des patate cuite" to run [execute player command "patat"]
  19. format slot 5 of player with 383:50 named "&aOeuf de Creep" with lore "&aAchete Des oeuf de crepper" to run [execute player command "/crep"]
  20.  
  21. #-----------------------------------#
  22. # commande #
  23. #-----------------------------------#
  24.  
  25. command /cac:
  26. trigger:
  27. open chest with 3 rows named "&d&lConfirmation" to player
  28. wait 3 ticks
  29. format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 400 Paprika" to run [Execute player command "/cactuss"]
  30. format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 200 paprika" to run [execute player command "/cactus"]
  31.  
  32. command /cactus:
  33. trigger:
  34. if player has 64 cactus:
  35. add 200 to {paprika.%player's UUID%}
  36. send "&aTu as recu 200 paprika contre 64 cactus"
  37. remove 64 of cactus from player's inventory
  38. else:
  39. send "&cIl te faut 64 cactus pour vendre cette objet"
  40.  
  41. command /cactuss:
  42. trigger:
  43. {paprika.%player's UUID%} is bigger than or equal to 400:
  44. execute console command "give %player% cactus"
  45. remove 400 from {paprika.%player's UUID%}
  46. send "&c400 paprika on etaient retiré de ton compte"
  47. else:
  48. send "&cIl te faut 400 paprika pour acheter des cactus"
  49.  
  50. command /sed:
  51. trigger:
  52. open chest with 3 rows named "&d&lConfirmation" to player
  53. wait 3 ticks
  54. format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 100 Paprika" to run [Execute player command "/seeds"]
  55. format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 50 paprika" to run [execute player command "/seed"]
  56.  
  57. command /seeds:
  58. trigger:
  59. {paprika.%player's UUID%} is bigger than or equal to 200:
  60. execute console command "give %player% seeds"
  61. remove 100 from {paprika.%player's UUID%}
  62. send "&c100 paprika on etaient retiré de ton compte"
  63. else:
  64. send "&cIl te faut 100 paprika pour acheter des graines"
  65.  
  66. command /seed:
  67. trigger:
  68. if player has 64 seeds:
  69. add 50 to {paprika.%player's UUID%}
  70. send "&aTu as recu 50 paprika contre 64 seeds"
  71. remove 64 of seeds from player's inventory
  72. else:
  73. send "&cIl te faut 64 seeds pour vendre cette objet"
  74.  
  75. command /viand:
  76. trigger:
  77. open chest with 3 rows named "&d&lConfirmation" to player
  78. wait 3 ticks
  79. format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 500 Paprika" to run [Execute player command "/viende"]
  80. format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 250 paprika" to run [execute player command "/viandes"]
  81.  
  82. command /viande:
  83. trigger:
  84. {paprika.%player's UUID%} is bigger than or equal to 500:
  85. execute console command "give %player% steak"
  86. remove 500 from {paprika.%player's UUID%}
  87. send "&c500 paprika on etaient retiré de ton compte"
  88. else:
  89. send "&cIl te faut 500 paprika pour acheter des steaks"
  90.  
  91. command /viandes:
  92. trigger:
  93. if player has 64 steak:
  94. add 250 to {paprika.%player's UUID%}
  95. send "&aTu as recu 250 paprika contre 64 viande"
  96. remove 64 of steak from player's inventory
  97. else:
  98. send "&cIl te faut 64 steaks pour vendre cette objet"
  99.  
  100. command /car:
  101. trigger:
  102. open chest with 3 rows named "&d&lConfirmation" to player
  103. wait 3 ticks
  104. format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 300 Paprika" to run [Execute player command "/carrote"]
  105. format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 250 paprika" to run [execute player command "/carrotte"]
  106. command /carrote:
  107. trigger:
  108. {paprika.%player's UUID%} is bigger than or equal to 300:
  109. execute console command "give %player% carrot"
  110. remove 300 from {paprika.%player's UUID%}
  111. send "&c300 paprika on etaient retiré de ton compte"
  112. else:
  113. send "&cIl te faut 300 paprika pour acheter des steaks"
  114.  
  115. command /carrotte:
  116. trigger:
  117. if player has 64 carrot:
  118. add 250 to {paprika.%player's UUID%}
  119. send "&aTu as recu 250 paprika contre 64 viande"
  120. remove 64 of carrot from player's inventory
  121. else:
  122. send "&cIl te faut 64 carrot pour vendre cette objet"
  123. command /patat:
  124. trigger:
  125. open chest with 3 rows named "&d&lConfirmation" to player
  126. wait 3 ticks
  127. format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 400 Paprika" to run [Execute player command "/patate"]
  128. format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 200 paprika" to run [execute player command "/patates"]
  129. command /patate:
  130. trigger:
  131. {paprika.%player's UUID%} is bigger than or equal to 400:
  132. execute console command "give %player% 393"
  133. remove 400 from {paprika.%player's UUID%}
  134. send "&c400 paprika on etaient retiré de ton compte"
  135. else:
  136. send "&cIl te faut 400 paprika pour acheter des steaks"
  137. command /patates:
  138. trigger:
  139. if player has 64 393:
  140. add 200 to {paprika.%player's UUID%}
  141. send "&aTu as recu 200 paprika contre 64 patate"
  142. remove 64 of 393 from player's inventory
  143. else:
  144. send "&cIl te faut 64 patate pour vendre cette objet"
  145. command /crep:
  146. trigger:
  147. open chest with 3 rows named "&d&lConfirmation" to player
  148. wait 3 ticks
  149. format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 1000 Paprika" to run [Execute player command "/creepe"]
  150.  
  151. command /creepe:
  152. trigger:
  153. {paprika.%player's UUID%} is bigger than or equal to 1000:
  154. execute console command "give %player% 383:50"
  155. remove 400 from {paprika.%player's UUID%}
  156. send "&c1000 paprika on etaient retiré de ton compte"
  157. else:
  158. send "&cIl te faut 1000 paprika pour acheter des steaks"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement