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 10-17-2011, 09:03 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default Is the task system the only way to track PC kills?

I am setting up a quest where the PC needs to go a kill a random MOB. The only way I can think of to track/identify if the PC has slain the said MOB is by setting it up in a task. Is there another way of determining if a PC killed a certain NPC?
Reply With Quote
  #2  
Old 10-17-2011, 09:26 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Quest globals
Reply With Quote
  #3  
Old 10-17-2011, 11:01 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

use a task if you want the player to be able to pull up a window and see the status.

use quest globals if various NPC's just need to know what is going on.
Reply With Quote
  #4  
Old 10-18-2011, 07:40 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

I am using some quest globals for some other stuff so I know how they work to some degree.

What I am not seeing is how do you know the player killed the MOB? It is easy enough to throw the random npc_type id number of the NPC that needs to be killed into a quest global, but then when the player goes and whacks that NPC, how do ya know he did it?
Reply With Quote
  #5  
Old 10-18-2011, 08:21 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

there npc event type called Kill_MERIT or something along those lines.
It triggers on mobs death and can be tied to a player who killed him.
look it up in wiki
Reply With Quote
  #6  
Old 10-18-2011, 10:05 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

Yeah, I was afraid that this was where this thread was going. The event is sub EVENT_KILLED_MERIT and it will only work if you write a script for the NPC being killed. The quest I wrote pulls a random MOB out of the database (of appropriate level of course) and I am not writing a pearl script that covers all npc_types. (Hmm, I wonder if I can put something the the quests/templates folder...I'll have to look into that.)

Anyway, the task system can track when the PC kills something so I'll just write a stored procedure or two to utilize that functionality with some accompanying Perl code. I was just fishing for an easier way before I commit to it. Thanks for the responses fellas, I really appreciate it.
Reply With Quote
  #7  
Old 10-18-2011, 10:37 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Pretty sure the client with the credit is also passed in the event_death routine. Might have to test that.
Reply With Quote
  #8  
Old 10-22-2011, 12:27 AM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

We have kill quest on EZ Server using qglobals but will be converting it to Task instead to make it prettier.
Reply With Quote
  #9  
Old 10-28-2011, 10:39 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

I am still working on this (it takes me a while cuz of RL), here's my question:

There is a GM command "#task reloadall" is there a way to execute this command (or something equivalent) from Perl?
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 07:21 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3