Thread: Healing Players
View Single Post
  #1  
Old 04-11-2004, 02:00 AM
internetexplorer internetexplorer is offline
Cookies Enabled
internetexplorer's Avatar
Join Date: Feb 2004
Location: Flordia; The Sunshine State
Posts: 11
internetexplorer is on a distinguished road
Healing Players

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));
}
}

Reply With Quote