Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2007, 11:52 AM
SoTRichard
Sarnak
 
Join Date: Aug 2004
Posts: 67
Default Quick Question

http://eqemulator.net/forums/showthr...ighlight=regen

I'm sorry, i'm not very adept with c++ or sql and sourcing...
how would i go about entering that change into my DB so my mobs regen back to full health in almost no time when not in combat (like how live works)

what would be the exact commands i would have to type in to change it...

Thanks


=========================================
This is what is on the link and what i'm talking about.
=========================================


Best way is probably to find the code that does the regen, and times it by some multiplier if the mob has no agro.

At a glance, maybe something like this..

line 473 of zone/npc.cpp


Code:
if(GetHP() < GetMaxHP()) {
if(GetOwnerID()!=0 && !IsEngaged()) //pet
SetHP(GetHP()+hp_regen+bonus+(GetLevel()/5));
else
SetHP(GetHP()+hp_regen+bonus);
}change to:

Code:
if(GetHP() < GetMaxHP()) {
if(GetOwnerID() !=0 && !IsEngaged()) //pet
SetHP (GetHP() + hp_regen + bonus + (GetLevel() / 5));
else if (!IsEngaged())
SetHP (GetHP() + hp_regen * MULTIPLIER + bonus);
else
SetHP (GetHP() + hp_regen + bonus);
}where MULTIPLIER is some arbitrary number.
__________________
Truth=What is, is.
Reply With Quote
  #2  
Old 07-01-2007, 07:33 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Mana and Hp regen are in the npc_types table in the database. It's called mana_regen_rate and hp_regen_rate
Reply With Quote
Reply


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 -4. The time now is 06:50 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3