EQEmulator Forums

EQEmulator Forums (http://www.eqemulator.org/forums/index.php)
-   General::News (http://www.eqemulator.org/forums/forumdisplay.php?f=594)
-   -   NPC Spell AI Casting Changes (http://www.eqemulator.org/forums/showthread.php?t=41740)

demonstar55 02-01-2018 08:05 PM

NPC Spell AI Casting Changes
 
I added a special case for priority 0 spells. This new special case basically emulates what we believe EQ devs call "innate spells."

NPCs with innate spells will try to spam these on their reuse timers. Ex. Lord Naggy's AE fear is always cast on recast timer. You should be able to count on it.

Most of normal EQ mobs function like this and eliminates the need to use quest scripting.

I also added support to define a valid HP range an NPC will cast a spell. The min_hp field is the low end of the range and max_hp field is the high end. For example, lots of mastruqs in GoD will cast Protection of Discord at low HP, setting max_hp will allow the NPC to not cast this until they reach this percentage. This range is also purely based on the caster's HP ratio.

Maze_EQ 02-16-2018 02:13 PM

Pretty sure this is the cause of spamming harm touch/innate stuns/anything instant cast.

Seen this on mobs like Zlandicar, and anything that is a SK.

demonstar55 02-16-2018 03:53 PM

The issue with HT is it has a 0 recast delay, this needs to be set. We've fixed this on PEQ. The code is fine though, you need to adjust your data. Zland only procs a stun, at least on PEQ. He fears every 36 seconds like clockwork. This is live like.

Maze_EQ 02-16-2018 04:42 PM

Was just stating, with a new build and new database, I see those symptoms. I'll go ahead and change them.


All times are GMT -4. The time now is 08:54 PM.

Powered by vBulletin®, Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.