I'm making some type of healing NPC,
and it's suppose to heal the player no matter
what AP they might have.
Hopefully someone will find this and help me. :grin:
NPC Code:
if (actionserverside) {
if (strequals(#p(0),heal)) {
with (getplayer(#p(1))) {
if (playerap <= 39) {
playerap += 40;
playerhearts = playerfullhearts;
playerap -= 40;
} else {
playerhearts = playerfullhearts;
}
}
}
}
//#CLIENTSIDE
if (playerchats) {
if (startswith(/heal,#c)) {
triggeraction 0,0,serverside,Tools,heal,#T(#e(5,-1,#c));
}
}