|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum) |
06-29-2014, 12:44 AM
|
Fire Beetle
|
|
Join Date: Nov 2010
Location: az
Posts: 8
|
|
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!
|
06-29-2014, 01:18 AM
|
|
Developer
|
|
Join Date: Nov 2012
Location: Halas
Posts: 355
|
|
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.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
|
07-01-2014, 01:19 PM
|
Sarnak
|
|
Join Date: May 2011
Location: usa
Posts: 94
|
|
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?
|
07-01-2014, 05:04 PM
|
Sarnak
|
|
Join Date: May 2011
Location: usa
Posts: 94
|
|
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?
|
07-01-2014, 05:14 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,594
|
|
$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);
}
|
07-01-2014, 10:26 PM
|
Sarnak
|
|
Join Date: May 2011
Location: usa
Posts: 94
|
|
Quote:
Originally Posted by Kingly_Krab
$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!
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 12:25 AM.
|
|
|
|
|
|
|
|
|
|
|
|
|