Woot! I finally figured it out!
http://www.eqemulator.net/forums/sho...131#post154131
Now, I just need to do some in depth testing on it. My only concern is the variables possibly being used by multiple NPCs and causing the IDs to not match up. But, so far my testing shows that it at least works!