LewY

masz.sk

Jun 9th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. variables:
  2. {gold.} = 0
  3. options:
  4. cena_kaptura_nowicjusza: 20
  5. cena_szaty_nowicjusza: 20
  6. cena_spodni_nowicjusza: 20
  7. cena_butow_nowicjusza: 20
  8.  
  9. command /gold [<text>] [<player>]:
  10. trigger:
  11. if arg 2 is not set:
  12. if arg 1 is not set:
  13. send "Twoja ilosc zlota wynosi %{gold.%player%}%"
  14. else:
  15. add arg-1 to {gold.%player%}
  16. else:
  17. add arg-1 to {gold.%arg-2%}
  18.  
  19. command /kupkapno [<player>]:
  20. trigger:
  21. if arg is not set:
  22. if {gold.%player%} is greater than {@cena_kaptura_nowicjusza}:
  23. give 1 leather helmet named "&5&lKaptur Nowicjusza" to the player
  24. stop
  25. else:
  26. send "nie masz tyle złota"
  27. else:
  28. if {gold.%player%} is greater than {@cena_kaptura_nowicjusza}:
  29. give 1 leather helmet named "&5&lKaptur Nowicjusza" to player-arg
  30. stop
  31. else:
  32. send "nie masz tyle złota"
  33. command /kupszano [<player>]:
  34. trigger:
  35. if arg is not set:
  36. if {gold.%player%} is greater than {@cena_szaty_nowicjusza}:
  37. give 1 leather tunic named "&5&lSzata Nowicjusza" to the player
  38. stop
  39. else:
  40. send "nie masz tyle złota"
  41. else:
  42. if {gold.%player%} is greater than {@cena_szaty_nowicjusza}:
  43. give 1 leather tunic named "&5&lSzata Nowicjusza" to player-arg
  44. stop
  45. else:
  46. send "nie masz tyle złota"
  47. command /kupspno [<player>]:
  48. trigger:
  49. if arg is not set:
  50. if {gold.%player%} is greater than {@cena_spodni_nowicjusza}:
  51. give 1 leather pants named "&5&lSpodnie Nowicjusza" to the player
  52. stop
  53. else:
  54. send "nie masz tyle złota"
  55. else:
  56. if {gold.%player%} is greater than {@cena_spodni_nowicjusza}:
  57. give 1 leather pants named "&5&lSpodnie Nowicjusza" to player-arg
  58. stop
  59. else:
  60. send "nie masz tyle złota"
  61.  
  62. command /kupbuno [<player>]:
  63. trigger:
  64. if arg is not set:
  65. if {gold.%player%} is greater than {@cena_butow_nowicjusza}:
  66. give 1 leather boots named "&5&lButy Nowicjusza" to the player
  67. stop
  68. else:
  69. send "nie masz tyle złota"
  70. else:
  71. if {gold.%player-arg%} is greater than {@cena_butow_nowicjusza}:
  72. give 1 leather boots named "&5&lButy Nowicjusza" to player-arg
  73. stop
  74. else:
  75. send "nie masz tyle złota"
  76.  
  77. command /sklep [<text>] [<player>]:
  78. trigger:
  79. if arg 2 is not set:
  80. if arg 1 is "maga":
  81. open chest with 4 rows named "&6&lSklep Maga" to the player
  82. wait 2 tick
  83. format slot 2 of player with 1 diamond to be unstealable
  84. format slot 3 of player with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno"
  85. format slot 6 of player with 1 diamond to be unstealable
  86. format slot 11 of player with 1 diamond to be unstealable
  87. format slot 12 of player with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano"
  88. format slot 15 of player with 1 diamond to be unstealable
  89. format slot 20 of player with 1 diamond to be unstealable
  90. format slot 21 of player with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno"
  91. format slot 24 of player with 1 diamond to be unstealable
  92. format slot 29 of player with 1 diamond to be unstealable
  93. format slot 30 of player with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno"
  94. format slot 33 of player with 1 diamond to be unstealable
  95. else:
  96. if arg 1 is "maga":
  97. open chest with 4 rows named "&6&lSklep Maga" to player-arg
  98. wait 2 tick
  99. format slot 2 of player-arg with 1 diamond to be unstealable
  100. format slot 3 of player-arg with 1 leather helmet named "&5&lKaptur Nowicjusza" to close then run "kupkapno %player%"
  101. format slot 6 of player-arg with 1 diamond to be unstealable
  102. format slot 11 of player-arg with 1 diamond to be unstealable
  103. format slot 12 of player-arg with 1 leather tunic named "&5&lSzata Nowicjusza" to close then run "kupszano %player%"
  104. format slot 15 of player with 1 diamond to be unstealable
  105. format slot 20 of player-arg with 1 diamond to be unstealable
  106. format slot 21 of player-arg with 1 leather pants named "&5&lSpodnie Nowicjusza" to close then run "kupspno %player%"
  107. format slot 24 of player-arg with 1 diamond to be unstealable
  108. format slot 29 of player-arg with 1 diamond to be unstealable
  109. format slot 30 of player-arg with 1 leather boots named "&5&lButy Nowicjusza" to close then run "kupbuno %player%"
  110. format slot 33 of player-arg with 1 diamond to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment