EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Changing respawn times for Vex Thal (https://www.eqemulator.org/forums/showthread.php?t=42030)

Dig 08-12-2018 02:01 PM

Changing respawn times for Vex Thal
 
I am trying to change the respawn time of AHR and the rest of Vex Thal from 7 days to 3 days. I have looked through the NPC_Types database in HeidiSQL and have found Aten Ha Ra as id 158096, but I don't see anything that looks like it would affect respawn time. Am I looking in the wrong place?

dagulus2 08-12-2018 04:08 PM

Normally respawn time is stored in the spawn2 table.

The npc_id is linked to the spawn2 information in the spawnentry table.

In my version of the PEQ database, npc id 158096 never spawns directly, so is probably spawned by a script. The other version of Aten Ha Ra (ID: 158006) is in spawn group 17794 - however, that group also seems to never spawn naturally.

Therefore for this mob, I assume you need to be looking at the scripts in the vexthal folder.

atrayas 08-12-2018 04:14 PM

IIRC every boss in this instance has a scripted respawn. Check your quest files and see if you find anything there.

Dig 08-12-2018 05:34 PM

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");
}


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

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