Boss spawn after kill count.
What I'm trying to accomplish is have a boss spawn after a certain number of spiders are killed. I have a working qglobal that counts how many spiders are killed, but I don't know how to accomplish the actual spawning. If I use quest::spawn then it'll spawn multiple instances of the boss. What I'd prefer to do is once is a certain number of spiders is killed, have it enable a disabled entry in the spawn2 table, and then after the boss is killed then disable that same entry. Is there a way to accomplish this?
I remember back in the day there was a page that went into each table on the database. I was trying to figure out the spawn conditions table but I couldn't find that page. Was it taken down? |
In lieu of using qglobals, you could have an invisible man acting as a controller that would count the number of spider deaths, and spawn the desired npc based on the number of kills.
|
Hmm...
Is there a guide on how to accomplish this? |
Perfect use case for a data bucket. https://eqemu.gitbook.io/server/cate...g-data-buckets
Code:
sub EVENT_DEATH_COMPLETE { |
Could use lua encounters as well.
|
Thanks! I'll give it a try.
Would this work for character specific instances too? Like every time a specific npc type dies, the killing PC gets a +1 and when they reach a certain value trigger an event? I know how to use the task system, but I want to try to do it without if possible. Also, is there a lua guide? There used to be a pretty good guide on writing lua scripts for EQEMU servers but I can't seem to find it. |
It sounds like you are trying to set up a unique game mechanic that involves spawning a boss character after a certain number of spiders are killed. One way you could accomplish this is by using a quest script to check the value of the qglobal that counts the number of spiders killed, and then using quest::spawn2 to enable the disabled entry in the spawn2 table when the threshold is reached. You could then use a similar script to disable the entry again after the boss is killed.
As for the spawn conditions table, you might be able to find more information about it by searching online or asking other developers or players who have experience with the game. It could also be helpful to review the documentation or resources provided by the game's creators, if they have made any available. Good luck with your project! |
Oops, looks like I never replied back to this.
My proposed solution would be in perl. Summary: Invisible man controller spawns with 0 spider tokens. Each time a spider is killed, it signals the controller. Controller increments spider token counter. Once the controller has 20 spider tokens, spawn2 or unique_spawn whatever your boss npc id is and resets spider tokens to 0. Code:
#invisible man controller Code:
#spiders |
zone_controller.pl
This npc can track the deaths of any NPC so no need for signals and such Code:
my $kill_count_69420 = 0; |
All times are GMT -4. The time now is 10:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.