Mam problem ze skryptem na gianty, chodzi dokładniej o drop z nich.
Kod:
variables:{zdrowie.giant}=500
command /event-giant:
trigger:
player has permission "giant.*" or "giant.spawn":
spawn 1 giant at location of {loc}set the max health of last spawned entity to 500
heal last spawned entity
wait 1 tick
set the name of last spawned entity to "&2&lGIANT"
apply potion of strength 1 to the last spawned entity for999999 days
broadcast "hello"
command /setloc:
trigger:
player has permission "giant.*" or "giant.setloc":set{loc} to player's location
send "&6BlackSquad &8» &7Lokalizacja gianta zostala zmieniona na &6%{loc}%" to all players
command /setloot:
trigger:
player has permission "giant.*" or "giant.setloot":set{lootloc} to player's location
send "&6BlackSquad &8» &7Lokalizacja lootu z gianta zostala zmieniona na &6%{lootloc}%" to all players
on damage:if attacker is a player:if victim is a giant:
send "&6BlackSquad &8» &7Giantowi pozostalo &4%health of victim%&8/&4%max health of victim% HP" to attacker
on death of giant:set{itemzgianta} to a random integer between 1 and 5if{itemzgianta} is 1:
drop 1 diamond helmet of protection 5 named "&2&lGIANT" at location of {lootloc}
broadcast "&6BlackSquad &8» &c%attacker%&7 pokonal &cgianta&7 i otrzymal &cdiamond helmet of protection 5&7!"if{itemzgianta} is 2:
drop 1 diamond chestplate of protection 5 named "&2&lGIANT" at location of {lootloc}
broadcast "&6BlackSquad &8» &c%attacker%&7 pokonal &cgianta&7 i otrzymal &cdiamond chestplate of protection 5&7!"if{itemzgianta} is 3:
drop 1 diamond leggings of protection 5 named "&2&lGIANT" at location of {lootloc}
broadcast "&6BlackSquad &8» &c%attacker%&7 pokonal &cgianta&7 i otrzymal &cdiamond leggings of protection 5&7!"if{itemzgianta} is 4:
drop 1 diamond boots of protection 5 named "&2&lGIANT" at location of {lootloc}
broadcast "&6BlackSquad &8» &c%attacker%&7 pokonal &cgianta&7 i otrzymal &cdiamond boots of protection 5&7!"if{itemzgianta} is 5:
drop 1 diamond sword of sharpness 6 named "&2&lGIANT" at location of {lootloc}
broadcast "&6BlackSquad &8» &c%attacker%&7 pokonal &cgianta&7 i otrzymal &cdiamond sword of sharpness 6&7!"// Te linijki z dropem w ogole nie dzialaja...
every 30 minutes:
spawn 1 giant at location of {loc}set the max health of last spawned entity to 500
heal last spawned entity
wait 1 tick
set the name of last spawned entity to "&2&lGIANT"
apply potion of strength 1 to the last spawned entity for999999 days
broadcast "&6BlackSquad &8»&2&l GIANT&7 zostal zespawnowany na kordach &c%{loc}%"
broadcast "&6BlackSquad &8»&7 Kolejny &2&lGIANT&7 zrespi sie za &c30 minut&7!"
Logi bledu:
[15:16:26 INFO]:[Skript]Reloading gianty.sk...[15:16:26 ERROR]:'location' is not a number (gianty.sk, line 34: drop 1 diamond helmet of protection 5 named "&2&lGIANT" at location of {lootloc}')[15:16:26 ERROR]:'location' is not a number (gianty.sk, line 37: drop 1 diamond chestplate of protection 5 named "&2&lGIANT" at location of {lootloc}')[15:16:27 ERROR]:'location' is not a number (gianty.sk, line 40: drop 1 diamond leggings of protection 5 named "&2&lGIANT" at location of {lootloc}')[15:16:27 ERROR]:'location' is not a number (gianty.sk, line 43: drop 1 diamond boots of protection 5 named "&2&lGIANT" at location of {lootloc}')[15:16:27 ERROR]:'location' is not a number (gianty.sk, line 46: drop 1 diamond sword of sharpness 6 named "&2&lGIANT" at location of {lootloc}')[15:16:27 INFO]:[Skript]Encountered5 errors while reloading gianty.sk!
Pytanie
Kaamil3cz3k 9
Witam.
Mam problem ze skryptem na gianty, chodzi dokładniej o drop z nich.
Kod:
Logi bledu:
Odnośnik do komentarza
Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi