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?
|