Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- message "Skrypt na efekty zostal - WLACZONY" 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 "&2Efekty (1/1)" to player-arg
- wait 2 ticks
- format slot 0 of player-arg with 1 of emerald of power 10 named "&aEmeraldy" with lore "&aPosiadasz &2%number of emeralds in player-arg's inventory% &aemeraldow" to be unstealable
- format slot 3 of player-arg with 1 of diamond sword of power 10 named "&3Efekt Zabojcy" with lore "- Uniewidacznia cialo||- Zwieksza skok||- Zwieksza szybkosc||- Zwieksza sile||&f-----------------||&2Koszt: 64 emeraldy||&4Czas: 60 sekund" to close then run "dajefekt %player-arg% zabojca"
- format slot 4 of player-arg with 1 of diamond chestplate of power 10 named "&3Efekt Tanka" with lore "- Regeneruje zycie||- Zwieksza oddychanie pod woda||- Zwieksza sile||- Redukuje obrazenia upadku||&f----------------------------||&2Koszt: 64 emeraldy||&4Czas: 120 sekund" to close then run "dajefekt %player-arg% tank"
- format slot 5 of player-arg with 1 of bow of power 10 named "&3Efekt Lucznika" with lore "Przeciwnik dostaje:||- otrucie||- spowolnienie ||podczas otrzymania obrazen||&f-------------------------||&2Koszt: 64 emeraldy||&4Czas: 60 sekund" to close then run "dajefekt %player-arg% lucznik"
- format slot 7 of player-arg with 1 of glass of power 10 named "&aEfekty" with lore "&aEfekty"
- 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 emeralds in the player-arg's inventory is more or equal to 64:
- set {zabojca.%player-arg%} to true
- message "&3Efekt Zabojcy zostal zakupiony!" to player-arg
- remove 64 of emerald from player-arg's inventory
- apply invisibility to player-arg for 360 seconds
- apply jump boost 2 to player-arg for 360 seconds
- apply speed 2 to player-arg for 360 seconds
- apply strength 2 to player-arg for 360 seconds
- wait 30 seconds
- apply strength to player-arg for 360 seconds
- wait 20 seconds
- message "&4Za 10 sekund &3Efekt Zabojcy &4wygasnie!" to player-arg
- wait 10 seconds
- message "&3Efekt Zabojcy &4wygasl" to player-arg
- delete {zabojca.%player-arg%}
- else:
- message "&4Nie masz tyle emeraldow!" 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 emeralds in the player-arg's inventory is more or equal to 64:
- set {tank.%player-arg%} to true
- message "&3Efekt Tanka zostal zakupiony!" to player-arg
- remove 64 of emerald from player-arg's inventory
- apply regeneration 2 to player-arg for 60 seconds
- apply water breathing to player-arg for 120 seconds
- apply strength to player for 60 seconds
- set {redukcja.obrazen.upadku.gracza.%player-arg%} to true
- wait 110 seconds
- message "&4Za 10 sekund &3Efekt Tanka &4wygasnie!" to player-arg
- wait 10 seconds
- delete {redukcja.obrazen.upadku.gracza.%player-arg%}
- message "&3Efekt Tanka &4wygasl" to player-arg
- delete {tank.%player-arg%}
- else:
- message "&4Nie masz tyle emeraldow!" 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 emeralds in the player-arg's inventory is more or equal to 64:
- message "&3Efekt Lucznika zostal zakupiony!" to player-arg
- set {lucznik.%player-arg%} to true
- set {trucie.atakujacych.przez.gracza.%player-arg%} to true
- set {spowalnianie.atakujacych.przez.gracza.%player-arg%} to true
- wait 50 seconds
- message "&4Za 10 sekund &3Efekt Tanka &4wygasnie!" to player-arg
- wait 10 seconds
- message "&3Efekt Lucznika &4wygasl" to player-arg
- delete {trucie.atakujacych.przez.gracza.%player-arg%}
- delete {spowalnianie.atakujacych.przez.gracza.%player-arg%}
- delete {lucznik.%player-arg%}
- else:
- message "&4Nie masz tyle emeraldow!" 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