NPC Out of Combat Regen
Request from thread:
http://www.eqemulator.net/forums/showthread.php?t=23824 On Live NPCs regen at a much higher rate when they are out of combat, on Emu they regen at the same rate, inside or outside of combat. Here is my fix for that. change .\zone\npc.cpp (inside the bool NPC::Process() function) Code:
if(GetHP() < GetMaxHP()) { Code:
float MobOOCRegen = 0; Code:
insert into `variables` values ('NPCOOCRegen', 0, 'Out of Combat Regen % for NPCs. 0 to disable.', '2007-12-20 12:00:00'); Dax |
This is a much needed fix! Thanks! The only issue, could you scratch the variable and make it a rule instead? The common trend is that we are trying to do away with the variables table in favor of the superior rules system. The reason being rules can be loaded on-demand and don't require a server reboot, unlike most variables.
|
I'll take a look at the coding for the rules system and see what I can do.
Dax |
Got tied up for the holidays (of course), I look into this today.
Dax |
Ok, for a rules based fix:
add the line in red to .\common\ruletypes.h Code:
RULE_CATEGORY( NPC ) Code:
if(GetHP() < GetMaxHP()) { Code:
float NPCOOCRegen = 0; Code:
insert into rule_values values (0, 'NPC:OOCRegen', 0); Dax |
All times are GMT -4. The time now is 04:28 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.