EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Is the task system the only way to track PC kills? (https://www.eqemulator.org/forums/showthread.php?t=34362)

revloc02c 10-17-2011 09:03 PM

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?

joligario 10-17-2011 09:26 PM

Quest globals

sorvani 10-17-2011 11:01 PM

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.

revloc02c 10-18-2011 07:40 PM

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?

ChaosSlayerZ 10-18-2011 08:21 PM

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

revloc02c 10-18-2011 10:05 PM

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.

joligario 10-18-2011 10:37 PM

Pretty sure the client with the credit is also passed in the event_death routine. Might have to test that.

thepoetwarrior 10-22-2011 12:27 AM

We have kill quest on EZ Server using qglobals but will be converting it to Task instead to make it prettier.

revloc02c 10-28-2011 10:39 PM

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?


All times are GMT -4. The time now is 03:58 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.