every 5 ticks:
loop all entities:
if name of entity is "&e&lUprawnienia":
spawn 100 of particle happy_villager offset by 1, 1, 1 at entity
pomoze ktos bo w 3 linijce jest blad i wyskakuje "entity is a not a slot"
on projectile hit:
if projectile is snowball:
if {klatwa1::use} is true:
set {klatwa1::use} to false
loop all monsters:
if distance between projectile and loop-monster is smaller than 6:
apply slowness 3 to loop-monster for 5 seconds
send "&5Rzuciles klatwe!"
powie mi ktos co mam napisac aby loop zwracało sie do potworów.
on damage:
if attacker is a player:
set {_d} to {sila:%player%}
set damage to damage + ({_d} * 0.01)
czyli ma byc tak ale nie dziala chociaż nie ma błędów
teraz przeczytałem a jak zrobic zmienną jako % ale nie tak jak ty tylko cos w stylu
on damage:
if attacker is a player:
set damage to damage * {sila:%attacker%}%
mam taki problem bo chciałem zrobić coś takiego ze jeśli mamy w zmiennej np: 20 to żeby dodawało 20 do dmg zadawanego przez gracza
mój skrypt wygląda tak:
on damage:
if attacker is a player:
increase attacker damage by {sila:%player%}