Solved zombie death - need help

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

MightyMathan

Member
Feb 4, 2021
2
0
1
18
Hey so i made a skript when a zombies dies it should give the player who killed it money and xp and it doesnt work.
this is the skript:
on death of zombie:
clear the drops
remove 1 from {zombiecount}
broadcast "%{zombiecount}%"
add 2 to {%killer%.money}
add 1 to {%killer%.xp}
how do i fix it?
 
You cannot use "add 1 to {example}" use:
Code:
on death of zombie:
  clear the drops
  # Important
  set {xp.%player%} to {xp.%player%} + 1
 
Status
Not open for further replies.