SoTRichard
07-01-2007, 11:52 AM
http://eqemulator.net/forums/showthread.php?t=13837&highlight=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.
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.