I'm using angelox's db which must be missing something. Where in the DB does it specify the rules for what IVU affects? I'd rather add that in than having to change the source everytime there's an update.
In the npc_types table set see_invis_undead to 1 if the mob can see through it, 0 if it can't. Likewise, you'd do the same for see_invis, see_hide, and see_improved_hide.
It's far better to be able to control each mob's habits individually, especially in the invis spell area where there are plenty of exceptions. Plus, allowing all normal NPCs to be able to see through IVU is as simple as:
update npc_types set see_invis_undead = 1 where bodytype != '3' and bodytype != '8';
I agree that it's an easy step to adjust them all, it's just when producing potentially thousands of new npcs it's 1000 extra lines that could be unnecessary and easily forgotten. Since the spell is Invis Vs Undead it should rely specifically on bodytypes 3 and 8 else IVU turns itself into a normal invis spell (which is not what the name implies).
The only time I can think it would be useful is I had say a human that was secretly undead (for some storyline reason perhaps). But then I should still be setting it's bodytype to 3 for undead spells to function.
You're also forgetting undead NPCs which can see through IVU. That's really the true reason why this and all the other invis columns exist in the database, for the exceptions.
Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.