knugi

Untitled

Dec 13th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.46 KB | None | 0 0
  1. # ##################################################################################################### #
  2. # Licencja | weaponsplus #
  3. # by Anemonex #
  4. # ##################################################################################################### #
  5. # Pełna nazwa wersji: WeaponsPlus v4.0.1.11_08_14_18_01 PL BETA #
  6. # ##################################################################################################### #
  7. # Nie zezwalam na: #
  8. # - Zarabianie na skrypcie #
  9. # - Wykorzystywanie kodu skryptu w swoich skryptach #
  10. # - Udostepnianiu skryptu innym bez mojej wiedzy #
  11. # - Udostepnianie skryptu w paczkach itp. #
  12. # - Usuwanie tresci zawierajacej autora #
  13. # - Podszywaniu sie pod autora #
  14. # ##################################################################################################### #
  15. # Zezwalam na: #
  16. # - Modyfikowanie zawartosci dla wlasnych potrzeb #
  17. # ##################################################################################################### #
  18. # Mylnie odczytana [lub nie odczytana] licencja nie zwalnia z przestrzegania jej #
  19. # ##################################################################################################### #
  20. # Permissions: #
  21. # - weaponsplus.*- Dostęp do wszystkich pozwoleń #
  22. # - weaponsplus.debug - Dostęp do komendy debugowania skryptu [/bron debug] #
  23. # - weaponsplus.reload- Dostęp do komendy odświeżającej skrypt [/bron odswiez] #
  24. # - weaponsplus.create - Dostęp do komendy tworzącej miecze [/bron stworz] #
  25. # - weaponsplus.crafting - Dostęp do komendy, dzięki której sprawdzisz crafting mieczy [/bron crafting] #
  26. # - weaponsplus.sign - Dostęp do tworzenia tabliczek #
  27. # - weaponsplus.reset - Resetuje czas opóźnienia między zaklęciami [/bron reset] #
  28. # ##################################################################################################### #
  29. # Wymagane: #
  30. # - Skript 2.1.2 #
  31. # dev.bukkit.org/bukkit-plugins/skript/ #
  32. # #
  33. # - SkriptPlus 2.2.4 #
  34. # dl.dropboxusercontent.com/s/etc2py6bz0b4l45/SkriptPlus.jar #
  35. # #
  36. # - Essentials #
  37. # dev.bukkit.org/bukkit-plugins/essentials/ #
  38. # #
  39. # ##################################################################################################### #
  40.  
  41. options:
  42. #=======================#
  43. # KOMENDY #
  44. #=======================#
  45. # Nazwa głównej komendy #
  46. # Domyślnie: /bron #
  47. arg0: bron
  48.  
  49. # Nazwa argumentu, dzięki której odbierzesz bron #
  50. # Domyślnie: /bron stworz #
  51. arg1: stworz
  52.  
  53. # Nazwa argumentu, dzięki któremu odbierzesz wszystkie bronie #
  54. # Domyślnie: /bron get wszystkie #
  55. arg2: wszystkie
  56.  
  57. # Nazwa argumentu, dzięki któremu uzyskasz informacje o skrypcie #
  58. # Domyślnie: /bron pomoc #
  59. arg3: pomoc
  60.  
  61. # Nazwa argumentu, dzięki któremu sprawdzisz crafting broni #
  62. # Domyślnie: /bron crafting #
  63. arg4: crafting
  64.  
  65. # Jeżeli masz problem ze skryptem, używając tej komendy zresetujesz go #
  66. # Domyślnie: /bron debug #
  67. arg6: debug
  68.  
  69. # Ta komenda służy do resetowania skryptu #
  70. # Domyślnie: /bron odswiez #
  71. arg7: odswiez
  72.  
  73. # Ta komenda służy do resetowania czasu odnawiania się zaklęć #
  74. # Domyślnie: /bron reset #
  75. arg8: reset
  76.  
  77. #=======================#
  78. # OPÓŹNIENIE #
  79. #=======================#
  80. # Opuźnienie w użyciu zaklęć po użyciu danego zaklęcia #
  81. # Zaklęcie: Piorun #
  82. cooldown1: 300
  83.  
  84. # Zaklęcie: Eksplozja #
  85. cooldown2: 300
  86.  
  87. # Zaklęcie: Szarża #
  88. cooldown3: 240
  89.  
  90. # Zaklęcie: Wyskok #
  91. cooldown4: 240
  92.  
  93. # Zaklęcie: Przywołanie #
  94. cooldown5: 480
  95.  
  96. # Zaklęcie: Przywołanie z piekieł #
  97. cooldown6: 480
  98.  
  99. # Zaklęcie: Przywołanie osadników #
  100. cooldown7: 480
  101.  
  102. # Zaklęcie: Tarcza [miecz] #
  103. cooldown8: 300
  104.  
  105. # Zaklęcie: Zaskoczenie #
  106. cooldown9: 180
  107.  
  108. # Zaklęcie: Chronoskok [miecz] #
  109. cooldown10: 15
  110.  
  111. # Zaklęcie: Podpalenie #
  112. cooldown11: 120
  113.  
  114. # Zaklęcie: Wieczny oddech #
  115. cooldown12: 120
  116.  
  117. # Zaklęcie: Seria strzał #
  118. cooldown13: 120
  119.  
  120. # Zaklęcie: Elficki ostrzał #
  121. cooldown14: 120
  122.  
  123. # Zaklęcie: Przeładowanie #
  124. cooldown15: 60
  125.  
  126. # Zaklęcie: Teleportacja [łuk] #
  127. cooldown16: 15
  128.  
  129. # Zaklęcie: Tarcza [łuk] #
  130. cooldown17: 300
  131.  
  132. #=======================#
  133. # MIECZE #
  134. #=======================#
  135. # Możliwość craftingu mieczy #
  136. # true - możliwy do craftowania #
  137. # false - niemożliwy do craftiwania #
  138.  
  139. # Miecz ślepoty #
  140. # Przy każdym ataku nadaje przeciwnikowi efekt Blindness I na 3 sekundy #
  141. sword1: true
  142.  
  143. # Miecz nudności #
  144. # Przy każdym ataku nadaje przeciwnikowi efekt Nausea I na 8 sekund #
  145. sword2: true
  146.  
  147. # Miecz spowolnienia #
  148. # Przy każdym ataku nadaje przeciwnikowi efekt Slowness I na 3 sekundy #
  149. sword3: true
  150.  
  151. # Miecz błyskawic #
  152. # Po kliknięciu PPM tworzy błyskawice w wyznaczonym miejscu #
  153. sword4: true
  154.  
  155. # Miecz eksplozji #
  156. # Po kliknięciu PPM tworzy eksplozje o sile 5 w wyznaczonym miejscu #
  157. sword5: true
  158.  
  159. # Miecz szybkości #
  160. # Przy każdym ataku nadaje właścicielowi efekt Swiftness I na 8 sekund #
  161. # Po kliknięciu PPM nadaje właścicielowi miecza efekt Swiftness X na 1 sekundę #
  162. sword6: true
  163.  
  164. # Miecz skoczności #
  165. # Przy każdym ataku nadaje właścicielowi efekt Jump Boost I na 8 sekund #
  166. # Po kliknięciu PPM nadaje właścicielowi miecza efekt Jump Boost X na 8 sekund #
  167. sword7: true
  168.  
  169. # Miecz kradzieży życia #
  170. # Przy każdym ataku przywraca właścicielowi miecza 1/10 serduszka #
  171. # Po kliknięciu PPM nadaje właścicielowi miecza efekt Absorption 5 [10 złotych serduszek] na 60 sekund #
  172. sword8: true
  173.  
  174. # Miecz zabójcy #
  175. # Po kliknięciu PPM nadaje właścicielowi miecza efekt Invisibility I oraz Swiftness III na 5 sekund #
  176. sword9: true
  177.  
  178. # Miecz osadnika #
  179. # Po kliknięciu PPM przywołuje 5 osadników w wyznaczonym miejscu #
  180. sword10: true
  181.  
  182. # Miecz potworów #
  183. # Po kliknięciu PPM przywołuje 3 zombie, 3 endermany, 3 silverfishe, 3 pająki, 3 szkielety, 3 wiedźmy, 3 slime lub 3 creepery w wyznaczonym miejscu #
  184. sword11: true
  185.  
  186. # Miecz piekieł #
  187. # Po kliknięciu PPM przywołuje 1 ghasta, 3 zombie pigmany, 2 blazy lub 3 magma cuby w wyznaczonym miejscu #
  188. sword12: true
  189.  
  190. # Miecz teleportacji #
  191. # Po kliknięciu PPM przenosi właściciela miecza na wyznaczone miejsce #
  192. sword13: true
  193.  
  194. # Miecz ognia #
  195. # Po kliknięciu PPM podpala pobliskich przeciwników i nadaje właścicielowi miecza efekt Fire Resistance I na 30 sekund #
  196. sword14: true
  197.  
  198. # Miecz syreny #
  199. # Po kliknięciu PPM nadaje właścicielowi miecza efekt Water Breathing I na 60 sekund #
  200. sword15: true
  201.  
  202. # Miecz ognia - inferno #
  203. # false - miecz ognia będzie jedynie podpalał przeciwników i nadawał właścicielowi miecza Fire Resistance I na 30 sekund #
  204. # true - miecz ognia będzie podpalał przeciwników i nadawał właścicielowi miecza Fire Resistance I na 30 sekund. Dodatkowo w odległości 5 od wyznaczonego miejsca będzie podpalał teren #
  205. inferno: false
  206.  
  207. #=======================#
  208. # ŁUKI #
  209. #=======================#
  210. # Możliwość craftingu łuków #
  211. # true - możliwy do craftowania #
  212. # false - niemożliwy do craftiwania #
  213.  
  214. # Lekki łuk #
  215. # Po kliknięciu LPM wystrzeliwuje serie 10 strzał #
  216. bow1: true
  217.  
  218. # Elfi łuk #
  219. # Po kliknięciu LPM wystrzeliwuje 5 strzał na raz #
  220. bow2: true
  221.  
  222. # Elfi strażnika #
  223. # Po kliknięciu LPM gracz otrzymuje 6 strzał #
  224. bow3: true
  225.  
  226. # Łuk teleportacji #
  227. # Po kliknięciu LPM teleportuje gracza w wyznaczone miejsce #
  228. bow4: true
  229.  
  230. # Łuk kradzieży życia #
  231. # Przy każdym ataku przywraca właścicielowi łuku 2/10 serduszka #
  232. # Po kliknięciu LPM nadaje właścicielowi łuku efekt Absorption 5 [10 złotych serduszek] na 60 sekund #
  233. bow5: true
  234.  
  235. #=======================#
  236. # KOLORY #
  237. #=======================#
  238. # Kolor główny #
  239. # Wyświetlany w wiadomościach, które nie zawierają ważnej wiadomości #
  240. c1: 7
  241.  
  242. # Kolor podrzędny #
  243. # Wyświetlany np. w poprawnym użyciu komendy czy też ważnych przekazach #
  244. c2: c
  245.  
  246. # Ile punktów użyć ma zabierać użycie zaklęcia #
  247. points: 20
  248.  
  249. #=======================#
  250. # ZABEZPIECZENIA #
  251. #=======================#
  252. # Jeżeli crafting miecza ognia jest aktywny, razem z nim został dodany crafting "bloku lawy" #
  253. # Jeżeli chcesz, aby gracz NIE MÓGŁ postawić bloku lawy pozostaw tą opcje na "true" #
  254. # Jeżeli chcesz, aby gracz MÓGŁ postawić blok lawy ustaw tej opcji argument "false" #
  255. blocklava: true
  256.  
  257. # Jeżeli crafting miecza syreny jest aktywny, razem z nim został dodany crafting "bloku wody" #
  258. # Jeżeli chcesz, aby gracz NIE MÓGŁ postawić bloku wody pozostaw tą opcje na "true" #
  259. # Jeżeli chcesz, aby gracz MÓGŁ postawić blok wody ustaw tej opcji argument "false" #
  260. blockwater: true
  261.  
  262. # Maksymalna odległość na jaką gracz może teleportować się przy użyciu miecza teleportacji
  263. swordradius: 10
  264.  
  265. # Maksymalna odległość na jaką gracz może teleportować się przy użyciu łuku teleportacji
  266. bowradius: 10
  267.  
  268. #=======================#
  269. # TABLICZKI #
  270. #=======================#
  271. # Tabliczki #
  272. # Możesz utworzyć tabliczkę z informacjami o craftingu. Gracz po kliknięciu na nią PPM zobaczy to samo, co po wpisanie /bron crafting <id-miecza> #
  273. # Linia 1: [Miecz/Luk/Dodatek] - Wartość tworząca tabliczkę #
  274. # Linia 2: Crafting - Argument tabliczki #
  275. # Linia 3: 001 - ID miecza/łuku/dodatku #
  276.  
  277. # Wartość, którą musisz wpisać w linii 1 między kwadratowymi nawiasami #
  278. # Dotyczy craftingu mieczy #
  279. line1sword: Miecz
  280.  
  281. # Wartość, którą musisz wpisać w linii 1 między kwadratowymi nawiasami #
  282. # Dotyczy craftingu łuków #
  283. line1bow: Luk
  284.  
  285. # Wartość, którą musisz wpisać w linii 1 między kwadratowymi nawiasami #
  286. # Dotyczy craftingu dodatków #
  287. line1addons: Dodatek
  288.  
  289. # Wartość, którą musisz podać w linii 2 #
  290. line2: Crafting
  291.  
  292. # Kolor linii 1 po poprawnym stworzeniu tabliczki #
  293. c3: 1
  294.  
  295. # Kolor linii 2 po poprawnym stworzeniu tabliczki #
  296. c4: 0
  297.  
  298. # Kolor linii 3 po poprawnym stworzeniu tabliczki #
  299. c5: 0
  300.  
  301. # Kolory: #
  302. # 1 - Ciemny niebieski 5 - Ciemny różowy 9 - Jasny morski c - Jasny czerwony #
  303. # 2 - Ciemny zielony 6 - Złoty 0 - Czarny d - Jasny różowy #
  304. # 3 - Ciemny morski 7 - Jasny szary a - Jasny zielony e - Żółty #
  305. # 4 - Ciemny czerwony 8 - Ciemny szary b - Jasny niebieski f - Biały #
  306.  
  307. #=======================#
  308. # EKSPLOZJE I PIORUNY #
  309. #=======================#
  310. # Szansa na uderzenie fałszywego pioruna używając miecza błyskawic #
  311. lightningchance: 10
  312.  
  313. # Szansa na stworzenie fałszywej eksplozji używając miecza eksplozji #
  314. explosionchance: 10
  315.  
  316. #=======================#
  317. # UPDATER #
  318. #=======================#
  319. # Czy w konsoli ma pojawiać się informacja o wersji skryptu? #
  320. consoleupdate: true
  321.  
  322. # Czy gracz z pozwoleniem "weaponsplus.checkupdates" ma widzieć informacje o pojawieniu się nowej wersji po wejściu na serwer? #
  323. playerupdate: true
  324.  
  325. # KONIEC KONFIGURACJI, RESZTA NIE JEST DLA CIEBIE ! :) #
  326. # Serio, nie tykaj tego. #
  327.  
  328.  
  329.  
  330.  
  331.  
  332. on join:
  333. player has permission "weaponsplus.checkupdates"
  334. {wp.updated} is false
  335. {@playerupdate} is true
  336. send "&7» Pojawila sie nowa wersja skryptu &eWeaponsPlus by Anemonex"
  337. send "&7» &eCzas na update!"
  338. on script load:
  339. set {wp.scriptname} to "%script%"
  340. set {wp.version} to "WeaponsPlus v4.0.1.11_08_14_18_01 PL BETA"
  341. set {_wp.version} to text from url "http://updatechecking.ugu.pl/wp.updatechecking"
  342. if {wp.version} is {_wp.version}:
  343. set {wp.updated} to true
  344. if {@consoleupdate} is true:
  345. send "&7##################################################################################################" to console
  346. send "&7## &7##" to console
  347. send "&7## &eWeaponsPlus &7##" to console
  348. send "&7## &eby Anemonex &7##" to console
  349. send "&7## &7##" to console
  350. send "&7## &aKorzystasz z najnowszej wersji skryptu! &7##" to console
  351. send "&7## &7##" to console
  352. send "&7##################################################################################################" to console
  353. else:
  354. set {wp.updated} to false
  355. if {@consoleupdate} is true:
  356. send "&7##################################################################################################" to console
  357. send "&7## &7##" to console
  358. send "&7## &eWeaponsPlus &7##" to console
  359. send "&7## &eby Anemonex &7##" to console
  360. send "&7## &7##" to console
  361. send "&7## &cKorzystasz z przestarzalej wersji skryptu! &7##" to console
  362. send "&7## &7##" to console
  363. send "&7##################################################################################################" to console
  364. if {equipmentplusloaded} is false:
  365. if {@sword1} is true:
  366. register new shaped recipe for diamond sword named "&r&bMiecz slepoty" with lore "&7Blindness I" using eye of ender, eye of ender, eye of ender, eye of ender, diamond sword, eye of ender, eye of ender, eye of ender, eye of ender
  367. if {@sword2} is true:
  368. register new shaped recipe for diamond sword named "&r&bMiecz nudnosci" with lore "&7Nausea I" using raw pufferfish, raw pufferfish, raw pufferfish, raw pufferfish, diamond sword, raw pufferfish, raw pufferfish, raw pufferfish, raw pufferfish
  369. if {@sword3} is true:
  370. register new shaped recipe for diamond sword named "&r&bMiecz spowolnienia" with lore "&7Slowness I" using fermented spider eye, fermented spider eye, fermented spider eye, fermented spider eye, diamond sword, fermented spider eye, fermented spider eye, fermented spider eye, fermented spider eye
  371. if {@sword4} is true:
  372. register new shaped recipe for diamond sword named "&r&bMiecz blyskawic" with lore "&7Lightning I" using blaze rod, blaze rod, blaze rod, blaze rod, diamond sword, blaze rod, blaze rod, blaze rod, blaze rod
  373. if {@sword5} is true:
  374. register new shaped recipe for diamond sword named "&r&bMiecz eksplozji" with lore "&7Explosion I" using tnt, tnt, tnt, tnt, diamond sword, tnt, tnt, tnt, tnt
  375. if {@sword6} is true:
  376. register new shaped recipe for diamond sword named "&r&bMiecz szybkosci" with lore "&7Swiftness I" using sugar, sugar, sugar, sugar, diamond sword, sugar, sugar, sugar, sugar
  377. if {@sword7} is true:
  378. register new shaped recipe for diamond sword named "&r&bMiecz skocznosci" with lore "&7Jump boost I" using feather, feather, feather, feather, diamond sword, feather, feather, feather, feather
  379. if {@sword8} is true:
  380. register new shaped recipe for diamond sword named "&r&bMiecz kradziezy zycia" with lore "&7Lifesteal I" using apple, apple, apple, apple, diamond sword, apple, apple, apple, apple
  381. if {@sword9} is true:
  382. register new shaped recipe for diamond sword named "&r&bMiecz zabojcy" with lore "&7Invisibility I||&7Swiftness III" using ender pearl, feather, ender pearl, feather, diamond sword, feather, ender pearl, feather, ender pearl
  383. if {@sword10} is true:
  384. register new shapeless recipe for diamond sword named "&r&bMiecz osadnika" with lore "&7Villagers spawning I" using emerald, emerald, emerald, emerald, diamond sword, emerald, emerald, emerald, emerald
  385. if {@sword11} is true:
  386. register new shapeless recipe for diamond sword named "&r&bMiecz potworow" with lore "&7Monsters spawning I" using gunpowder, bone, ender pearl, rotten flesh, diamond sword, spider eye, slimeball, water bottle, stone
  387. if {@sword12} is true:
  388. register new shapeless recipe for diamond sword named "&r&bMiecz piekiel" with lore "&7Nether monsters spawning I" using blaze rod, blaze rod, magma cream, magma cream, diamond sword, ghast tear, ghast tear, gold nugget, gold nugget
  389. if {@sword13} is true:
  390. register new shaped recipe for diamond sword named "&r&bMiecz teleportacji" with lore "&7Teleportation I" using ender pearl, ender pearl, ender pearl, ender pearl, diamond sword, ender pearl, ender pearl, ender pearl, ender pearl
  391. if {@sword14} is true:
  392. register new shaped recipe for diamond sword named "&r&bMiecz ognia" with lore "&7Ignite I||&7Fire resistance I" using lava item, lava item, lava item, lava item, diamond sword, lava item, lava item, lava item, lava item
  393. register new shapeless recipe for lava item using lava bucket, lava bucket, none, none, none, none, none, none, none
  394. if {@sword15} is true:
  395. register new shaped recipe for diamond sword named "&r&bMiecz syreny" with lore "&7Water breathing I" using water item, water item, water item, water item, diamond sword, water item, water item, water item, water item
  396. register new shapeless recipe for water item using water bucket, water bucket, none, none, none, none, none, none, none
  397. if {@bow1} is true:
  398. register new shaped recipe for bow named "&r&bLekki luk" with lore "&7Fast shooting I" using feather, feather, feather, feather, bow, feather, feather, feather, feather
  399. if {@bow2} is true:
  400. register new shaped recipe for bow named "&r&bElfi luk" with lore "&7Multi shot I" using feather, bow, feather, feather, bow, feather, feather, bow, feather
  401. if {@bow3} is true:
  402. register new shaped recipe for bow named "&r&bLuk straznika" with lore "&7Arrows I" using arrow, arrow, arrow, arrow, bow, arrow, arrow, arrow, arrow
  403. if {@bow4} is true:
  404. register new shaped recipe for bow named "&r&bLuk teleportacji" with lore "&7Teleportation I" using ender pearl, ender pearl, ender pearl, ender pearl, bow, ender pearl, ender pearl, ender pearl, ender pearl
  405. if {@bow5} is true:
  406. register new shaped recipe for bow named "&r&bLuk kradziezy zycia" with lore "&7Lifesteal I" using apple, apple, apple, apple, bow, apple, apple, apple, apple
  407. set {equipmentplusloaded} to true
  408. stop
  409. else:
  410. stop
  411. variables:
  412. {spell.%player%} = false
  413. {timer.%player%} = 0
  414. {equipmentplusloaded} = false
  415. on damage:
  416. if projectile is arrow:
  417. {bowoflifesteal.%attacker%} is true
  418. heal attacker by 0.20 hearts
  419. stop
  420. if players's tool is diamond sword:
  421. if lore of attacker's tool is "&7Blindness I":
  422. remove blindness from the victim
  423. apply blindness 1 to the victim for 3 seconds
  424. stop
  425. if lore of attacker's tool is "&7Nausea I":
  426. remove nausea from the victim
  427. apply nausea 1 to the victim for 8 seconds
  428. stop
  429. if lore of attacker's tool is "&7Slowness I":
  430. remove slowness from the victim
  431. apply slowness 1 to the victim for 3 seconds
  432. stop
  433. if lore of attacker's tool is "&7Swiftness I":
  434. remove swiftness from the attacker
  435. apply swiftness 1 to the attacker for 8 seconds
  436. stop
  437. if lore of attacker's tool is "&7Jump boost I":
  438. remove jump boost from the attacker
  439. apply jump boost 1 to the attacker for 8 seconds
  440. stop
  441. if lore of attacker's tool is "&7Lifesteal I":
  442. heal attacker by 0.10 hearts
  443. stop
  444. if lore of attacker's tool is "&7Lightning I":
  445. chance of {@lightningchance}%:
  446. strike lightning effect at the victim
  447. stop
  448. if lore of attacker's tool is "&7Explosion I":
  449. chance of {@explosionchance}%:
  450. create a fake explosion at the victim
  451. stop
  452. if lore of attacker's tool is "&7Ignite I||&7Fire resistance I":
  453. Show mobspawner flames at victim
  454. stop
  455. every 1 real seconds:
  456. loop all players:
  457. if {timer.%loop-player%} is more than 0:
  458. remove 1 from {timer.%loop-player%}
  459. if {spell.%loop-player%} is true:
  460. if {timer.%loop-player%} is 0:
  461. send "&{@c1}» Mozesz ponownie uzywac zaklec" to loop-player
  462. set {spell.%loop-player%} to false
  463. stop
  464. on rightclick:
  465. if player's tool is sword:
  466. if lore of player's tool is "&7Ignite I||&7Fire resistance I":
  467. if {timer.%player%} is 0:
  468. send "&{@c1}» Uzyles zaklecia: &{@c2}Podpalenie"
  469. apply fire resistance 1 to player for 30 seconds
  470. if {@inferno} is true:
  471. loop blocks in radius 5 around targeted block:
  472. if loop-block is tall grass:
  473. set loop-block to fire
  474. if loop-block is air:
  475. set loop-block to fire
  476. loop players in radius 5 around targeted block:
  477. ignite the loop-player for 10 seconds
  478. loop entities in radius 5 around targeted block:
  479. ignite the loop-entities for 10 seconds
  480. damage player's tool by {@points}
  481. set {timer.%player%} to {@cooldown11}
  482. stop
  483. if {timer.%player%} is more than 0:
  484. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  485. stop
  486. if lore of player's tool is "&7Lightning I":
  487. if {timer.%player%} is 0:
  488. strike lightning at targeted block
  489. send "&{@c1}» Uzyles zaklecia: &{@c2}Piorun"
  490. damage player's tool by {@points}
  491. set {timer.%player%} to {@cooldown1}
  492. stop
  493. if {timer.%player%} is more than 0:
  494. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  495. stop
  496. if lore of player's tool is "&7Explosion I":
  497. if {timer.%player%} is 0:
  498. create an explosion of force 5 at targeted block
  499. send "&{@c1}» Uzyles zaklecia: &{@c2}Eksplozja"
  500. damage player's tool by {@points}
  501. set {timer.%player%} to {@cooldown2}
  502. stop
  503. if {timer.%player%} is more than 0:
  504. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  505. stop
  506. if lore of player's tool is "&7Swiftness I":
  507. if {timer.%player%} is 0:
  508. apply swiftness 10 to player for 1 seconds
  509. send "&{@c1}» Uzyles zaklecia: &{@c2}Szarza"
  510. damage player's tool by {@points}
  511. set {timer.%player%} to {@cooldown3}
  512. stop
  513. if {timer.%player%} is more than 0:
  514. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  515. stop
  516. if lore of player's tool is "&7Jump boost I":
  517. if {timer.%player%} is 0:
  518. apply jump boost 10 to player for 8 seconds
  519. send "&{@c1}» Uzyles zaklecia: &{@c2}Wyskok"
  520. damage player's tool by {@points}
  521. set {timer.%player%} to {@cooldown4}
  522. stop
  523. if {timer.%player%} is more than 0:
  524. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  525. stop
  526. if lore of player's tool is "&7Monsters spawning I":
  527. if {timer.%player%} is 0:
  528. spawn 3 skeleton or 3 creeper or 3 witch or 3 zombie or 3 silverfish or 3 slime or 3 spider or 3 enderman at block above the targeted block
  529. send "&{@c1}» Uzyles zaklecia: &{@c2}Przywolanie"
  530. damage player's tool by {@points}
  531. set {timer.%player%} to {@cooldown5}
  532. stop
  533. if {timer.%player%} is more than 0:
  534. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  535. stop
  536. if lore of player's tool is "&7Nether monsters spawning I":
  537. if {timer.%player%} is 0:
  538. spawn 1 ghast or 2 blaze or 3 zombie pigman or 3 magma cube at block above the targeted block
  539. send "&{@c1}» Uzyles zaklecia: &{@c2}Przywolanie z piekiel"
  540. damage player's tool by {@points}
  541. set {timer.%player%} to {@cooldown6}
  542. stop
  543. if {timer.%player%} is more than 0:
  544. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  545. stop
  546. if lore of player's tool is "&7Villagers spawning I":
  547. if {timer.%player%} is 0:
  548. spawn 5 villagers at block above the targeted block
  549. send "&{@c1}» Uzyles zaklecia: &{@c2}Przywolanie osadnikow"
  550. damage player's tool by {@points}
  551. set {timer.%player%} to {@cooldown7}
  552. stop
  553. if {timer.%player%} is more than 0:
  554. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  555. stop
  556. if lore of player's tool is "&7Lifesteal I":
  557. if {timer.%player%} is 0:
  558. apply absorption 5 to player for 60 seconds
  559. send "&{@c1}» Uzyles zaklecia: &{@c2}Tarcza"
  560. damage player's tool by {@points}
  561. set {timer.%player%} to {@cooldown8}
  562. stop
  563. if {timer.%player%} is more than 0:
  564. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  565. stop
  566. if lore of player's tool is "&7Invisibility I||&7Swiftness III":
  567. if {timer.%player%} is 0:
  568. apply invisibility 1 to player for 5 seconds
  569. apply swiftness 3 to player for 5 seconds
  570. send "&{@c1}» Uzyles zaklecia: &{@c2}Zaskoczenie"
  571. damage player's tool by {@points}
  572. set {timer.%player%} to {@cooldown9}
  573. stop
  574. if {timer.%player%} is more than 0:
  575. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  576. stop
  577. if lore of player's tool is "&7Teleportation I":
  578. if {timer.%player%} is 0:
  579. loop all blocks in radius {@swordradius} around the player:
  580. if targeted block is loop-block:
  581. teleport player at block above the targeted block
  582. send "&{@c1}» Uzyles zaklecia: &{@c2}Chronoskok"
  583. damage player's tool by {@points}
  584. set {timer.%player%} to {@cooldown10}
  585. set {spell.%player%} to true
  586. stop
  587. send "&{@c1}» Za daleko!"
  588. stop
  589. if {timer.%player%} is more than 0:
  590. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  591. stop
  592. if lore of player's tool is "&7Water breathing I":
  593. if {timer.%player%} is 0:
  594. apply water breathing 1 to player for 60 seconds
  595. send "&{@c1}» Uzyles zaklecia: &{@c2}Wieczny oddech"
  596. damage player's tool by {@points}
  597. set {timer.%player%} to {@cooldown12}
  598. stop
  599. if {timer.%player%} is more than 0:
  600. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  601. stop
  602. on projectile shoot:
  603. projectile is arrow
  604. if shooter's tool is bow:
  605. if lore of shooter's tool is "&7Lifesteal":
  606. set {bowoflifesteal.%shooter%} to true
  607. stop
  608. on leftclick:
  609. if player's tool is bow:
  610. if lore of player's tool is "&7Fast shooting I":
  611. if {timer.%player%} is 0:
  612. if player has 10 arrow:
  613. remove 10 arrows from player's inventory
  614. send "&{@c1}» Uzyles zaklecia: &{@c2}Seria strzal"
  615. damage player's tool by {@points}
  616. loop 10 times:
  617. shoot an arrow
  618. wait 0.2 second
  619. set {timer.%player%} to {@cooldown13}
  620. stop
  621. else:
  622. send "&{@c1}» Potrzebujesz 10 sztuk strzal!"
  623. if {timer.%player%} is more than 0:
  624. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  625. stop
  626. if lore of player's tool is "&7Multi shot I":
  627. if {timer.%player%} is 0:
  628. if player has 10 arrow:
  629. remove 10 arrows from player's inventory
  630. send "&{@c1}» Uzyles zaklecia: &{@c2}Elficki ostrzal"
  631. damage player's tool by {@points}
  632. loop 10 times:
  633. shoot an arrow
  634. set {timer.%player%} to {@cooldown14}
  635. stop
  636. else:
  637. send "&{@c1}» Potrzebujesz 10 sztuk strzal!"
  638. if {timer.%player%} is more than 0:
  639. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  640. stop
  641. if lore of player's tool is "&7Arrows I":
  642. if {timer.%player%} is 0:
  643. send "&{@c1}» Uzyles zaklecia: &{@c2}Przeladowanie"
  644. damage player's tool by {@points}
  645. give 6 arrows to player
  646. set {timer.%player%} to {@cooldown15}
  647. stop
  648. if {timer.%player%} is more than 0:
  649. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  650. stop
  651. if lore of player's tool is "&7Teleportation I":
  652. if {timer.%player%} is 0:
  653. loop all blocks in radius {@bowradius} around the player:
  654. if targeted block is loop-block:
  655. teleport player at block above the targeted block
  656. send "&{@c1}» Uzyles zaklecia: &{@c2}Chronoskok"
  657. damage player's tool by {@points}
  658. set {timer.%player%} to {@cooldown16}
  659. stop
  660. send "&{@c1}» Za daleko!"
  661. stop
  662. if {timer.%player%} is more than 0:
  663. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  664. stop
  665. if lore of player's tool is "&7Lifesteal I":
  666. if {timer.%player%} is 0:
  667. remove 1 arrow from player's inventory
  668. apply absorption 5 to player for 60 seconds
  669. send "&{@c1}» Uzyles zaklecia: &{@c2}Tarcza"
  670. damage player's tool by {@points}
  671. set {timer.%player%} to {@cooldown17}
  672. stop
  673. if {timer.%player%} is more than 0:
  674. send "&{@c1}» Mozesz uzyc kolejnego zaklecia za &{@c2}%{timer.%player%}% sekund!"
  675. stop
  676.  
  677. command /{@arg0} [<text>] [<text>]:
  678. trigger:
  679. if arg 1 is "{@arg8}":
  680. if player has permission "weaponsplus.*" or "weaponsplus.reset":
  681. set {timer.%player%} to 0
  682. send "&{@c1}» Mozesz ponownie uzywac zaklec"
  683. stop
  684. if arg 1 is "{@arg7}":
  685. if player has permission "weaponsplus.*" or "weaponsplus.reload":
  686. send "&{@c1}» Rozpoczeto odswiezanie skryptu"
  687. execute console command "/sk reload %script%"
  688. send "&{@c1}» Zakonczono odswiezanie skryptu"
  689. stop
  690. else:
  691. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  692. stop
  693. if arg 1 is "{@arg6}":
  694. if player has permission "weaponsplus.*" or "weaponsplus.debug":
  695. if arg 2 is not set:
  696. send "&{@c1}» UWAGA! Jezeli masz problem ze skryptem np.:"
  697. send "&{@c1}» - Crafting mieczy nie laduje sie poprawnie"
  698. send "&{@c1}» - Gracze nie moga uzywac zaklec"
  699. send "&{@c1}» Uzyj komendy &{@c2}/{@arg0} debug <accept/true/yes>"
  700. send "&{@c1}» Spowoduje ona &{@c2}WYLACZENIE SERWERA"
  701. stop
  702. if arg 2 is "accept":
  703. set {equipmentplusloaded} to false
  704. kick players due to "&{@c1}» &{@c2}Serwer zostal zatrzymany z powodu bledu skryptu, za chwile uruchomimy go ponownie!"
  705. wait 1 real second
  706. execute console command "/stop"
  707. stop
  708. if arg 2 is "true":
  709. set {equipmentplusloaded} to false
  710. kick players due to "&{@c1}» &{@c2}Serwer zostal zatrzymany z powodu bledu skryptu, za chwile uruchomimy go ponownie!"
  711. wait 1 real second
  712. execute console command "/stop"
  713. stop
  714. if arg 2 is "yes":
  715. set {equipmentplusloaded} to false
  716. kick players due to "&{@c1}» &{@c2}Serwer zostal zatrzymany z powodu bledu skryptu, za chwile uruchomimy go ponownie!"
  717. wait 1 real second
  718. execute console command "/stop"
  719. stop
  720. else:
  721. send "&{@c1}» UWAGA! Jezeli masz problem ze skryptem np.:"
  722. send "&{@c1}» - Crafting mieczy nie laduje sie poprawnie"
  723. send "&{@c1}» - Gracze nie moga uzywac zaklec"
  724. send "&{@c1}» Uzyj komendy &{@c2}/{@arg0} debug <accept/true/yes>"
  725. send "&{@c1}» Spowoduje ona &{@c2}WYLACZENIE SERWERA"
  726. stop
  727. else:
  728. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  729. stop
  730. if arg 1 is "autor":
  731. send "&{@c1}» &{@c2}weaponsplus by Anemonex"
  732. send "&{@c1}» Znajdziesz mnie na &{@c2}bukkit.pl"
  733. stop
  734. if arg 1 is "{@arg1}":
  735. if player has permission "weaponsplus.*" or "weaponsplus.create":
  736. if arg 2 is "{@arg2}":
  737. give diamond sword named "&r&bMiecz slepoty" with lore "&7Blindness I" to the player
  738. give diamond sword named "&r&bMiecz nudnosci" with lore "&7Nausea I" to the player
  739. give diamond sword named "&r&bMiecz spowolnienia" with lore "&7Slowness I" to the player
  740. give diamond sword named "&r&bMiecz blyskawic" with lore "&7Lightning I" to the player
  741. give diamond sword named "&r&bMiecz eksplozji" with lore "&7Explosion I" to the player
  742. give diamond sword named "&r&bMiecz szybkosci" with lore "&7Swiftness I" to the player
  743. give diamond sword named "&r&bMiecz skocznosci" with lore "&7Jump boost I" to the player
  744. give diamond sword named "&r&bMiecz kradziezy zycia" with lore "&7Lifesteal I" to the player
  745. give diamond sword named "&r&bMiecz zabojcy" with lore "&7Invisibility I||&7Swiftness III" to the player
  746. give diamond sword named "&r&bMiecz osadnika" with lore "&7Villagers spawning I" to the player
  747. give diamond sword named "&r&bMiecz potworow" with lore "&7Monsters spawning I" to the player
  748. give diamond sword named "&r&bMiecz piekiel" with lore "&7Nether monsters spawning I" to the player
  749. give diamond sword named "&r&bMiecz teleportacji" with lore "&7Teleportation I" to the player
  750. give diamond sword named "&r&bMiecz ognia" with lore "&7Ignite I||&7Fire resistance I" to the player
  751. give diamond sword named "&r&bMiecz syreny" with lore "&7Water breathing I" to the player
  752. give bow named "&r&bLekki luk" with lore "&7Fast shooting I" to the player
  753. give bow named "&r&bElfi luk" with lore "&7Multi shot I" to the player
  754. give bow named "&r&bLuk straznika" with lore "&7Arrows I" to the player
  755. give bow named "&r&bLuk teleportacji" with lore "&7Teleportation I" to the player
  756. give bow named "&r&bLuk kradziezy zycia" with lore "&7Lifesteal I" to the player
  757. send "&{@c1}» Stworzyles &{@c2}Wszystkie miecze i luki"
  758. stop
  759. if arg 2 is "blindness":
  760. give diamond sword named "&r&bMiecz slepoty" with lore "&7Blindness I" to the player
  761. send "&{@c1}» Stworzyles &{@c2}Miecz slepoty"
  762. stop
  763. if arg 2 is "nausea":
  764. give diamond sword named "&r&bMiecz nudnosci" with lore "&7Nausea I" to the player
  765. send "&{@c1}» Stworzyles &{@c2}Miecz nudnosci"
  766. stop
  767. if arg 2 is "slowness":
  768. give diamond sword named "&r&bMiecz spowolnienia" with lore "&7Slowness I" to the player
  769. send "&{@c1}» Stworzyles &{@c2}Miecz spowolnienia"
  770. stop
  771. if arg 2 is "lightning":
  772. give diamond sword named "&r&bMiecz blyskawic" with lore "&7Lightning I" to the player
  773. send "&{@c1}» Stworzyles &{@c2}Miecz blyskawic"
  774. stop
  775. if arg 2 is "explosion":
  776. give diamond sword named "&r&bMiecz eksplozji" with lore "&7Explosion I" to the player
  777. send "&{@c1}» Stworzyles &{@c2}Miecz eksplozji"
  778. stop
  779. if arg 2 is "swiftness":
  780. give diamond sword named "&r&bMiecz szybkosci" with lore "&7Swiftness I" to the player
  781. send "&{@c1}» Stworzyles &{@c2}Miecz szybkosci"
  782. stop
  783. if arg 2 is "jumpboost":
  784. give diamond sword named "&r&bMiecz skocznosci" with lore "&7Jump boost I" to the player
  785. send "&{@c1}» Stworzyles &{@c2}Miecz skocznosci"
  786. stop
  787. if arg 2 is "lifesteal-sword":
  788. give diamond sword named "&r&bMiecz kradziezy zycia" with lore "&7Lifesteal I" to the player
  789. send "&{@c1}» Stworzyles &{@c2}Miecz kradziezy zycia"
  790. stop
  791. if arg 2 is "invisibility":
  792. give diamond sword named "&r&bMiecz zabojcy" with lore "&7Invisibility I||&7Swiftness III" to the player
  793. send "&{@c1}» Stworzyles &{@c2}Miecz zabojcy"
  794. stop
  795. if arg 2 is "villager":
  796. give diamond sword named "&r&bMiecz osadnika" with lore "&7Villagers spawning I" to the player
  797. send "&{@c1}» Stworzyles &{@c2}Miecz osadnika"
  798. stop
  799. if arg 2 is "monster":
  800. give diamond sword named "&r&bMiecz potworow" with lore "&7Monsters spawning I" to the player
  801. send "&{@c1}» Stworzyles &{@c2}Miecz potworow"
  802. stop
  803. if arg 2 is "nether":
  804. give diamond sword named "&r&bMiecz piekiel" with lore "&7Nether monsters spawning I" to the player
  805. send "&{@c1}» Stworzyles &{@c2}Miecz piekiel"
  806. stop
  807. if arg 2 is "teleportation-sword":
  808. give diamond sword named "&r&bMiecz teleportacji" with lore "&7Teleportation I" to the player
  809. send "&{@c1}» Stworzyles &{@c2}Miecz piekiel"
  810. stop
  811. if arg 2 is "ignite":
  812. give diamond sword named "&r&bMiecz ognia" with lore "&7Ignite I||&7Fire resistance I" to the player
  813. send "&{@c1}» Stworzyles &{@c2}Miecz piekiel"
  814. stop
  815. if arg 2 is "waterbreathing":
  816. give diamond sword named "&r&bMiecz syreny" with lore "&7Water breathing I" to the player
  817. send "&{@c1}» Stworzyles &{@c2}Miecz piekiel"
  818. stop
  819. if arg 2 is "fastshooting":
  820. give bow named "&r&bLekki luk" with lore "&7Fast shooting I" to the player
  821. send "&{@c1}» Stworzyles &{@c2}Lekki luk"
  822. stop
  823. if arg 2 is "multishot":
  824. give bow named "&r&bElfi luk" with lore "&7Multi shot I" to the player
  825. send "&{@c1}» Stworzyles &{@c2}Elfi luk"
  826. stop
  827. if arg 2 is "arrows":
  828. give bow named "&r&bLuk straznika" with lore "&7Arrows I" to the player
  829. send "&{@c1}» Stworzyles &{@c2}Luk straznika"
  830. stop
  831. if arg 2 is "teleportation-bow":
  832. give bow named "&r&bLuk teleportacji" with lore "&7Teleportation I" to the player
  833. send "&{@c1}» Stworzyles &{@c2}Luk teleportacji"
  834. stop
  835. if arg 2 is "lifesteal-bow":
  836. give bow named "&r&bLuk kradziezy zycia" with lore "&7Lifesteal I" to the player
  837. send "&{@c1}» Stworzyles &{@c2}Luk kradziezy zycia"
  838. stop
  839. if arg 2 is not set:
  840. send "&{@c1}» &{@c2}/{@arg0} {@arg1} blindness &{@c1}- Miecz slepoty"
  841. send "&{@c1}» &{@c2}/{@arg0} {@arg1} nausea &{@c1}- Miecz nudnosci"
  842. send "&{@c1}» &{@c2}/{@arg0} {@arg1} slowness &{@c1}- Miecz spowolnienia"
  843. send "&{@c1}» &{@c2}/{@arg0} {@arg1} lightning &{@c1}- Miecz blyskawic"
  844. send "&{@c1}» &{@c2}/{@arg0} {@arg1} explosion &{@c1}- Miecz eksplozji"
  845. send "&{@c1}» &{@c2}/{@arg0} {@arg1} swiftness &{@c1}- Miecz szybkosci"
  846. send "&{@c1}» &{@c2}/{@arg0} {@arg1} jumpboost &{@c1}- Miecz skocznosci"
  847. send "&{@c1}» &{@c2}/{@arg0} {@arg1} lifesteal-sword &{@c1}- Miecz kradziezy zycia"
  848. send "&{@c1}» &{@c2}/{@arg0} {@arg1} invisibility &{@c1}- Miecz zabojcy"
  849. send "&{@c1}» &{@c2}/{@arg0} {@arg1} villager &{@c1}- Miecz osadnika"
  850. send "&{@c1}» &{@c2}/{@arg0} {@arg1} monster &{@c1}- Miecz potworow"
  851. send "&{@c1}» &{@c2}/{@arg0} {@arg1} nether &{@c1}- Miecz piekiel"
  852. send "&{@c1}» &{@c2}/{@arg0} {@arg1} teleportation-sword &{@c1}- Miecz teleportacji"
  853. send "&{@c1}» &{@c2}/{@arg0} {@arg1} ignite &{@c1}- Miecz ognia"
  854. send "&{@c1}» &{@c2}/{@arg0} {@arg1} waterbreathing &{@c1}- Miecz syreny"
  855. send "&{@c1}» &{@c2}/{@arg0} {@arg4} fastshooting &{@c1}- Lekki luk"
  856. send "&{@c1}» &{@c2}/{@arg0} {@arg4} multishot &{@c1}- Elfi luk"
  857. send "&{@c1}» &{@c2}/{@arg0} {@arg4} arrows &{@c1}- Luk straznika"
  858. send "&{@c1}» &{@c2}/{@arg0} {@arg4} teleportation-bow &{@c1}- Luk teleportacji"
  859. send "&{@c1}» &{@c2}/{@arg0} {@arg4} lifesteal-bow &{@c1}- Luk kradziezy zycia"
  860. stop
  861. else:
  862. send "&{@c1}» Poprawne uzycie: &{@c2}/{@arg0} {@arg1}"
  863. stop
  864. else:
  865. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  866. stop
  867. if arg 1 is "{@arg3}":
  868. if player has permission "weaponsplus.*":
  869. send "&{@c1}» Poprawne uzycie:"
  870. send "&{@c1}» &{@c2}/{@arg0} {@arg6} &{@c1}- Debuguj skrypt"
  871. send "&{@c1}» &{@c2}/{@arg0} {@arg7} &{@c1}- Zresetuj skrypt"
  872. send "&{@c1}» &{@c2}/{@arg0} {@arg1} &{@c1}- Stworz miecz"
  873. send "&{@c1}» &{@c2}/{@arg0} {@arg4} &{@c1}- Crafting mieczy"
  874. send "&{@c1}» &{@c2}/{@arg0} autor &{@c1}- Informacje o autorze"
  875. stop
  876. else:
  877. send "&{@c1}» Poprawne uzycie:"
  878. if player has permission "weaponsplus.debug":
  879. send "&{@c1}» &{@c2}/{@arg0} {@arg6} &{@c1}- Debuguj skrypt"
  880. if player has permission "weaponsplus.reload":
  881. send "&{@c1}» &{@c2}/{@arg0} {@arg7} &{@c1}- Zresetuj skrypt"
  882. if player has permission "weaponsplus.create":
  883. send "&{@c1}» &{@c2}/{@arg0} {@arg1} &{@c1}- Stworz miecz"
  884. if player has permission "weaponsplus.crafting":
  885. send "&{@c1}» &{@c2}/{@arg0} {@arg4} &{@c1}- Crafting mieczy"
  886. send "&{@c1}» &{@c2}/{@arg0} autor &{@c1}- Informacje o autorze"
  887. stop
  888. if arg 1 is "{@arg4}":
  889. if player has permission "weaponsplus.*" or "weaponsplus.crafting":
  890. if arg 2 is "blindness":
  891. if {@sword1} is true:
  892. execute console command "pex user %name of player% add essentials.recipe"
  893. execute player command "recipe diamondsword 1"
  894. execute console command "pex user %name of player% remove essentials.recipe"
  895. stop
  896. if arg 2 is "nausea":
  897. if {@sword2} is true:
  898. execute console command "pex user %name of player% add essentials.recipe"
  899. execute player command "recipe diamondsword 2"
  900. execute console command "pex user %name of player% remove essentials.recipe"
  901. stop
  902. if arg 2 is "slowness":
  903. if {@sword3} is true:
  904. execute console command "pex user %name of player% add essentials.recipe"
  905. execute player command "/recipe diamondsword 3"
  906. execute console command "pex user %name of player% remove essentials.recipe"
  907. stop
  908. if arg 2 is "lightning":
  909. if {@sword4} is true:
  910. execute console command "pex user %name of player% add essentials.recipe"
  911. execute player command "/recipe diamondsword 4"
  912. execute console command "pex user %name of player% remove essentials.recipe"
  913. stop
  914. if arg 2 is "explosion":
  915. if {@sword5} is true:
  916. execute console command "pex user %name of player% add essentials.recipe"
  917. execute player command "/recipe diamondsword 5"
  918. execute console command "pex user %name of player% remove essentials.recipe"
  919. stop
  920. if arg 2 is "swiftness":
  921. if {@sword6} is true:
  922. execute console command "pex user %name of player% add essentials.recipe"
  923. execute player command "/recipe diamondsword 6"
  924. execute console command "pex user %name of player% remove essentials.recipe"
  925. stop
  926. if arg 2 is "jumpboost":
  927. if {@sword7} is true:
  928. execute console command "pex user %name of player% add essentials.recipe"
  929. execute player command "/recipe diamondsword 7"
  930. execute console command "pex user %name of player% remove essentials.recipe"
  931. stop
  932. if arg 2 is "lifesteal-sword":
  933. if {@sword8} is true:
  934. execute console command "pex user %name of player% add essentials.recipe"
  935. execute player command "/recipe diamondsword 8"
  936. execute console command "pex user %name of player% remove essentials.recipe"
  937. stop
  938. if arg 2 is "invisibility":
  939. if {@sword9} is true:
  940. execute console command "pex user %name of player% add essentials.recipe"
  941. execute player command "/recipe diamondsword 9"
  942. execute console command "pex user %name of player% remove essentials.recipe"
  943. stop
  944. if arg 2 is "villager":
  945. if {@sword10} is true:
  946. execute console command "pex user %name of player% add essentials.recipe"
  947. execute player command "/recipe diamondsword 14"
  948. execute console command "pex user %name of player% remove essentials.recipe"
  949. stop
  950. if arg 2 is "monster":
  951. if {@sword11} is true:
  952. execute console command "pex user %name of player% add essentials.recipe"
  953. execute player command "/recipe diamondsword 15"
  954. execute console command "pex user %name of player% remove essentials.recipe"
  955. stop
  956. if arg 2 is "nether":
  957. if {@sword12} is true:
  958. execute console command "pex user %name of player% add essentials.recipe"
  959. execute player command "/recipe diamondsword 16"
  960. execute console command "pex user %name of player% remove essentials.recipe"
  961. stop
  962. if arg 2 is "teleportation-sword":
  963. if {@sword13} is true:
  964. execute console command "pex user %name of player% add essentials.recipe"
  965. execute player command "/recipe diamondsword 10"
  966. execute console command "pex user %name of player% remove essentials.recipe"
  967. stop
  968. if arg 2 is "ignite":
  969. if {@sword14} is true:
  970. execute console command "pex user %name of player% add essentials.recipe"
  971. execute player command "/recipe diamondsword 11"
  972. execute console command "pex user %name of player% remove essentials.recipe"
  973. stop
  974. if arg 2 is "waterbreathing":
  975. if {@sword15} is true:
  976. execute console command "pex user %name of player% add essentials.recipe"
  977. execute player command "/recipe diamondsword 12"
  978. execute console command "pex user %name of player% remove essentials.recipe"
  979. stop
  980. if arg 2 is "lava":
  981. if {@sword14} is true:
  982. execute console command "pex user %name of player% add essentials.recipe"
  983. execute player command "/recipe 11"
  984. execute console command "pex user %name of player% remove essentials.recipe"
  985. stop
  986. if arg 2 is "water":
  987. if {@sword15} is true:
  988. execute console command "pex user %name of player% add essentials.recipe"
  989. execute player command "/recipe 9"
  990. execute console command "pex user %name of player% remove essentials.recipe"
  991. stop
  992. if arg 2 is "fastshooting":
  993. if {@bow1} is true:
  994. execute console command "pex user %name of player% add essentials.recipe"
  995. execute player command "/recipe bow 2"
  996. execute console command "pex user %name of player% remove essentials.recipe"
  997. stop
  998. if arg 2 is "multishot":
  999. if {@bow2} is true:
  1000. execute console command "pex user %name of player% add essentials.recipe"
  1001. execute player command "/recipe bow 3"
  1002. execute console command "pex user %name of player% remove essentials.recipe"
  1003. stop
  1004. if arg 2 is "arrows":
  1005. if {@bow3} is true:
  1006. execute console command "pex user %name of player% add essentials.recipe"
  1007. execute player command "/recipe bow 4"
  1008. execute console command "pex user %name of player% remove essentials.recipe"
  1009. stop
  1010. if arg 2 is "teleportation-bow":
  1011. if {@bow4} is true:
  1012. execute console command "pex user %name of player% add essentials.recipe"
  1013. execute player command "/recipe bow 5"
  1014. execute console command "pex user %name of player% remove essentials.recipe"
  1015. stop
  1016. if arg 2 is "lifesteal-bow":
  1017. if {@bow5} is true:
  1018. execute console command "pex user %name of player% add essentials.recipe"
  1019. execute player command "/recipe bow 6"
  1020. execute console command "pex user %name of player% remove essentials.recipe"
  1021. stop
  1022. if arg 2 is not set:
  1023. if {@sword1} is true:
  1024. send "&{@c1}» &{@c2}/{@arg0} {@arg4} blindness &{@c1}- Miecz slepoty"
  1025. if {@sword2} is true:
  1026. send "&{@c1}» &{@c2}/{@arg0} {@arg4} nausea &{@c1}- Miecz nudnosci"
  1027. if {@sword3} is true:
  1028. send "&{@c1}» &{@c2}/{@arg0} {@arg4} slowness &{@c1}- Miecz spowolnienia"
  1029. if {@sword4} is true:
  1030. send "&{@c1}» &{@c2}/{@arg0} {@arg4} lightning &{@c1}- Miecz blyskawic"
  1031. if {@sword5} is true:
  1032. send "&{@c1}» &{@c2}/{@arg0} {@arg4} explosion &{@c1}- Miecz eksplozji"
  1033. if {@sword6} is true:
  1034. send "&{@c1}» &{@c2}/{@arg0} {@arg4} swiftness &{@c1}- Miecz szybkosci"
  1035. if {@sword7} is true:
  1036. send "&{@c1}» &{@c2}/{@arg0} {@arg4} jumpboost &{@c1}- Miecz skocznosci"
  1037. if {@sword8} is true:
  1038. send "&{@c1}» &{@c2}/{@arg0} {@arg4} lifesteal-sword &{@c1}- Miecz kradziezy zycia"
  1039. if {@sword9} is true:
  1040. send "&{@c1}» &{@c2}/{@arg0} {@arg4} invisibility &{@c1}- Miecz zabojcy"
  1041. if {@sword10} is true:
  1042. send "&{@c1}» &{@c2}/{@arg0} {@arg4} villager &{@c1}- Miecz osadnika"
  1043. if {@sword11} is true:
  1044. send "&{@c1}» &{@c2}/{@arg0} {@arg4} monster &{@c1}- Miecz potworow"
  1045. if {@sword12} is true:
  1046. send "&{@c1}» &{@c2}/{@arg0} {@arg4} nether &{@c1}- Miecz piekiel"
  1047. if {@sword13} is true:
  1048. send "&{@c1}» &{@c2}/{@arg0} {@arg4} teleportation-sword &{@c1}- Miecz teleportacji"
  1049. if {@sword14} is true:
  1050. send "&{@c1}» &{@c2}/{@arg0} {@arg4} ignite &{@c1}- Miecz ognia"
  1051. if {@sword15} is true:
  1052. send "&{@c1}» &{@c2}/{@arg0} {@arg4} waterbreathing &{@c1}- Miecz syreny"
  1053. if {@sword14} is true:
  1054. send "&{@c1}» &{@c2}/{@arg0} {@arg4} lava &{@c1}- Lawa"
  1055. if {@sword15} is true:
  1056. send "&{@c1}» &{@c2}/{@arg0} {@arg4} water &{@c1}- Woda"
  1057. if {@bow1} is true:
  1058. send "&{@c1}» &{@c2}/{@arg0} {@arg4} fastshooting &{@c1}- Lekki luk"
  1059. if {@bow2} is true:
  1060. send "&{@c1}» &{@c2}/{@arg0} {@arg4} multishot &{@c1}- Elfi luk"
  1061. if {@bow3} is true:
  1062. send "&{@c1}» &{@c2}/{@arg0} {@arg4} arrows &{@c1}- Luk straznika"
  1063. if {@bow4} is true:
  1064. send "&{@c1}» &{@c2}/{@arg0} {@arg4} teleportation-bow &{@c1}- Luk teleportacji"
  1065. if {@bow5} is true:
  1066. send "&{@c1}» &{@c2}/{@arg0} {@arg4} lifesteal-bow &{@c1}- Luk kradziezy zycia"
  1067. stop
  1068. else:
  1069. send "&{@c1}» Poprawne uzycie: &{@c2}/{@arg0} {@arg4}"
  1070. stop
  1071.  
  1072. else:
  1073. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  1074. stop
  1075. if arg 1 is not set:
  1076. send "&{@c1}» Poprawne uzycie: &{@c2}/{@arg0} {@arg3}"
  1077. stop
  1078. else:
  1079. send "&{@c1}» Poprawne uzycie: &{@c2}/{@arg0} {@arg3}"
  1080. stop
  1081. on command "/stop":
  1082. set {equipmentplusloaded} to false
  1083. stop
  1084.  
  1085. on sign change:
  1086. if line 1 of block is "[{@line1sword}]":
  1087. if player has permission "weaponsplus.*" or "weaponsplus.sign":
  1088. if line 2 of block is "{@line2}":
  1089. if line 3 of block is "001":
  1090. set line 1 of block to "&{@c3}[{@line1sword}]"
  1091. set line 2 of block to "&{@c4}{@line2}"
  1092. set line 3 of block to "&{@c5}Blindness"
  1093. stop
  1094. if line 3 of block is "002":
  1095. set line 1 of block to "&{@c3}[{@line1sword}]"
  1096. set line 2 of block to "&{@c4}{@line2}"
  1097. set line 3 of block to "&{@c5}Nausea"
  1098. stop
  1099. if line 3 of block is "003":
  1100. set line 1 of block to "&{@c3}[{@line1sword}]"
  1101. set line 2 of block to "&{@c4}{@line2}"
  1102. set line 3 of block to "&{@c5}Slowness"
  1103. stop
  1104. if line 3 of block is "004":
  1105. set line 1 of block to "&{@c3}[{@line1sword}]"
  1106. set line 2 of block to "&{@c4}{@line2}"
  1107. set line 3 of block to "&{@c5}Lightning"
  1108. stop
  1109. if line 3 of block is "005":
  1110. set line 1 of block to "&{@c3}[{@line1sword}]"
  1111. set line 2 of block to "&{@c4}{@line2}"
  1112. set line 3 of block to "&{@c5}Explosion"
  1113. stop
  1114. if line 3 of block is "006":
  1115. set line 1 of block to "&{@c3}[{@line1sword}]"
  1116. set line 2 of block to "&{@c4}{@line2}"
  1117. set line 3 of block to "&{@c5}Swiftness"
  1118. stop
  1119. if line 3 of block is "007":
  1120. set line 1 of block to "&{@c3}[{@line1sword}]"
  1121. set line 2 of block to "&{@c4}{@line2}"
  1122. set line 3 of block to "&{@c5}Jump Boost"
  1123. stop
  1124. if line 3 of block is "008":
  1125. set line 1 of block to "&{@c3}[{@line1sword}]"
  1126. set line 2 of block to "&{@c4}{@line2}"
  1127. set line 3 of block to "&{@c5}Lifesteal"
  1128. stop
  1129. if line 3 of block is "009":
  1130. set line 1 of block to "&{@c3}[{@line1sword}]"
  1131. set line 2 of block to "&{@c4}{@line2}"
  1132. set line 3 of block to "&{@c5}Invisibility"
  1133. stop
  1134. if line 3 of block is "010":
  1135. set line 1 of block to "&{@c3}[{@line1sword}]"
  1136. set line 2 of block to "&{@c4}{@line2}"
  1137. set line 3 of block to "&{@c5}Villager"
  1138. stop
  1139. if line 3 of block is "011":
  1140. set line 1 of block to "&{@c3}[{@line1sword}]"
  1141. set line 2 of block to "&{@c4}{@line2}"
  1142. set line 3 of block to "&{@c5}Monster"
  1143. stop
  1144. if line 3 of block is "012":
  1145. set line 1 of block to "&{@c3}[{@line1sword}]"
  1146. set line 2 of block to "&{@c4}{@line2}"
  1147. set line 3 of block to "&{@c5}Nether"
  1148. stop
  1149. if line 3 of block is "013":
  1150. set line 1 of block to "&{@c3}[{@line1sword}]"
  1151. set line 2 of block to "&{@c4}{@line2}"
  1152. set line 3 of block to "&{@c5}Teleportation"
  1153. stop
  1154. if line 3 of block is "014":
  1155. set line 1 of block to "&{@c3}[{@line1sword}]"
  1156. set line 2 of block to "&{@c4}{@line2}"
  1157. set line 3 of block to "&{@c5}Ignite"
  1158. stop
  1159. if line 3 of block is "015":
  1160. set line 1 of block to "&{@c3}[{@line1sword}]"
  1161. set line 2 of block to "&{@c4}{@line2}"
  1162. set line 3 of block to "&{@c5}Water Breathing"
  1163. stop
  1164. else:
  1165. cancel event
  1166. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1167. stop
  1168. if line 2 of block is not set:
  1169. cancel event
  1170. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1171. stop
  1172. else:
  1173. cancel event
  1174. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 2"
  1175. stop
  1176. else:
  1177. cancel event
  1178. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  1179. stop
  1180. if line 1 of block is "[{@line1addons}]":
  1181. if player has permission "weaponsplus.*" or "weaponsplus.sign":
  1182. if line 2 of block is "{@line2}":
  1183. if line 3 of block is "Lava":
  1184. set line 1 of block to "&{@c3}[{@line1addons}]"
  1185. set line 2 of block to "&{@c4}{@line2}"
  1186. set line 3 of block to "&{@c5}Lava"
  1187. stop
  1188. if line 3 of block is "Water":
  1189. set line 1 of block to "&{@c3}[{@line1addons}]"
  1190. set line 2 of block to "&{@c4}{@line2}"
  1191. set line 3 of block to "&{@c5}Water"
  1192. stop
  1193. if line 3 of block is not set:
  1194. cancel event
  1195. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1196. stop
  1197. else:
  1198. cancel event
  1199. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1200. stop
  1201. if line 2 of block is not set:
  1202. cancel event
  1203. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1204. stop
  1205. else:
  1206. cancel event
  1207. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 2"
  1208. stop
  1209. else:
  1210. cancel event
  1211. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  1212. stop
  1213. if line 1 of block is "[{@line1bow}]":
  1214. if player has permission "weaponsplus.*" or "weaponsplus.sign":
  1215. if line 2 of block is "{@line2}":
  1216. if line 3 of block is "001":
  1217. set line 1 of block to "&{@c3}[{@line1bow}]"
  1218. set line 2 of block to "&{@c4}{@line2}"
  1219. set line 3 of block to "&{@c5}Fast Shooting"
  1220. stop
  1221. if line 3 of block is "002":
  1222. set line 1 of block to "&{@c3}[{@line1bow}]"
  1223. set line 2 of block to "&{@c4}{@line2}"
  1224. set line 3 of block to "&{@c5}Multi shot"
  1225. stop
  1226. if line 3 of block is "003":
  1227. set line 1 of block to "&{@c3}[{@line1bow}]"
  1228. set line 2 of block to "&{@c4}{@line2}"
  1229. set line 3 of block to "&{@c5}Arrows"
  1230. stop
  1231. if line 3 of block is "004":
  1232. set line 1 of block to "&{@c3}[{@line1bow}]"
  1233. set line 2 of block to "&{@c4}{@line2}"
  1234. set line 3 of block to "&{@c5}Teleportation"
  1235. stop
  1236. if line 3 of block is "005":
  1237. set line 1 of block to "&{@c3}[{@line1bow}]"
  1238. set line 2 of block to "&{@c4}{@line2}"
  1239. set line 3 of block to "&{@c5}Lifesteal"
  1240. stop
  1241. else:
  1242. cancel event
  1243. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1244. stop
  1245. if line 2 of block is not set:
  1246. cancel event
  1247. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 3"
  1248. stop
  1249. else:
  1250. cancel event
  1251. send "&{@c1}» &{@c2}Niepoprawny warunek w &{@c2}linii 2"
  1252. stop
  1253. else:
  1254. cancel event
  1255. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  1256. stop
  1257. on rightclick on sign:
  1258. if line 1 of block is "&{@c3}[{@line1sword}]":
  1259. if player has permission "weaponsplus.*" or "weaponsplus.crafting":
  1260. if line 2 of block is "&{@c4}{@line2}":
  1261. if line 3 of block is "&{@c5}Blindness":
  1262. if {@sword1} is true:
  1263. execute console command "pex user %name of player% add essentials.recipe"
  1264. execute player command "/recipe diamondsword 1"
  1265. execute console command "pex user %name of player% remove essentials.recipe"
  1266. stop
  1267. else:
  1268. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1269. stop
  1270. if line 3 of block is "&{@c5}Nausea":
  1271. if {@sword2} is true:
  1272. execute console command "pex user %name of player% add essentials.recipe"
  1273. execute player command "/recipe diamondsword 2"
  1274. execute console command "pex user %name of player% remove essentials.recipe"
  1275. stop
  1276. else:
  1277. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1278. stop
  1279. if line 3 of block is "&{@c5}Slowness":
  1280. if {@sword3} is true:
  1281. execute console command "pex user %name of player% add essentials.recipe"
  1282. execute player command "/recipe diamondsword 3"
  1283. execute console command "pex user %name of player% remove essentials.recipe"
  1284. stop
  1285. else:
  1286. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1287. stop
  1288. if line 3 of block is "&{@c5}Lightning":
  1289. if {@sword4} is true:
  1290. execute console command "pex user %name of player% add essentials.recipe"
  1291. execute player command "/recipe diamondsword 4"
  1292. execute console command "pex user %name of player% remove essentials.recipe"
  1293. stop
  1294. else:
  1295. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1296. stop
  1297. if line 3 of block is "&{@c5}Explosion":
  1298. if {@sword5} is true:
  1299. execute console command "pex user %name of player% add essentials.recipe"
  1300. execute player command "/recipe diamondsword 5"
  1301. execute console command "pex user %name of player% remove essentials.recipe"
  1302. stop
  1303. else:
  1304. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1305. stop
  1306. if line 3 of block is "&{@c5}Swiftness":
  1307. if {@sword6} is true:
  1308. execute console command "pex user %name of player% add essentials.recipe"
  1309. execute player command "/recipe diamondsword 6"
  1310. execute console command "pex user %name of player% remove essentials.recipe"
  1311. stop
  1312. else:
  1313. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1314. stop
  1315. if line 3 of block is "&{@c5}Jump Boost":
  1316. if {@sword7} is true:
  1317. execute console command "pex user %name of player% add essentials.recipe"
  1318. execute player command "/recipe diamondsword 7"
  1319. execute console command "pex user %name of player% remove essentials.recipe"
  1320. stop
  1321. else:
  1322. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1323. stop
  1324. if line 3 of block is "&{@c5}Lifesteal":
  1325. if {@sword8} is true:
  1326. execute console command "pex user %name of player% add essentials.recipe"
  1327. execute player command "/recipe diamondsword 8"
  1328. execute console command "pex user %name of player% remove essentials.recipe"
  1329. stop
  1330. else:
  1331. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1332. stop
  1333. if line 3 of block is "&{@c5}Invisibility":
  1334. if {@sword9} is true:
  1335. execute console command "pex user %name of player% add essentials.recipe"
  1336. execute player command "/recipe diamondsword 9"
  1337. execute console command "pex user %name of player% remove essentials.recipe"
  1338. stop
  1339. else:
  1340. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1341. stop
  1342. if line 3 of block is "&{@c5}Villager":
  1343. if {@sword10} is true:
  1344. execute console command "pex user %name of player% add essentials.recipe"
  1345. execute player command "/recipe diamondsword 14"
  1346. execute console command "pex user %name of player% remove essentials.recipe"
  1347. stop
  1348. else:
  1349. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1350. stop
  1351. if line 3 of block is "&{@c5}Monster":
  1352. if {@sword11} is true:
  1353. execute console command "pex user %name of player% add essentials.recipe"
  1354. execute player command "/recipe diamondsword 15"
  1355. execute console command "pex user %name of player% remove essentials.recipe"
  1356. stop
  1357. else:
  1358. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1359. stop
  1360. if line 3 of block is "&{@c5}Nether":
  1361. if {@sword12} is true:
  1362. execute console command "pex user %name of player% add essentials.recipe"
  1363. execute player command "/recipe diamondsword 16"
  1364. execute console command "pex user %name of player% remove essentials.recipe"
  1365. stop
  1366. else:
  1367. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1368. stop
  1369. if line 3 of block is "&{@c5}Teleportation":
  1370. if {@sword13} is true:
  1371. execute console command "pex user %name of player% add essentials.recipe"
  1372. execute player command "/recipe diamondsword 10"
  1373. execute console command "pex user %name of player% remove essentials.recipe"
  1374. stop
  1375. else:
  1376. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1377. stop
  1378. if line 3 of block is "&{@c5}Ignite":
  1379. if {@sword14} is true:
  1380. execute console command "pex user %name of player% add essentials.recipe"
  1381. execute player command "/recipe diamondsword 11"
  1382. execute console command "pex user %name of player% remove essentials.recipe"
  1383. stop
  1384. else:
  1385. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1386. stop
  1387. if line 3 of block is "&{@c5}Water Breathi":
  1388. if {@sword15} is true:
  1389. execute console command "pex user %name of player% add essentials.recipe"
  1390. execute player command "/recipe diamondsword 12"
  1391. execute console command "pex user %name of player% remove essentials.recipe"
  1392. stop
  1393. else:
  1394. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1395. stop
  1396. else:
  1397. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  1398. stop
  1399. if line 1 of block is "&{@c3}[{@line1bow}]":
  1400. if player has permission "weaponsplus.*" or "weaponsplus.crafting":
  1401. if line 2 of block is "&{@c4}{@line2}":
  1402. if line 3 of block is "&{@c5}Fast shooting":
  1403. if {@bow1} is true:
  1404. execute console command "pex user %name of player% add essentials.recipe"
  1405. execute player command "/recipe bow 2"
  1406. execute console command "pex user %name of player% remove essentials.recipe"
  1407. stop
  1408. else:
  1409. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1410. stop
  1411. if line 2 of block is "&{@c4}{@line2}":
  1412. if line 3 of block is "&{@c5}Multi shot":
  1413. if {@bow2} is true:
  1414. execute console command "pex user %name of player% add essentials.recipe"
  1415. execute player command "/recipe bow 3"
  1416. execute console command "pex user %name of player% remove essentials.recipe"
  1417. stop
  1418. else:
  1419. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1420. stop
  1421. if line 2 of block is "&{@c4}{@line2}":
  1422. if line 3 of block is "&{@c5}Arrows":
  1423. if {@bow3} is true:
  1424. execute console command "pex user %name of player% add essentials.recipe"
  1425. execute player command "/recipe bow 4"
  1426. execute console command "pex user %name of player% remove essentials.recipe"
  1427. stop
  1428. else:
  1429. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1430. stop
  1431. if line 2 of block is "&{@c4}{@line2}":
  1432. if line 3 of block is "&{@c5}Teleportation":
  1433. if {@bow4} is true:
  1434. execute console command "pex user %name of player% add essentials.recipe"
  1435. execute player command "/recipe bow 5"
  1436. execute console command "pex user %name of player% remove essentials.recipe"
  1437. stop
  1438. else:
  1439. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1440. stop
  1441. if line 2 of block is "&{@c4}{@line2}":
  1442. if line 3 of block is "&{@c5}Lifesteal":
  1443. if {@bow5} is true:
  1444. execute console command "pex user %name of player% add essentials.recipe"
  1445. execute player command "/recipe bow 6"
  1446. execute console command "pex user %name of player% remove essentials.recipe"
  1447. stop
  1448. else:
  1449. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1450. stop
  1451. if line 1 of block is "&{@c3}[{@line1addons}]":
  1452. if player has permission "weaponsplus.*" or "weaponsplus.crafting":
  1453. if line 2 of block is "&{@c4}{@line2}":
  1454. if line 3 of block is "&{@c5}Lava":
  1455. if {@sword14} is true:
  1456. execute console command "pex user %name of player% add essentials.recipe"
  1457. execute player command "/recipe 11"
  1458. execute console command "pex user %name of player% remove essentials.recipe"
  1459. stop
  1460. else:
  1461. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1462. stop
  1463. if line 3 of block is "&{@c5}Water":
  1464. if {@sword15} is true:
  1465. execute console command "pex user %name of player% add essentials.recipe"
  1466. execute player command "/recipe 9"
  1467. execute console command "pex user %name of player% remove essentials.recipe"
  1468. stop
  1469. else:
  1470. send "&{@c1}» &{@c2}Crafting tego przedmiotu zostal wylaczony."
  1471. stop
  1472. else:
  1473. send "&{@c1}» &{@c2}Nie posiadasz odpowiedniego pozwolenia aby uzyc tej komendy."
  1474. stop
  1475. on rightclick:
  1476. if player's tool is water:
  1477. if {@blockwater} is true:
  1478. cancel event
  1479. stop
  1480. if player's tool is lava:
  1481. if {@blocklava} is true:
  1482. cancel event
  1483. stop
Advertisement
Add Comment
Please, Sign In to add comment