EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Spawn check / change question. (https://www.eqemulator.org/forums/showthread.php?t=38432)

rlie 06-29-2014 12:44 AM

Spawn check / change question.
 
Ok odd question, but I havent been able to find this anywhere. Im looking for how to change spawn timers (like for all mobs) And the second part of this which might be a totally different set up but, within KC currently VS and VSR can both be up at the same time, when on live VSR can only be up 24 hours after VS has been killed. What sort of coding do i need to look at to correct this? Even if it spawns VSR with moments of killing VS its been then having both if Im trying to make a velious era server these sort of details need to be worked out.

Any help with this would be sweet thanks!

Drajor 06-29-2014 01:18 AM

Respawn time is set in the spawn2 table, respawntime. One way to spawn VSR after VS death is to use a perl script on VS.

rlie_0 07-01-2014 01:19 PM

True, I can only get it to spawn right after this death, would like to add some duration to that timer if it all possible what would I need to do to add some time to it?

rlie_0 07-01-2014 05:04 PM

So my .pl file looks like this to spawn VSR after killing VS

# Spawning Venril_Sathirs_Remains
#

my $x;
my $y;
my $z;
my $h;
my $entid1;
my $mob1;
my $mobnpc1;

sub EVENT_DEATH_COMPLETE {
$x = $npc->GetX();
$y = $npc->GetY();
$z = $npc->GetZ();
$h = $npc->GetHeading();
$entid1 = quest::spawn2(102099,0,0,$x,$y,$z,$h);
$mob1 = $entity_list->GetMobID($entid1);
$mobnpc1 = $mob1->CastToNPC();
}

# EOF zone: karnor ID: 102112 NPC: Venril_Sathir


I try to get this going in game / on server and it fails to spawn him what am I missing?

Kingly_Krab 07-01-2014 05:14 PM

$x, $y, $z, And $h are pre-defined. You also cannot use GetMobID the way you're using it, you have to be referencing a mob, not the function itself. You can just do the following:
Code:

sub EVENT_DEATH_COMPLETE {
    quest::spawn2(102099, 0, 0, $x, $y, $z, $h);
}


rlie_0 07-01-2014 10:26 PM

Quote:

Originally Posted by Kingly_Krab (Post 231651)
$x, $y, $z, And $h are pre-defined. You also cannot use GetMobID the way you're using it, you have to be referencing a mob, not the function itself. You can just do the following:
Code:

sub EVENT_DEATH_COMPLETE {
    quest::spawn2(102099, 0, 0, $x, $y, $z, $h);
}


Attempted to copy what you had, and its still failing to spawn VSR after I #dbspawn 102112 (Thats VS) then attack / #kill no VSR spawns

The hope is later down the road, I can put a delay timer on it and make its 12 to 24 hours after VS is killed VSR spawns, and if upon a server reset, VSR cant spawn while VS is up (make it like classic was when velious came out with its fix) If anyone also has information about how to add those in, let me know. The information would help greatly! Thanks!


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

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