Pet Handing Quest
I want to allow a special weapon to only be given to max level pets, not noobies power leveling.
Im not exactly asking for the quest code, cause assuming pets are an NPC I can check $mlevel and the item id given to it.
Also, assuming we're checking items given to the pet, or even that it has a (global) quest file at all, then the pet/npc would then not auto-equip it, needing to put in the code to quest::addloot to the npc in which it would then auto equip (already tested with specific named npc) or give items back to the player.
Ok, getting to my point. Im trying to use default.pl in my /quest dir. I remember back the days long time ago trying to make a global quest for NPC's to respond to hails and item turn ins, but it also affected pets. I can't seem to get the default.pl working again. I've rebooted the server each time I've made a change, and even tried to add it to my quest/templates dir which is where my player.pl is located, but that didn't work either. My quest code doesn't have errors since I've already tested it on a static spawn NPC with its name.pl and it worked as intented, so now Im trying to make it global, especially affecting pets.
How can I filter or limit items given to pets? Please help.
|