View Single Post
  #1  
Old 02-13-2010, 03:54 PM
Aeolwind
Fire Beetle
 
Join Date: Nov 2003
Posts: 9
Default Day/Night Spawning issues

Running into an issue with day/night spawnings. My day mobs insta depop and my night mobs won't pop at all.

I've found it has something to do with con_value, but I have no idea what that value should actually be to make it work correctly.

Day mobs from the editor:

Code:
x: 1286.126953  	y: 3856.560303  	z: 0.488535
heading: 197.750000 	respawn: 400 	variance: 0
pathgrid: 0 	condition: 1 	cond_value: 1
version: 0 	enabled: 1
and a night mob

Code:
x: 1286.126953  	y: 3856.560303  	z: 0.488535
heading: 197.750000 	respawn: 400 	variance: 0
pathgrid: 0 	condition: 2 	cond_value: 1
version: 0 	enabled: 1
and the perl I'm using

Code:
sub EVENT_SPAWN { 

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_WAYPOINT{
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
 }
}
Reply With Quote