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
  #3  
Old 08-15-2003, 12:02 AM
ApeHex ApeHex is offline
Registered User
Join Date: Jun 2003
Location: USA
Posts: 72
ApeHex is on a distinguished road
Send a message via AIM to ApeHex
so serverside calling wont work offline right?
what if i used
NPC Code:

// NPC made by Josey Hunt
if (playerchats&&startswith(/hurt,#c)){
triggeraction playerx,playery,hurt,1,1;
}


and in the weapon use
NPC Code:

if (actionhurt){
this.damPower=strtofloat(#p(0));
this.damType=strtofloat(#p(1));
this.finalPower=int(this.damPower+this.damType-this.playArmor);
this.curHP-=this.finalPower;
setcharprop #c,OUCH! #v(this.curHP)/#v(this.maxHP).;
}



but it still doesnt work
;o
someone push me in the right direction
__________________
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 11:58 AM.


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