View Single Post
  #4  
Old 08-12-2018, 05:34 PM
Dig
Fire Beetle
 
Join Date: Mar 2018
Location: Here
Posts: 2
Default

dagulas2 and atrayas, thank you for pointing me to the quests folder. I see there are scripts for #Aten_Ha_Ra, #Aten_Ha_Ra_, and #Aten_Trigger. The first two scripts mention a $spawntime of 6480 with a random variance of up to 720. What units are these values in? The variance of 720 seems like it would be minutes, because that lines up with the 12-hour variance that seems to be well established. However, the spawntime of 6480 does not make sense as minutes, as this would put the respawn interval at around 4.5 days, not the 7 that it seems to be running.

Quote:
sub EVENT_SPAWN {
quest::settimer("atenha",1);
}


sub EVENT_TIMER {
if ($timer eq "atenha") {
if(defined $qglobals{aten}) {
quest::stoptimer("atenha");
quest::depop_withtimer();
$qglobals{aten} = undef;
}
}
}


sub EVENT_DEATH_COMPLETE {
my $variance = int(rand(720));
my $spawntime = 6480 + $variance;
quest::setglobal("aten",1,3,"M$spawntime");
}
Reply With Quote