################################## #Skrypt by Pawlak # #Skrypt dal serwera: zethc.pl # ################################## command /niedlapsa [] []: permission: zethc.premiumcase trigger: if arg-1 is not set: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Poprawne uzycie &7/&cniedlapsa Nick&7/&cAll &aIlosc" for 2 seconds if arg-1 is set: if arg-2 is not set: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Poprawne uzycie &7/&cniedl Nick&7/&cAll &aIlosc" for 2 seconds if arg-1 is not "all": if arg-2 is set: loop arg-2 times: execute console command "give %arg 1% chest 1 name:&f&lPremium&9&lCase" send players title "&7Gracz &c%arg 1%" with subtitle "&7Zakupil &dx%arg 2% &f&lPremium&9&lCase &7w ItemShopie: &aWwW&7.&aZetMc&7.&aEu" for 2 seconds if arg-1 is "all": if arg-2 is set: loop arg-2 times: loop all players: execute console command "give %loop-player% chest 1 name:&f&lPremium&9&lCase" send players title "&cCaly Serwer" with subtitle "&7Otrzymal &dx%arg 2% &f&lPremium&9&lCase &7od %player%" for 2 seconds on place of chest: if player's tool is chest named "&f&lPremium&9&lCase": add 1 to {tpcc::%player%} remove 1 chest named "&f&lPremium&9&lCase" from player cancel event loop 2 times: launch ball firework colored green at player with duration 1 wait 0.3 seconds launch ball firework colored red at player with duration 2 wait 0.3 seconds launch ball firework colored blue at player with duration 3 wait 0.3 seconds chance of 50%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &bMiecz &95/2" for 2 seconds drop 1 diamond sword of sharpness 5 and fire aspect 2 chance of 70%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &bHelm &94/3" for 2 seconds drop 1 diamond helmet of unbreaking 3 and protection 4 chance of 70%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &bKlate &94/3" for 2 seconds drop 1 diamond chestplate of unbreaking 3 and protection 4 chance of 70%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &bSpodnie &94/3" for 2 seconds drop 1 diamond leggings of unbreaking 3 and protection 4 chance of 70%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &bButy &94/3" for 2 seconds drop 1 diamond boots of unbreaking 3 and protection 4 chance of 5%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &4Rzucame TnT" for 2 seconds drop 1 tnt named "&4Rzucane TNT" chance of 50%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &aBloki Emeraldow &9x64" for 2 seconds drop 64 emerald block chance of 30%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &9Ender Perly &9x8" for 2 seconds drop 8 ender pearl chance of 30%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &eRefile &9x64" for 2 seconds drop 64 golden apple:0 chance of 30%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &6Koxy &9x64" for 2 seconds drop 32 golden apple:1 chance of 1%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &dB&be&4a&7c&3o&an&2a &9x1" for 2 seconds drop 1 beacon chance of 7%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &fKilof &96/3/3" for 2 seconds drop 1 diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 chance of 7%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &fMiecz &93/1" for 2 seconds drop 1 iron sword of knockback 3 and unbreaking 1 chance of 7%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &fLuk &93/2/1" for 2 seconds drop 1 bow of unbreaking 3 and punch 2 and infinity 1 chance of 7%: send player title "&8[&f&lPremium&9&lCase&8]" with subtitle "&7Wylosowales: &fLuk &93/1/1" for 2 seconds drop 1 bow of power 5 and unbreaking 3 and flame 1 and infinity 1