Advertisement
xNawi

meffects editing

May 29th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | None | 0 0
  1. options:
  2. cena-speed-I: 1
  3. cena-speed-II: 2
  4. cena-speed-III: 3
  5.  
  6. cena-fire-I: 1
  7. cena-fire-II: 2
  8. cena-fire-III: 3
  9.  
  10. cena-regeneration-I: 1
  11. cena-regeneration-II: 2
  12. cena-regeneration-III: 3
  13.  
  14. cena-night-I: 1
  15. cena-night-II: 2
  16. cena-night-III: 3
  17.  
  18. cena-efekt-koxa: 10
  19.  
  20. cena-haste-I: 1
  21. cena-haste-II: 2
  22. cena-haste-III: 3
  23.  
  24.  
  25. method "gui" {player and strona}:
  26. set {_player} to arg{1};
  27. set {_strona} to arg{2};
  28. if {_strona} is "strona-1":
  29. open chest with 3 rows named "&e&lSklep Efekty" to {_player}
  30. wait 1 tick
  31. format slot 11 of {_player} with 1 of potion of:8258 named "&cPotki Szybkosci" with lore "&6Speed: &bI-III" to run [function "gui" {{_player} and "strona-2-szybkosc"};]
  32. format slot 12 of {_player} with 1 of potion of:8259 named "&cPotki Odpornosci Na Ogien" with lore "&6Fire Resistance &bI-III" to run [function "gui" {{_player} and "strona-3-ogien"};]
  33. format slot 13 of {_player} with 1 of potion of:8193 named "&cPotki Regeneracji" with lore "&6Regeneration &bI-III" to run [function "gui" {{_player} and "strona-4-regeneracja"};]
  34. format slot 14 of {_player} with 1 of potion of:8262 named "&cPotki Widzenia W Ciemnosci" with lore "&6Night Vision &bI-III" to run [function "gui" {{_player} and "strona-5-widzenie"};]
  35. format slot 15 of {_player} with 1 of enchanted golden apple named "&cEfekt Koxa" with lore "&6Cena: &b{@cena-efekt-koxa}" to run [function "apply" {{_player} and "kox"};]
  36. format slot 22 of {_player} with 1 of beacon named "&cEfekt Haste" with lore "&6Haste &bI-III" to run [function "gui" {{_player} and "strona-7-haste"};]
  37. format slot 26 of {_player} with 1 of book named "&cAutor" with lore "&6mati770ka" to be unstealable
  38. if {_strona} is "strona-2-szybkosc":
  39. open chest with 3 rows named "&e&lSzybkosc I-III" to {_player}
  40. wait 1 tick
  41. format slot 12 of {_player} with 1 of water bottle named "&cSpeed I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-speed-I}" to run [function "apply" {{_player} and "speed1"};]
  42. format slot 13 of {_player} with 1 of water bottle named "&cSpeed II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-speed-II}" to run [function "apply" {{_player} and "speed2"};]
  43. format slot 14 of {_player} with 1 water bottle named "&cSpeed III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-speed-III}" to run [function "apply" {{_player} and "speed3"};]
  44. format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and strona-1};]
  45. if {_strona} is "strona-3-ogien":
  46. open chest with 3 rows named "&e&lOdpornosc Ogien I-III" to {_player}
  47. wait 1 tick
  48. format slot 12 of {_player} with 1 of water bottle named "&cFire Resistance I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-fire-I}" to run [function "apply" {{_player} and "fire1"};]
  49. format slot 13 of {_player} with 1 of water bottle named "&cFire Resistance II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-fire-II}" to run [function "apply" {{_player} and "fire2"};]
  50. format slot 14 of {_player} with 1 of water bottle named "&cFire Resistance III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-fire-III}" to run [function "apply" {{_player} and "fire3"};]
  51. format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and "strona-1"};]
  52. if {_strona} is "strona-4-regeneracja":
  53. open chest with 3 rows named "&e&lRegeneracja I-III" to {_player}
  54. wait 1 tick
  55. format slot 12 of {_player} with 1 of water bottle named "&cRegeneration I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-regeneration-I}" to run [function "apply" {{_player} and "regeneration1"};]
  56. format slot 13 of {_player} with 1 of water bottle named "&cRegeneration II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-regeneration-II}" to run [function "apply" {{_player} and "regeneration2"};]
  57. format slot 14 of {_player} with 1 of water bottle named "&cRegeneration III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-regeneration-III}" to run [function "apply" {{_player} and "regeneration3"};]
  58. format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and "strona-1"};]
  59. if {_strona} is "strona-5-widzenie":
  60. open chest with 3 rows named "&e&lWidzenie W Ciemnosci I-III" to {_player}
  61. wait 1 tick
  62. format slot 12 of {_player} with 1 of water bottle named "&cNight Vision I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-night-I}" to run [function "apply" {{_player} and "night1"};]
  63. format slot 13 of {_player} with 1 of water bottle named "&cNight Vision II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-night-II}" to run [function "apply" {{_player} and "night2"};]
  64. format slot 14 of {_player} with 1 of water bottle named "&cNight Vision III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-night-III}" to run [function "apply" {{_player} and "night3"};]
  65. format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and strona-1};]
  66. if {_strona} is "strona-6-haste":
  67. open chest with 3 rows named "&e&lHaste I-III" to {_player}
  68. wait 1 tick
  69. format slot 12 of {_player} with 1 of water bottle named "&cHaste I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-haste-I}" to run [function "apply" {{_player} and "haste1"};]
  70. format slot 13 of {_player} with 1 of water bottle named "&cHaste II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-haste-II}" to run [function "apply" {{_player} and "haste2"};]
  71. format slot 14 of {_player} with 1 of water bottle named "&cHaste III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-haste-III}" to run [function "apply" {{_player} and "haste3"};]
  72. format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and "strona-1"};]
  73. method "apply" {player and effects}:
  74. set {_player} to arg{1};
  75. set {_effects} to arg{2};
  76. if {_effects} is "speed1":
  77. if {_player}'s inventory contains {@cena-speed-I} emerald:
  78. remove speed from {_player}
  79. apply speed 1 to {_player} for 5 minutes
  80. remove {@cena-speed-I} emerald from {_player}
  81. send "&cZakupiles Efekt: &eSpeed I" to {_player}
  82. else:
  83. send "&cNie posiadasz &6{@cena-speed-I} emeraldow" to {_player}
  84. if {_effects} is "speed2":
  85. if {_player}'s inventory contains {@cena-speed-II} emerald:
  86. remove speed from {_player}
  87. apply speed 2 to {_player} for 5 minutes
  88. send "&cZakupiles Efekt: &eSpeed II" to {_player}
  89. else:
  90. send "&cNie posiadasz &6{@cena-speed-II} emeraldow" to {_player}
  91. if {_effects} is "speed3":
  92. if {_player}'s inventory contains {@cena-speed-III} emerald:
  93. remove speed from {_player}
  94. apply speed 3 to {_player} for 5 minutes
  95. send "&cZakupiles Efekt: &eSpeed III" to {_player}
  96. else:
  97. send "&cNie posiadasz &6{@cena-speed-III} emeraldow" to {_player}
  98. if {_effects} is "fire1":
  99. if {_player}'s inventory contains {@cena-fire-I} emerald:
  100. remove fire resistance from {_player}
  101. apply fire resistance 1 to {_player} for 5 minutes
  102. send "&cZakupiles Efekt: &eFire Resistance I" to {_player}
  103. else:
  104. send "&cNie posiadasz &6{@cena-fire-I} emeraldow" to {_player}
  105. if {_effects} is "fire2":
  106. if {_player}'s inventory contains {@cena-fire-II} emerald:
  107. remove fire resistance from {_player}
  108. apply fire resistance 2 to {_player} for 5 minutes
  109. send "&cZakupiles Efekt: &eFire Resistance II" to {_player}
  110. else:
  111. send "&cNie posiadasz &6{@cena-fire-II} emeraldow" to {_player}
  112. if {_effects} is "fire3":
  113. if {_player}'s inventory contains {@cena-fire-III} emerald:
  114. remove fire resistance from {_player}
  115. apply fire resistance 3 to {_player} for 5 minutes
  116. send "&cZakupiles Efekt: &eFire Resistance III" to {_player}
  117. else:
  118. send "&cNie posiadasz &6{@cena-fire-III} emeraldow" to {_player}
  119. if {_effects} is "regeneration1":
  120. if {_player}'s inventory contains {@cena-regeneration-I} emerald:
  121. remove regeneration from {_player}
  122. apply regeneration 1 to {_player} for 5 minutes
  123. send "&cZakupiles Efekt: &eRegeneration I" to {_player}
  124. else:
  125. send "&cNie posiadasz &6{@cena-regeneration-I} emeraldow" to {_player}
  126. if {_effects} is "regeneration2":
  127. if {_player}'s inventory contains {@cena-regeneration-II} emerald:
  128. remove regeneration from {_player}
  129. apply regeneration 2 to {_player} for 5 minutes
  130. send "&cZakupiles Efekt: &eRegeneration II" to {_player}
  131. else:
  132. send "&cNie posiadasz &6{@cena-regeneration-II} emeraldow" to {_player}
  133. if {_effects} is "regeneration3":
  134. if {_player}'s inventory contains {@cena-regeneration-III} emerald:
  135. remove regeneration from {_player}
  136. apply regeneration 3 to {_player} for 5 minutes
  137. send "&cZakupiles Efekt: &eRegeneration III" to {_player}
  138. else:
  139. send "&cNie posiadasz &6{@cena-regeneration-III} emeraldow" to {_player}
  140. if {_effects} is "night1":
  141. if {_player}'s inventory contains {@cena-night-I} emerald:
  142. remove night vision from {_player}
  143. apply night vision 1 to {_player} for 5 minutes
  144. send "&cZakupiles Efekt: &eNight Vision I" to {_player}
  145. else:
  146. send "&cNie posiadasz &6{@cena-night-I} emeraldow" to {_player}
  147. if {_effects} is "night2":
  148. if {_player}'s inventory contains {@cena-night-II} emerald:
  149. remove night vision from {_player}
  150. apply night vision 2 to {_player} for 5 minutes
  151. send "&cZakupiles Efekt: &eNight Vision II" to {_player}
  152. else:
  153. send "&cNie posiadasz &6{@cena-night-II} emeraldow" to {_player}
  154. if {_effects} is "night3":
  155. if {_player}'s inventory contains {@cena-night-III} emerald:
  156. remove night vision from {_player}
  157. apply night vision 3 to {_player} for 5 minutes
  158. send "&cZakupiles Efekt: &eNight Vision III" to {_player}
  159. else:
  160. send "&cNie posiadasz &6{@cena-night-III} emeraldow" to {_player}
  161. if {_effects} is "kox":
  162. if {_player}'s inventory contains {@cena-efekt-koxa} emerald:
  163. remove absorption or regeneration or resistance or fire resistance from {_player}
  164. apply absorption to {_player} for 2 minutes
  165. apply regeneration to {_player} for 30 seconds
  166. apply resistance and fire resistance to {_player} for 5 minutes
  167. send "&cZakupiles Efekt: &eKox" to {_player}
  168. else:
  169. send "&cNie posiadasz &6{@cena-efekt-koxa} emeraldow" to {_player}
  170. if {_effects} is "haste1":
  171. if {_player}'s inventory contains {@cena-haste-I} emerald:
  172. remove haste from {_player}
  173. apply haste 1 to {_player} for 5 minutes
  174. send "&cZakupiles Efekt: &eHaste I" to {_player}
  175. else:
  176. send "&cNie posiadasz &6{@cena-haste-I} emeraldow" to {_player}
  177. if {_effects} is "haste2":
  178. if {_player}'s inventory contains {@cena-haste-II} emerald:
  179. remove haste from {_player}
  180. apply haste 2 to {_player} for 5 minutes
  181. send "&cZakupiles Efekt: &eHaste II" to {_player}
  182. else:
  183. send "&cNie posiadasz &6{@cena-haste-II} emeraldow" to {_player}
  184. if {_effects} is "haste3":
  185. if {_player}'s inventory contains {@cena-haste-III} emerald:
  186. remove haste from {_player}
  187. apply haste 3 to {_player} for 5 minutes
  188. send "&cZakupiles Efekt: &eHaste III" to {_player}
  189. else:
  190. send "&cNie posiadasz &6{@cena-haste-III} emeraldow" to {_player}
  191. command /efekty:
  192. trigger:
  193. function "gui" {player and "strona-1"};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement