Could I do something like this?
Code:
sub EVENT_SPAWN {
#:: Match BLpet70 (528)
if ($mob->GetNPCTypeID() == 528) {
#:: Create a scalar variable to store the pet owner's entity list ID
my $PetOwner = $entity_list->GetClientByID($npc->GetOwnerID());
#:: Match owner race 1 - Human
if ($PetOwner->GetRace() == 1) {
#:: Set race 22 - Beetle
$npc->SetRace(22);
}
#:: Etc.
}
#:: Etc.
}
This doesn't seem to work. I get the wolf every time still.