Someone helped me previously but their Skript doesn't seem to work either. It only send the "You do not have enough experience" message. It does not increase the hearts or say.
This was what they sent:
I believe I might be missing an addon as there is an error on the line "send "&aYou're now at %{_h} divided by 2% hearts!" to player"
This is what I ended up with trying to fix it
If anyone knows what plugin im missing or what's going wrong with the skript I'd appreciate it as I am still new to skripting
This was what they sent:
Code:
on region enter:
if "%event-region%" contains "heart":
if max health of player is greater than or equal to 40:
send "&eYou're at &cmax health" to player
stop
else:
if player's level is less than 100:
send "&eYou do not have enough &bexperience." to player
stop
if max health of player is between 20 and 38:
set {_h} to max health of player
add 2 to {_h}
set max health of player to {_h}
set player's level to 0
if {_h} is not 40:
send "&aYou're now at %{_h} divided by 2% hearts!" to player
else:
send "&aYou're now at max hearts!" to player
This is what I ended up with trying to fix it
Code:
on region enter:
if "%event-region%" contains "heart":
if max health of player is greater than 39:
send "&eYou're at &cmax health" to player
stop
else:
if player's level is less than 100:
send "&eYou do not have enough &bexperience." to player
stop
if max health of player is between 20 and 38:
set {_h} to max health of player
add 2 to {_h}
set max health of player to {_h}
set player's level to 0
if {_h} is less than 39:
send "&aYou now have more hearts!" to player
else:
send "&aYou now have max hearts!" to player
If anyone knows what plugin im missing or what's going wrong with the skript I'd appreciate it as I am still new to skripting