Page 1 of 1

Stop Mob Regen when roaming

Posted: Sun Feb 04, 2018 12:44 am
by bluesolarflare
Is there a way to stop a specific mob from regening health when roaming. For instance when players fight an NM, and they die or it goes unclaimed, it can roam but doesn't regen HP so that if it is fought again, it starts off where the HP left off?

Re: Stop Mob Regen when roaming

Posted: Mon Feb 05, 2018 10:18 am
by bluesolarflare
Nvm figured it out by making a custom status effect with the no rest effect flag.

Re: Stop Mob Regen when roaming

Posted: Wed Feb 07, 2018 4:16 pm
by Lothiriel
Can you post the details of how you did it? I just started dabbling so I'm curious how involved something like what you described is to implement.

Is there a way to apply the status effect globally to all mobs without having to modify individual ones?

Re: Stop Mob Regen when roaming

Posted: Mon Mar 12, 2018 2:58 pm
by bluesolarflare
I believe what you are looking for is in mob_controller.cpp

There is a section for resting that states 10% recovered (line 723)
I believe you can adjust that to your liking or remove the if statement completely to remove mobs resting, but that is global. If you logout or no one is in the zone, there is a "pause" for the zone that freezes it when no one is in the zone and heals all mobs to 100% so you would need to change that as well.