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 09-07-2009, 12:52 PM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default player.pl or something else to update a counter?

Each time a person dies is there a way to run commands on them? Like death_counter = death_counter + 1? Vice versa, if someone kills something that they get a kill_counter?
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #2  
Old 09-07-2009, 05:03 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

If you are talking about NPCs vs Players, then you could probably use this:

sub EVENT_SLAY - Triggered whenever an NPC kills someone.

And then just use quest globals to keep track of your scores.

For players killing NPCs, you can just use this:

sub EVENT_KILLED_MERIT - Triggered on NPC death when you are in the group credited with doing the most damage to said loottable NPC.

If you want to keep track of player vs player, I haven't tried it, but maybe you could use EVENT_ZONE and check the players current HPs when they zone to see if they are <= 0. If so, then you up the counter for them being killed, but I don't know how you would up a counter for killing another player.
__________________
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 12:45 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3