hi. any help.
Code:
on consume a raw fish:
if {@raw.fish.online} is true:
if {@raw.fish.bad} is true:
if {@raw.fish.effect} is greater than 0:
if {@raw.fish.effect} is 1:
apply {@raw.fish.effect.1} to player for {@raw.fish.effect.1.time} seconds
loop {@raw.fish.time} times:
wait {@raw.fish.stoptime} seconds
set player's health to player's health + {@raw.fish.heal}
stop
if {@raw.fish.effect} is 2:
apply {@raw.fish.effect.1} to player for {@raw.fish.effect.1.time} seconds
apply {@raw.fish.effect.2} to player for {@raw.fish.effect.2.time} seconds
loop {@raw.fish.time} times:
wait {@raw.fish.stoptime} seconds
set player's health to player's health + {@raw.fish.heal}
stop
if {@raw.fish.effect} is 3:
apply {@raw.fish.effect.1} to player for {@raw.fish.effect.1.time} seconds
apply {@raw.fish.effect.2} to player for {@raw.fish.effect.2.time} seconds
apply {@raw.fish.effect.3} to player for {@raw.fish.effect.3.time} seconds
loop {@raw.fish.time} times:
wait {@raw.fish.stoptime} seconds
set player's health to player's health + {@raw.fish.heal}
stop
else:
loop {@raw.fish.time} times:
wait {@raw.fish.stoptime} seconds
set player's health to player's health + {@raw.fish.heal}
stop
else:
loop {@raw.fish.time} times:
wait {@raw.fish.stoptime} seconds
set player's health to player's health + {@raw.fish.heal}
else:
send "&cJedzenie tego produktu jest zablokowane"
Code:
[14:35:32 ERROR]: Line 280: (jedzenie.sk)
Can't understand this event: 'on consume a raw fish'
Line: on consume a raw fish:
[14:35:32 ERROR]: Line 317: (jedzenie.sk)
Can't understand this event: 'on consume a cooked fish'
Line: on consume a cooked fish:
Code:
on consume a cooked fish:
if {@cooked.fish.online} is true:
loop {@cooked.fish.time} times:
wait {@cooked.fish.stoptime} seconds
set player's health to player's health + {@cooked.fish.heal}
else: