Help with death by fall (By attacker)

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

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hello, Someone send me a code that fixed this thing but when i kill the same guy multiple times its bugy (The else works) can someone fix it or send me new one please.
code_language.skript:
on death:
    victim is a player
    if {last.%victim%} is set:
        set the death message to "&c%victim% &was killed by &c%{last.%victim%}%!"
        set lore of attacker's tool to "%lore of attacker's tool%||&e%attacker% &bkilled &e%name of victim%!"
        delete {last.%victim%}
    else:
        set the death message to "&c%victim% &6died"
    
on damage:
    victim is a player
    set {last.%victim%} to attacker
    set {test.last.%victim%} to attacker
    wait 8 seconds
    {last.%victim%} is equal to {test.last.%victim%}
    delete {last.%victim%}
    delete {test.last.%victim%}
 
Hello, Someone send me a code that fixed this thing but when i kill the same guy multiple times its bugy (The else works) can someone fix it or send me new one please.
code_language.skript:
on death:
    victim is a player
    if {last.%victim%} is set:
        set the death message to "&c%victim% &was killed by &c%{last.%victim%}%!"
        set lore of attacker's tool to "%lore of attacker's tool%||&e%attacker% &bkilled &e%name of victim%!"
        delete {last.%victim%}
    else:
        set the death message to "&c%victim% &6died"
   
on damage:
    victim is a player
    set {last.%victim%} to attacker
    set {test.last.%victim%} to attacker
    wait 8 seconds
    {last.%victim%} is equal to {test.last.%victim%}
    delete {last.%victim%}
    delete {test.last.%victim%}
just edit the "wait 8 seconds" to idk... "wait 4 seconds"
 
when i kill same guy multipe times the else works (its says "Dead")
code_language.skript:
on death:
    victim is a player
    if {last.%victim%} is set:
        set the death message to "&c%victim% &was killed by &c%{last.%victim%}%!"
        set lore of attacker's tool to "%lore of attacker's tool%||&e%attacker% &bkilled &e%name of victim%!"
    else:
        set the death message to "&c%victim% &6died"
   
on damage:
    victim is a player
    set {last.%victim%} to attacker
    set {test.last.%victim%} to attacker
    wait 8 seconds
    {last.%victim%} is equal to {test.last.%victim%}
    delete {last.%victim%}
    delete {test.last.%victim%}
 
code_language.skript:
on death:
    victim is a player
    if {last.%victim%} is set:
        set the death message to "&c%victim% &was killed by &c%{last.%victim%}%!"
        set lore of attacker's tool to "%lore of attacker's tool%||&e%attacker% &bkilled &e%name of victim%!"
    else:
        set the death message to "&c%victim% &6died"
  
on damage:
    victim is a player
    set {last.%victim%} to attacker
    set {test.last.%victim%} to attacker
    wait 8 seconds
    {last.%victim%} is equal to {test.last.%victim%}
    delete {last.%victim%}
    delete {test.last.%victim%}
its the same...