Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2010, 10:26 PM
Vexira
Fire Beetle
 
Join Date: Jun 2009
Location: Hi
Posts: 27
Default 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?
Reply With Quote
  #2  
Old 02-09-2010, 07:56 PM
Vexira
Fire Beetle
 
Join Date: Jun 2009
Location: Hi
Posts: 27
Default

bump - anyone have any ideas?

ps: sorry to annoy if I am, I would just like to simplify a few things.
Reply With Quote
  #3  
Old 02-09-2010, 08:37 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 02-09-2010, 10:19 PM
Vexira
Fire Beetle
 
Join Date: Jun 2009
Location: Hi
Posts: 27
Default

Ahh thank you Trevius! $hasitem doesn't work in player.pl either does it?
Reply With Quote
  #5  
Old 02-09-2010, 10:25 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

The wiki on the player.pl:
http://www.eqemulator.net/wiki/wikka...rQuestExamples

I think this plugin should work:
plugin::check_hasitem($client, itemid);
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:01 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3