on death: no work add the variables or msg?

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

DHStyle

Member
Jan 26, 2017
58
0
6
78
hi man why not work.
but not send error
code_language.skript:
on death:
   attacker is a player:
       victim is a {@Mob}:
           if {allow.mobkill.%attacker%.1} is true:
               add 1 to {mobkill.%attacker%.1}
               if {acnotif.%attacker%} is true:
                   message "{@Prefix} &aMob Kill %{mobkill.%attacker%.1}%&7/&a{@MobsKill1}" to attacker
               if {mobkill.%attacker%.1} is greater than or equal to {@MobsKill1}:
                   message "{@Prefix} &aAchievement Mob Kill I Sukses!" to attacker
                   set {allow.mobkill.%attacker%.1} to false
                   set {allow.mobkill.%attacker%.2} to true
                   set {status.mobkill.%attacker%.1} to "Complete..."
                   set {status.mobkill.%attacker%.2} to "Running..."
                   wait 50 tick
                   # --- INPUT YOUR REWARD HERE
                   #play "FIREWORK_LAUNCH" only to attacker with pitch 1 and volume 1
                   #play "FIREWORK_LARGE_BLAST" only to attacker with pitch 1 and volume 1
                   #play "FIREWORK_TWINKLE" only to attacker with pitch 1 and volume 1
                   add 2 to attacker's health
                   #add {@MobsReward1} to attacker's balance
                   message "{@Prefix} &aMendapat ${@MobsReward1}!" to attacker
                  
                   message "{@Prefix} &aAchievement Mob Kill II telah terbuka!" to attacker
                   stop
 
Set {lives.%player%} to attacer's health
{lives.%player%} is smaller Than 10:
add 2 to attacer's health

I think that must work, i'm Not sure.
 
Status
Not open for further replies.