Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- message "Skrypt na efekty by ShiZzeR - WLACZONY" to console
- on script unload:
- message "Skrypt na efekty by ShiZzeR - WYLACZONY" to console
- command /efekty:
- executable by: players
- trigger:
- execute console command "gui 1 %player%"
- command /gui [<integer>] [<player>]:
- executable by: console
- trigger:
- if arg 1 is 1:
- wait 2 ticks
- open chest with 1 rows named "&4My&fGame" to player-arg
- wait 2 ticks
- format slot 0 of player-arg with 1 of gold block of power 1 named "&aBloki Zlota" with lore "&aPosiadasz &2%number of gold block in player-arg's inventory% &ablokow zlota" to be unstealable
- format slot 3 of player-arg with 1 of diamond sword of sharpness 10 named "&3Efekt sily" &2Koszt: 64 Bloki zlota||&4Czas: 3 minuty" to close then run "dajefekt %player-arg% zabojca"
- format slot 4 of player-arg with 1 of diamond pickaxe of efficiency 10 named "&3Efekt Haste 2"&2Koszt: 64 Bloki zlota||&4Czas: 5 minut" to close then run "dajefekt %player-arg% tank"
- format slot 5 of player-arg with 1 of feather of infinity 10 named "&3Efekt Niewidzialnosci"||&2Koszt: 16 Blokow zlota||&4Czas: 3 minut" to close then run "dajefekt %player-arg% lucznik"
- format slot 8 of player-arg with 1 of emerald of power 1 named "&aEmeraldy" with lore "&aPosiadasz &2%number of emeralds in player-arg's inventory% &aemeraldow" to be unstealable
- command /dajefekt [<player>] [<text>]:
- trigger:
- if arg 2 is "zabojca":
- if {zabojca.%player-arg%} is true:
- message "&4Juz masz ten efekt!" to player-arg
- else:
- if number of gold block in the player-arg's inventory is more or equal to 64:
- set {zabojca.%player-arg%} to true
- message "&cEfekt sily!" to player-arg
- remove 64 of gold block from player-arg's inventory
- wait 180 seconds
- apply strength to player-arg for 180 seconds
- wait 120 seconds
- message "&4Za 2 minuty &3Efekt sily &4wygasnie!" to player-arg
- wait 10 seconds
- message "&3Efekt sily &4wygasl" to player-arg
- delete {zabojca.%player-arg%}
- else:
- message "&4Nie masz tyle blokow zlota!" to player-arg
- else if arg 2 is "tank":
- if {tank.%player-arg%} is true:
- message "&4Juz masz ten efekt!" to player-arg
- else:
- if number of gold block in the player-arg's inventory is more or equal to 64:
- set {tank.%player-arg%} to true
- message "&3Efekt Haste zostal zakupiony!" to player-arg
- remove 64 of gold block from player-arg's inventory
- apply fast digging to player-arg for 300 seconds
- wait 300 seconds
- message "&4Za 5 minut sekund &3Efekt Haste 2 &4wygasnie!" to player-arg
- wait 10 seconds
- message "&3Efekt Haste 2 &4wygasl" to player-arg
- delete {tank.%player-arg%}
- else:
- message "&4Nie masz tyle blokow zlota!" to player-arg
- else if arg 2 is "lucznik":
- if {lucznik.%player-arg%} is true:
- message "&4Juz masz ten efekt!" to player-arg
- else:
- if number of gold block in the player-arg's inventory is more or equal to 64:
- message "&3Efekt Niewidzialnosci zostal zakupiony!" to player-arg
- set {lucznik.%player-arg%} to true
- wait 180 seconds
- message "&4Za 3 minuty &3Efekt Niewidzialnosci &4wygasnie!" to player-arg
- wait 10 seconds
- message "&3Efekt Niewidzialnosci &4wygasl" to player-arg
- delete {lucznik.%player-arg%}
- else:
- message "&4Nie masz tyle blokow zlota!" to player-arg
- on damage:
- victim is a player:
- if damage cause is fall:
- {redukcja.obrazen.upadku.gracza.%victim%} is true:
- cancel event
- attacker is a player:
- if damage cause is arrow:
- {trucie.atakujacych.przez.gracza.%attacker%} is true:
- apply poison to victim for 5 seconds
- {spowalnianie.atakujacych.przez.gracza.%attacker%} is true:
- apply slowness to victim for 2 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement