EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   spawn_conditions (https://www.eqemulator.org/forums/showthread.php?t=28721)

provocating 06-29-2009 06:05 PM

spawn_conditions
 
What sets the spawn condition in Kithicor forest from night to day mobs ? I looked in spawn_events and that does not appear to be it. I am interested in changing some of my zones to different mobs during certain events. I also notice Kithicor appears to have three different sets of mobs {0,1,2}.

trevius 06-29-2009 09:17 PM

Here are some related pages from the wiki that might help:


http://www.eqemulator.net/wiki/wikka...pawnconditions

http://www.eqemulator.net/wiki/wikka...emaspawnevents

http://www.eqemulator.net/wiki/wikka...DBSchemaspawn2

provocating 06-29-2009 11:21 PM

Okay I played with the DB some tonight but I am still confused on one thing. Why is spawn_events only containing two entries and they are not for Kithicor, how do the mobs change from day / night ?

cavedude 06-30-2009 12:26 AM

The change over is done in Perl since spawn_events hasn't ever worked right.

ChaosSlayerZ 10-29-2009 04:33 PM

Quote:

Originally Posted by cavedude (Post 173151)
The change over is done in Perl since spawn_events hasn't ever worked right.

Cavedude, could you post detailed guide how to create day/night spawn alternation with perl, please?

nightsta69 10-29-2009 10:00 PM

just rummaging through the quest folder for kith, and found this in 20250.pl. looks likes its based off an NPC spawning

Code:

# kithicor night and day checker
#Angelox's reasoning :)

sub EVENT_SPAWN {
quest::settimer("kithdaynight",10);
if ($zonetime < 800 || $zonetime > 1999) {
        quest::spawn_condition($zonesn, 2,0); #live are 2
        quest::spawn_condition($zonesn, 1,1); #undead are 1
}
else {
        quest::spawn_condition($zonesn,2,1); #live are 2
        quest::spawn_condition($zonesn,1,0); #undead are 1
}
 }

sub EVENT_TIMER {
if ($zonetime < 800 || $zonetime > 1999) {
        quest::spawn_condition($zonesn, 2,0); #live are 2
        quest::spawn_condition($zonesn, 1,1); #undead are 1
}
else {
        quest::spawn_condition($zonesn,2,1); #live are 2
        quest::spawn_condition($zonesn,1,0); #undead are 1
}
 }


ChaosSlayerZ 10-29-2009 11:36 PM

ok so it sets spawn_condition based on time, but how this connected to the npcs in the DB? What and how they need to be set to correspond properly to day or night time?

Shin Noir 10-30-2009 12:33 AM

it is inside spawn2
select id, spawngroupid, zone, _condition, cond_value from spawn2 where _condition> 0;

spawns get set to a _condition and if that _condition and value match up, it spawns accordingly.


All times are GMT -4. The time now is 04:07 PM.

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