Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.