ThePolishThomas

Untitled

Feb 24th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.01 KB | None | 0 0
  1. variables:
  2. {coins.%player%} = 0
  3. on mine of stone:
  4. if player's gamemode is survival:
  5. add 1 to {coins.%player%}
  6.  
  7. command /coins [<text>] [<text>] [<text>]:
  8. trigger:
  9. if arg 1 is not set:
  10. send "&9-=-=-=-=-=- &7Craft&6&lCoins &9-=-=-=-=-=-"
  11. send "&a/coins daj [nick] [coins] &b- daje danemu graczowi punkty"
  12. send "&a/coins sprawdz [nick] &b- sprawdza statystyki danego gracza"
  13. send "&a/coins resetuj [nick] &b- resetuje punkty graczowi"
  14. send "&9-=-=-=-=-=- &7Craft&6&lCoins &9-=-=-=-=-=-"
  15. stop
  16.  
  17. if arg 1 is "sprawdz":
  18. if arg 2 is not empty:
  19. send "&3_-_-_ &7&l%arg 2% &3_-_-_"
  20. send "&9 &bCoinsy: &b%{coins.%arg 2%}%"
  21. stop
  22. if arg 1 is "resetuj":
  23. if arg 2 is not empty:
  24. if has permissions "coins.resetuj":
  25. set {punkty.%arg 2%} to 0
  26. send "&2Zresetowales punkty graczowi &a%arg 2%"
  27. else:
  28. send "&4Nie masz pozwolenia na uzywanie tej komendy !"
  29. stop
  30. stop
  31. if arg 1 is "daj":
  32. if player has permission "coins.daj":
  33. add %arg 2% to {punkty.%arg 1%}
  34. send "&3Dodales graczowi &7%arg 1% &a%arg 2% punktow!"
  35. else:
  36. send "&4Nie masz pozwolenia na uzywanie tej komendy !"
  37. stop
  38.  
  39. options:
  40. cena_: 20
  41. cena_szaty_nowicjusza: 20
  42. cena_spodni_nowicjusza: 20
  43. cena_butow_nowicjusza: 20
  44.  
  45. command /kupkapno [<player>]:
  46. trigger:
  47. if arg is not set:
  48. if {coins.%player%} is greater than {@cena_kaptura_nowicjusza}:
  49. give 1 leather helmet named "&5&lKaptur Nowicjusza" to the player
  50. stop
  51. else:
  52. send "Nie masz tyle coinsow"
  53. else:
  54. if {coins.%player%} is greater than {@cena_kaptura_nowicjusza}:
  55. give 1 leather helmet named "&5&lKaptur Nowicjusza" to player-arg
  56. stop
  57. else:
  58. send "Nie masz tyle coinsow"
  59. command /kupszano [<player>]:
  60. trigger:
  61. if arg is not set:
  62. if {coins.%player%} is greater than {@cena_szaty_nowicjusza}:
  63. give 1 leather tunic named "&5&lSzata Nowicjusza" to the player
  64. stop
  65. else:
  66. send "Nie masz tyle coinsow"
  67. else:
  68. if {coins.%player%} is greater than {@cena_szaty_nowicjusza}:
  69. give 1 leather tunic named "&5&lSzata Nowicjusza" to player-arg
  70. stop
  71. else:
  72. send "Nie masz tyle coinsow"
  73. command /kupspno [<player>]:
  74. trigger:
  75. if arg is not set:
  76. if {coins.%player%} is greater than {@cena_spodni_nowicjusza}:
  77. give 1 leather pants named "&5&lSpodnie Nowicjusza" to the player
  78. stop
  79. else:
  80. send "Nie masz tyle coinsow"
  81. else:
  82. if {coins.%player%} is greater than {@cena_spodni_nowicjusza}:
  83. give 1 leather pants named "&5&lSpodnie Nowicjusza" to player-arg
  84. stop
  85. else:
  86. send "Nie masz tyle coinsow"
  87.  
  88. command /kupbuno [<player>]:
  89. trigger:
  90. if arg is not set:
  91. if {coins.%player%} is greater than {@cena_butow_nowicjusza}:
  92. execute console command "setrank %player% Vip 30d"
  93. stop
  94. else:
  95. send "Nie masz tyle coinsow"
  96. else:
  97. if {coins.%player-arg%} is greater than {@cena_butow_nowicjusza}:
  98. give 1 leather boots named "&5&lButy Nowicjusza" to player-arg
  99. stop
  100. else:
  101. send "Nie masz tyle coinsow"
  102.  
  103. command /sklep [<text>] [<player>]:
  104. trigger:
  105. if arg 2 is not set:
  106. if arg 1 is "coins":
  107. open chest with 4 rows named "&6&lCraftCoinsShop" to the player
  108. wait 2 tick
  109. format slot 2 of player with 1 diamond to be unstealable
  110. format slot 3 of player with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno"
  111. format slot 6 of player with 1 diamond to be unstealable
  112. format slot 11 of player with 1 diamond to be unstealable
  113. format slot 12 of player with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano"
  114. format slot 15 of player with 1 diamond to be unstealable
  115. format slot 20 of player with 1 diamond to be unstealable
  116. format slot 21 of player with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno"
  117. format slot 24 of player with 1 diamond to be unstealable
  118. format slot 29 of player with 1 diamond to be unstealable
  119. format slot 30 of player with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno"
  120. format slot 33 of player with 1 diamond to be unstealable
  121. else:
  122. if arg 1 is "coins":
  123. open chest with 4 rows named "&6&lCraftCoinsShop" to player-arg
  124. wait 2 tick
  125. format slot 2 of player-arg with 1 diamond to be unstealable
  126. format slot 3 of player-arg with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno %player%"
  127. format slot 6 of player-arg with 1 diamond to be unstealable
  128. format slot 11 of player-arg with 1 diamond to be unstealable
  129. format slot 12 of player-arg with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano %player%"
  130. format slot 15 of player with 1 diamond to be unstealable
  131. format slot 20 of player-arg with 1 diamond to be unstealable
  132. format slot 21 of player-arg with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno %player%"
  133. format slot 24 of player-arg with 1 diamond to be unstealable
  134. format slot 29 of player-arg with 1 diamond to be unstealable
  135. format slot 30 of player-arg with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno %player%"
  136. format slot 33 of player-arg with 1 diamond to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment