Yeah, I was afraid that this was where this thread was going. The event is sub EVENT_KILLED_MERIT and it will only work if you write a script for the NPC being killed. The quest I wrote pulls a random MOB out of the database (of appropriate level of course) and I am not writing a pearl script that covers all npc_types. (Hmm, I wonder if I can put something the the quests/templates folder...I'll have to look into that.)
Anyway, the task system can track when the PC kills something so I'll just write a stored procedure or two to utilize that functionality with some accompanying Perl code. I was just fishing for an easier way before I commit to it. Thanks for the responses fellas, I really appreciate it.
|