Jump to content

SUCKS BUGG WITH BONUS ON PET


Recommended Posts

Just now, Marggraf said:

The problem is not in python 99%

I already explained above, you just need to refresh bonuses :)

 

void CPetActor::GiveBuff()
{
	LPITEM item = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID);

	if(NULL != item)
	{
		item->ModifyPoints(true);
	}
	return;
}
//////////////////////////////////////////
void CPetActor::ClearBuff()
{
	if(NULL == m_pkOwner)
	{
		return ;
	}

	TItemTable *item_proto = ITEM_MANAGER::instance().GetTable(m_dwSummonItemVnum);

	if(NULL == item_proto)
	{
		return;
	}

	for(int i = 0; i < ITEM_APPLY_MAX_NUM; i++)
	{
		if(item_proto->aApplies[i].bType == APPLY_NONE)
		{
			continue;
		}

		m_pkOwner->ApplyPoint(item_proto->aApplies[i].bType, -item_proto->aApplies[i].lValue);
	}

	return;
}

These two functions need to be changed.

  • Love 1
Link to comment
Share on other sites

2 hours ago, Ikh said:

I already explained above, you just need to refresh bonuses :)

 


void CPetActor::GiveBuff()
{
	LPITEM item = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID);

	if(NULL != item)
	{
		item->ModifyPoints(true);
	}
	return;
}
//////////////////////////////////////////
void CPetActor::ClearBuff()
{
	if(NULL == m_pkOwner)
	{
		return ;
	}

	TItemTable *item_proto = ITEM_MANAGER::instance().GetTable(m_dwSummonItemVnum);

	if(NULL == item_proto)
	{
		return;
	}

	for(int i = 0; i < ITEM_APPLY_MAX_NUM; i++)
	{
		if(item_proto->aApplies[i].bType == APPLY_NONE)
		{
			continue;
		}

		m_pkOwner->ApplyPoint(item_proto->aApplies[i].bType, -item_proto->aApplies[i].lValue);
	}

	return;
}

These two functions need to be changed.

I love you man..Thank you

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



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.