Problems with on death event

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

JuanDouCore_

New Member
May 20, 2017
7
0
0
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?

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"
 
Try do debugs?

maybe does count, but you can't see. you need 1.000 kills then will it broadcast?
 
Status
Not open for further replies.