View Single Post
  #6  
Old 04-29-2015, 11:49 AM
JimB_1958
Sarnak
 
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
Default

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.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote