on death skript not working

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

Jun 23, 2023
32
0
6
30
on death:
victim is a player
attacker is a player

add 1 to {oldurme::%attacker%}
if {oldurme::%attacker%} >= 0:
set {rank::%attacker%} to "Citizen"
if {oldurme::%attacker%} >= 100:
set {rank::%attacker%} to "Squire"
if {oldurme::%attacker%} >= 150:
set {rank::%attacker%} to "Knight"
if {oldurme::%attacker%} >= 200:
set {rank::%attacker%} to "Sergeant"
if {oldurme::%attacker%} >= 250:
set {rank::%attacker%} to "Captain"
if {oldurme::%attacker%} >= 300:
set {rank::%attacker%} to "Duke"
if {oldurme::%attacker%} >= 350:
set {rank::%attacker%} to "Earl"
if {oldurme::%attacker%} >= 400:
set {rank::%attacker%} to "Baron"
message "&c&l(!) &bRank: %{rank::%attacker%}%"

//this was supposed to work but it says attacker can only be used on death events
 
on death:
victim is a player
attacker is a player

add 1 to {oldurme::%attacker%}

if {oldurme::%attacker%} is greater than 0:
set {rank::%attacker%} to "Citizen"
if {oldurme::%attacker%} is greater than 100:
set {rank::%attacker%} to "Squire"
if {oldurme::%attacker%} is greater than 150:
set {rank::%attacker%} to "Knight"
if {oldurme::%attacker%} is greater than 200:
set {rank::%attacker%} to "Sergeant"
if {oldurme::%attacker%} is greater than 250:
set {rank::%attacker%} to "Captain"
if {oldurme::%attacker%} is greater than 300:
set {rank::%attacker%} to "Duke"
if {oldurme::%attacker%} is greater than 350:
set {rank::%attacker%} to "Earl"
if {oldurme::%attacker%} is greater than 400:
set {rank::%attacker%} to "Baron"
message "&c&l(!) &bRank: %{rank::%attacker%}%"
still no bueno