View Single Post
  #2  
Old 10-13-2020, 09:28 AM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

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.
Reply With Quote