Kirito 2 Posted September 7, 2016 Share Posted September 7, 2016 guys do anyone know how to edit the max level for new pet system i use 120 as the max level for player but pet can evolution to level higher than 120 how can i stop that or control the max level for new pet thanks for your help Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1196 Posted September 8, 2016 Active+ Member Share Posted September 8, 2016 For luzzo pet system - [ File: /Src/game/char_battle.cpp ] #1.) Search: #ifdef NEW_PET_SYSTEM if (to->GetNewPetSystem()) { if (to->GetNewPetSystem()->IsActivePet() && to->GetNewPetSystem()->GetLevelStep() < 4) { int tmpexp = iExp * 9 / 20; iExp = iExp - tmpexp; to->GetNewPetSystem()->SetExp(tmpexp, 0); } } #endif #2.) Replace with: #ifdef NEW_PET_SYSTEM if (to->GetNewPetSystem()) { if (to->GetNewPetSystem()->GetLevel() < 120) { if (to->GetNewPetSystem()->IsActivePet() && to->GetNewPetSystem()->GetLevelStep() < 4) { int tmpexp = iExp * 9 / 20; iExp = iExp - tmpexp; to->GetNewPetSystem()->SetExp(tmpexp, 0); } } } #endif - [ File: /Src/game/New_PetSystem.cpp ] #1.) Search: else if(type == 3) { if(itemxp->GetType() == 1 || itemxp->GetType() == 2) { SetExp(itemxp->GetShopBuyPrice() / 2, 1); ITEM_MANAGER::instance().RemoveItem(itemxp); } } #2.) Replace with: else if(type == 3) { if (GetLevel() < 120) { if(itemxp->GetType() == 1 || itemxp->GetType() == 2) { SetExp(itemxp->GetShopBuyPrice() / 2, 1); ITEM_MANAGER::instance().RemoveItem(itemxp); } } else { m_pkOwner->ChatPacket(CHAT_TYPE_INFO, "Your pet has a maximum level."); } } 2 Link to comment Share on other sites More sharing options...
Kirito 2 Posted September 8, 2016 Author Share Posted September 8, 2016 i'll try it, thank you Edit : it works kind regards. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now