Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ool CPetActor::Update(DWORD deltaTime)
- {
- bool bResult = true;
- #ifdef ENABLE_FIX_PETY
- if((this->GetSummonItemVID() != 0 && (NULL == ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID()) || ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetOwner() != this->GetOwner())))
- {
- m_pkOwner->SetQuestFlag("pet_system.pet_vnum", 0);
- m_pkOwner->SetQuestFlag("pet_item_id.pet_vnum", 0);
- this->Unsummon();
- return true;
- }
- #endif
- #ifdef ENABLE_SYSTEMY_PETY
- if (this->IsSummoned() && m_pkUpdate == 1)
- {
- long x = m_pkChar->GetX();
- long y = m_pkChar->GetY();
- if (0 != m_pkChar)
- {
- this->SetName(this->GetName());
- m_pkChar->Show(m_pkOwner->GetMapIndex(), x, y);
- m_pkUpdate = 0;
- }
- }
- #endif
- if(this->IsSummoned() && HasOption(EPetOption_Followable))
- {
- bResult = bResult && this->_UpdateFollowAI();
- }
- return bResult;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement