Code:
quest::modifynpcstat("special_attacks","SERFTrMCNIL"); #example of course
using the table:
http://www.eqemulator.net/wiki/wikka...SpecialAttacks
Generally works - u can use the A/B to make him immune to melee/magic damage. Not sure the affect of making him immune to aggro might have mid fight cant say ive ever played with it.
I have a mob in an old custom event of mine that would port to a spot, and become rooted, (quest::modifynpcstat("runspeed","0.0");, then after X adds are killed, he jumps back into the fight, again modifying the npcstats and the runspeed. Can easily use this for just about any stat, and works great on making mobs immune/vulnerable to different attacks (again using A or B) or making them get harder as a fight goes on (Timers + counters for increased stats)