Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Search in Petsystem.cpp this:
  2. m_pkOwner->ComputePoints();
  3. this->GiveBuff();
  4. this->GiveSkillBonus();
  5.  
  6. replace with this:
  7. m_pkOwner->ComputePoints();
  8. this->GiveSkillBonus();
  9.  
  10. Search GiveBuff()
  11.  
  12. Replce with this
  13. void CPetActor::GiveBuff()
  14. {
  15. LPITEM item = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID);
  16. if(NULL != item)
  17. item->ModifyPoints(true);
  18. return;
  19. }
  20.  
  21. and in char.cpp
  22. Search this:
  23. CPetSystem* pPetSystem = GetPetSystem();
  24. if (NULL != pPetSystem)
  25. {
  26. pPetSystem->RefreshBuff();
  27. }
  28.  
  29.  
  30. and add after
  31. CNewPetSystem* zPetSystem = GetNewPetSystem();
  32. if (NULL != zPetSystem)
  33. {
  34. zPetSystem->RefreshBuff();
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement