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?
|
Quest globals
|
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. |
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? |
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 |
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. |
Pretty sure the client with the credit is also passed in the event_death routine. Might have to test that.
|
We have kill quest on EZ Server using qglobals but will be converting it to Task instead to make it prettier.
|
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.