Bug Fix: Stop Pets Fleeing
I started a level 1 necro and noticed my pet started fleeing at low health:
In attack.cpp, at line 1643, changing: Code:
if(damage > 0) { Code:
if(damage > 0) { |
Good deal! You are the flee-master!
|
lol talking about realism- yey! fleeing pets!
pet rights fighters unite! |
You can also add the f npcspecialattk to all pets. They are already like that in the PEQ database. That may be a better option than having it hardcoded into the server, for the benefit of custom server ops who may want pets to flee.
|
Thanks a ton for your fixes Derision- I have this one and your other 'Pet HP Bar out-of-combat update' fix together with a few others posted at my web page.
I posted windows executables and source for who ever wants to try it out. They all are tested and work fine for me. Also added is the 'closest_zp = NULL;' in Leikas MQ-Cheat detector code, so you either would have to use my database ( has update to zone points already) or up date your zone_points as explained in the MQ-Cheat detector thread The 'Pet HP Bar out-of-combat update' fix was a nice one too, always bothered me ever since I started EqEmu |
Cavedude is right- there is no need to put this into a official source if a pet can be sontrolled with a simple "f" flag
|
What about charm and dire-charmed pets? do they start to run when low also? - if so, they are not supposed to (can't f-flag those).
|
hmm thats a tricky one =)
but in this case you can actualy use hard coding in charm itself, something like: If pet is charmed then do not flee |
All times are GMT -4. The time now is 04:24 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.