Solved Every x amount of zombie kill

  • 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.

SaltyPotata

Member
May 26, 2020
17
0
0
24
Code:
on death of zombie:
    add 1 to {zombieDeaths}
    if {zombieDeaths} is greater than or equal to 3:
        set {_drops} to player skull named "&5&lZombie Boss tojás" with nbt "{SkullOwner:{Id:""75d0cf8a-cfd2-48b5-bc44-513347a526fb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzdmODQ0YmZlYTI1NDI5ZDQ1ZTFmY2Y5NmVmNjY1NGRmYWFhNmZjOTAyZGMxYjZiNjhjMGFiYzEzNDM0NDcifX19""}]}}}"
        set {_zombielocation} to victim's location
        drop {_drops} at {_zombielocation}
        clear {zombieDeaths}

This is not working and I have no idea why. Can someone help me out?
[doublepost=1591740416,1591723983][/doublepost]Still need help
 
Code:
on death of zombie:
    add 1 to {zombieDeaths}
    if {zombieDeaths} is greater than or equal to 3:
        set {_drops} to player skull named "&5&lZombie Boss tojás" with nbt "{SkullOwner:{Id:""75d0cf8a-cfd2-48b5-bc44-513347a526fb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzdmODQ0YmZlYTI1NDI5ZDQ1ZTFmY2Y5NmVmNjY1NGRmYWFhNmZjOTAyZGMxYjZiNjhjMGFiYzEzNDM0NDcifX19""}]}}}"
        set {_zombielocation} to victim's location
        drop {_drops} at {_zombielocation}
        clear {zombieDeaths}

This is not working and I have no idea why. Can someone help me out?
[doublepost=1591740416,1591723983][/doublepost]Still need help
Change:
Code:
set {_drops} to player skull named "&5&lZombie Boss tojás" with nbt "{SkullOwner:{Id:""75d0cf8a-cfd2-48b5-bc44-513347a526fb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzdmODQ0YmZlYTI1NDI5ZDQ1ZTFmY2Y5NmVmNjY1NGRmYWFhNmZjOTAyZGMxYjZiNjhjMGFiYzEzNDM0NDcifX19""}]}}}"
To:
Code:
set {_drops} to attacker's skull named "&5&lZombie Boss tojás" with nbt "{SkullOwner:{Id:""75d0cf8a-cfd2-48b5-bc44-513347a526fb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzdmODQ0YmZlYTI1NDI5ZDQ1ZTFmY2Y5NmVmNjY1NGRmYWFhNmZjOTAyZGMxYjZiNjhjMGFiYzEzNDM0NDcifX19""}]}}}"
Btw, this is working for me:
Code:
on death of zombie:
    attacker is a player
    add 1 to {l_zombieDeaths::%attacker%}
    if {l_zombieDeaths::%attacker%} is greater than or equal to 3:
        set {_drops} to attacker's skull named "&5&lZombie Boss tojás" with nbt "{SkullOwner:{Id:""75d0cf8a-cfd2-48b5-bc44-513347a526fb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzdmODQ0YmZlYTI1NDI5ZDQ1ZTFmY2Y5NmVmNjY1NGRmYWFhNmZjOTAyZGMxYjZiNjhjMGFiYzEzNDM0NDcifX19""}]}}}"
        set {_zombielocation} to victim's location
        drop {_drops} at {_zombielocation}
        delete {l_zombieDeaths::%attacker%}
 
Status
Not open for further replies.