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 comminuty!

    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.

Erces07

Member
Mar 31, 2020
1
0
0
26
Minecraft version: 1.13.2
Skript version: 2.3.6
Skript author: Bensku
Addons: SkStuff, WildSkript, SkRayFall, Tuske

My code
Code:
on death:
    if victim is zombie:
        if attacker is player:
            add 100 to {exp.%attacker%}
the error:
When i kill the mob with a weapons it work like 1 time on 3
the exp have to be add to the variable {exp.%attacker%}
i even put a broadcast and it work 1 time on 3

Thx for help :emoji_slight_smile:
[doublepost=1585713070,1585614270][/doublepost]up?
 
Simply leave out the query for the attacker since almost no other mobs attack zombies :emoji_slight_smile:
Code:
on death:
    victim is zombie:
        add 100 to {exp.%attacker%}
if you want to send a message to the attacker use:
Code:
send "&7[&a+&7]&a 100 exp" to attacker

Good luck with you Skript :emoji_grinning:
 
Status
Not open for further replies.