Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2014, 12:44 AM
rlie
Fire Beetle
 
Join Date: Nov 2010
Location: az
Posts: 8
Default 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!
Reply With Quote
  #2  
Old 06-29-2014, 01:18 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

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?
Reply With Quote
  #3  
Old 07-01-2014, 01:19 PM
rlie_0
Sarnak
 
Join Date: May 2011
Location: usa
Posts: 94
Default

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?
Reply With Quote
  #4  
Old 07-01-2014, 05:04 PM
rlie_0
Sarnak
 
Join Date: May 2011
Location: usa
Posts: 94
Default

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?
Reply With Quote
  #5  
Old 07-01-2014, 05:14 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

$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);
}
Reply With Quote
  #6  
Old 07-01-2014, 10:26 PM
rlie_0
Sarnak
 
Join Date: May 2011
Location: usa
Posts: 94
Default

Quote:
Originally Posted by Kingly_Krab View Post
$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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:07 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3