daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CPetSystem::ReSummonPet()
  2. {
  3.     if (m_pkOwner) {
  4.         for (TPetActorMap::const_iterator iter = m_petActorMap.begin(); iter != m_petActorMap.end(); ++iter)
  5.         {
  6.             CPetActor* petActor = iter->second;
  7.  
  8.             if (0 != petActor && petActor->IsSummoned()) {
  9.                 petActor->Unsummon();
  10.             }
  11.         }
  12.  
  13.         int model = GetPetModel();
  14.         const char * pet_name = GetOrgName();
  15.         char pname[CHARACTER_NAME_MAX_LEN + 1];
  16.         snprintf(pname, sizeof(pname), "%s (%s)", pet_name, m_pkOwner->GetName());
  17.         Summon(model, NULL, pname, false, m_pkOwner->GetQuestFlag("pet_system.lv")+1);
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top