player.pl question
I want to make it so that when a player kills an npc, he gets points but I want it to work for npcs even if they already have a quest which leads me to the player.pl file in /templates/.
sub EVENT_DEATH doesn't seem to work for what I need and KILL_MERIT seems to only work for groups... Is there some event I can use that is triggered when a player kills an NPC? sub EVENT_KILL { quest::ldonpoints(1,2); } Something like this? |
bump - anyone have any ideas?
ps: sorry to annoy if I am, I would just like to simplify a few things. |
The NPC death related events don't work in the player.pl. You would need to add something to each NPC you want to give credit. Even if they already have a script, you can always add whatever you need on top of their existing one.
|
Ahh thank you Trevius! $hasitem doesn't work in player.pl either does it?
|
The wiki on the player.pl:
http://www.eqemulator.net/wiki/wikka...rQuestExamples I think this plugin should work: plugin::check_hasitem($client, itemid); |
All times are GMT -4. The time now is 04:37 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.