I'm trying to do with this event that the player to kill a certain mob is added 1 to the counter of the variable itself, but it does not work I do not understand because it does not add to the counter of the variable itself, being that I'm killing a mob and it does not happen nothing.
Some help?
Some help?
code_language.skript:
on death:
if attacker is a player:
if victim is a zombie or cave spider or spider or blaze or skeleton or creeper:
if {r.%attacker%.matar10000mobs.progreso} is not 10000:
add 1 to {r.%attacker%.matar10000mobs.progreso}
if {r.%attacker%.matar10000mobs.echo} is not true:
if {r.%attacker%.matar10000mobs.progreso} is 10000:
broadcast "&d&lRetos &8» &c%attacker% &bCompleto el reto &aCazador"
send attacker title "&7&k||&r &d&lRETOS &r&7&k||" with subtitle "&eCompletaste el reto: &aJoiner 2" for 5 seconds
set {r.%attacker%.matar10000mobs.echo} to true
make console execute command "eco give %attacker% 50000"
make console execute command "give %attacker% 388 12"