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! |
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.
|
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?
|
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? |
$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 { |
Quote:
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.