Well... I thought it would be easier yet to have client just signal the pet on zone change...
Code:
sub EVENT_ENTERZONE {
my $pet_id = $client->GetPetID();
if ($pet_id) {
quest::settimer($pet_id, 3);
}
}
sub EVENT_TIMER {
quest::stoptimer($timer);
$pet = $entity_list->GetNPCByID($timer);
quest::signalwith($pet,0,1);
$client->Message(15,"Petid is $pet");
}
Pet never gets the message. The client message tells me that $pet = SCALAR(04X...) or something of that nature.
Still lost at this point.