Stop Mob Regen when roaming

Post Reply
bluesolarflare
Posts: 129
Joined: Wed May 27, 2015 4:23 pm

Stop Mob Regen when roaming

Post by bluesolarflare » Sun Feb 04, 2018 12:44 am

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?

bluesolarflare
Posts: 129
Joined: Wed May 27, 2015 4:23 pm

Re: Stop Mob Regen when roaming

Post by bluesolarflare » Mon Feb 05, 2018 10:18 am

Nvm figured it out by making a custom status effect with the no rest effect flag.

Lothiriel
Posts: 6
Joined: Wed Jan 31, 2018 5:38 pm

Re: Stop Mob Regen when roaming

Post by Lothiriel » Wed Feb 07, 2018 4:16 pm

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?

bluesolarflare
Posts: 129
Joined: Wed May 27, 2015 4:23 pm

Re: Stop Mob Regen when roaming

Post by bluesolarflare » Mon Mar 12, 2018 2:58 pm

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.

Post Reply