Jump to content

max level for new pet system


Recommended Posts

  • Active+ Member

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.");	
				}
			}

 

  • Love 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.