Log in

View Full Version : player.pl question


Vexira
02-08-2010, 10:26 PM
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?

Vexira
02-09-2010, 07:56 PM
bump - anyone have any ideas?

ps: sorry to annoy if I am, I would just like to simplify a few things.

trevius
02-09-2010, 08:37 PM
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.

Vexira
02-09-2010, 10:19 PM
Ahh thank you Trevius! $hasitem doesn't work in player.pl either does it?

trevius
02-09-2010, 10:25 PM
The wiki on the player.pl:
http://www.eqemulator.net/wiki/wikka.php?wakka=QuestPlayerQuestExamples

I think this plugin should work:
plugin::check_hasitem($client, itemid);