EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Need help with signals. (https://www.eqemulator.org/forums/showthread.php?t=26654)

Aonelyn 10-27-2008 06:01 PM

Need help with signals.
 
Hey, Im trying to play with signals, and have no clue what I am doing.

Basically, I'm trying to get it that when a raid force kills two mobs, it spawns another mob.

Any ideas?

Andrew80k 10-28-2008 01:25 PM

You could have the mob spawned on EVENT_DEATH of one of the two mobs you wanted to be killed.

ChaosSlayer 10-28-2008 02:02 PM

Quote:

Originally Posted by Andrew80k (Post 159264)
You could have the mob spawned on EVENT_DEATH of one of the two mobs you wanted to be killed.

thats not the same thing

Andrew80k 10-28-2008 02:44 PM

Not sure why it wouldn't be the same. Mind explaining why it's different? If you have to kill both mobs before you spawn a new one, this would do it.

ChaosSlayer 10-28-2008 03:31 PM

Quote:

Originally Posted by Andrew80k (Post 159281)
Not sure why it wouldn't be the same. Mind explaining why it's different? If you have to kill both mobs before you spawn a new one, this would do it.

so you have A and B.
what you proposing that when A dies C will spawn, while question was how to make so when BOTH are dead C spawns.
Your way essentialy cuting intended encounter in HALF

Have you ever did Bertox raid?
bertox only spawns after all 12 kings are dead, not just one

thing geting even more complex if all mosb have to be killed within certain time frame - like Cursed encounter in Sssra. Curse will only spawn if all 6 taskmaster dead at the same time - if any of TM respawn before you finish off other 5- the encounter will be broken and will have to wait 3 hours before it fully resets

Andrew80k 10-28-2008 03:34 PM

Ahhh, yes. Not sure what I was thinking.

cavedude 10-28-2008 03:47 PM

The best way to accomplish this is to have an invisible NPC on a timer that checks for the presence of the NPCs you want down. Obviously, you'd want to make their IDs unique from other NPCs. They can be the same as each other, however. Once it determines that they are down, you can either have it send a singal to another NPC and then depop, or stop its timer and continue on with the script itself. The one thing you don't want to use is a counter. With counters, if two NPCs go down at exactly the same time, only one will be counted. This is because Perl can only process one action at a time. For a real life example look at: #phase2_timer.pl in potimeb which checks for the existence of the phase 2 wave 1 spawns, and then sends a signal to another NPC to pop wave 2 when they are down.

trevius 10-28-2008 04:15 PM

I think this quest I submitted a while back should be useful to you:

http://www.eqemulator.net/forums/showthread.php?t=24869

It does a similar thing to what you are wanting to do. You can probably find good examples of the scripts to use from it.

joligario 10-28-2008 06:15 PM

Also, the freshly redone Trial of Mastery Berserker Epic encounter uses many signals... On PEQ of course.


All times are GMT -4. The time now is 09:30 AM.

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