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. |
Mana and Hp regen are in the npc_types table in the database. It's called mana_regen_rate and hp_regen_rate
|
All times are GMT -4. The time now is 02:05 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.