PenUltima Online

It is currently Sun Oct 12, 2008 4:25 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: MAXHP for npcs
PostPosted: Wed May 31, 2006 5:45 am 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 560
Is there any way we can change the maxhp for an npc? I don't mean editing and reloading the npcdesc file. I am looking for a way to set a maxhp_mod on an npc the same way as an item.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 6:55 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 421
Location: San Diego, California
Already exists.
1. Look at your vitals.cfg
-This will tell you where your vital hook is and what function it uses.
2. Look at the function that returns something for the hit point vital.
This is what sets the hitpoints.
It probably points to the strength attribute?
You can change it to look for something else, a cprop maybe for an npc?
Use RecalcVitals() im uo.em to update the vitals and their regen rates.
It causes the hook to be re-run on the mobile.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 11:43 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 560
The cprop idea works just fine.
Thanks Austin.

Pol still ain't the best thing to figure out stuff.
The POL Object Class Reference really lead me astray here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: MSN [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl