This is the code im using. Near where M0oni9 said. Line (484):
Code:
if(GetHP() < GetMaxHP()) {
if(GetOwnerID()!=0 && !IsEngaged()) //pet
SetHP(GetHP()+hp_regen+bonus+(GetLevel()/5));
else if (!IsEngaged() && !IsMezzed())
SetHP (GetHP() + hp_regen + (GetMaxHP()/15) + bonus);
else
SetHP(GetHP()+hp_regen+bonus);
}
if(GetMana() < GetMaxMana()) {
SetMana(GetMana()+mana_regen+bonus);
Works great for me. I'm pretty sure thats sorta what eqlive does.