This is the monster that spawns the other npcs
Code:
sub EVENT_SPAWN{
quest::settimer("go", 5);
quest::spawn(1412,0,0,-635,4,-10);
quest::spawn(1412,0,0,-635,11,-10);
quest::spawn(1412,0,0,-635,21,-10);
}
sub EVENT_COMBAT{
if($combat_state ==1){
quest::stop(19);
}
if ($combat_state ==0){
quest::resume(19);
}
}
sub EVENT_TIMER{
if ($timer eq "go"){
quest::start(19);
quest::stoptimer("go");
}
}
and this is the npc I am trying to get to follow the first one
Code:
sub EVENT_SPAWN {
my $OpponentID = 1411;
my $getmobbynpctype = $entity_list->GetMobByNpcTypeID($OpponentID);
my $follow_target = $getmobbynpctype->GetID();
quest::follow($follow_target);
}