Stop Mob Regen when roaming
-
- Posts: 129
- Joined: Wed May 27, 2015 4:23 pm
Stop Mob Regen when roaming
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?
-
- Posts: 129
- Joined: Wed May 27, 2015 4:23 pm
Re: Stop Mob Regen when roaming
Nvm figured it out by making a custom status effect with the no rest effect flag.
Re: Stop Mob Regen when roaming
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?
Is there a way to apply the status effect globally to all mobs without having to modify individual ones?
-
- Posts: 129
- Joined: Wed May 27, 2015 4:23 pm
Re: Stop Mob Regen when roaming
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.
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.