Register for your free account! | Forgot your password?

You last visited: Today at 22:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Bead Slot Bug?

Discussion on Bead Slot Bug? within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2019
Posts: 47
Received Thanks: 7
Bead Slot Bug?


Anyone help me with this please? Any pro flyff developer out there.

Code:
void CItemUpgrade::RemovePetVisItem( CUser* pUser, int nPosition, BOOL bExpired )
{
	if( !IsValidObj( pUser ) )
		return;

	CItemElem* pItemElemPet = pUser->GetVisPetItem();
	if( !IsUsableItem( pItemElemPet ) )
		return;

#ifdef __FIX_0026
	if (nPosition < 0 || nPosition >= pItemElemPet->GetPiercingSize())
		return;
#endif //__FIX_0026

	DWORD dwItemId = pItemElemPet->GetPiercingItem( nPosition );
	if( dwItemId  == 0 )	// ÀÌ¹Ì ºñ¾îÀÖ´Â ½½·Ô
		return;

	pUser->ResetPetVisDST( pItemElemPet );
	if( bExpired )
		PutPetVisItemLog( pUser, "$", "VIS_REMOVE_EXPIRED", pItemElemPet, nPosition );
	else
		PutPetVisItemLog( pUser, "$", "VIS_REMOVE_BYUSER", pItemElemPet, nPosition );
	pUser->UpdateItem( (BYTE)( pItemElemPet->m_dwObjId ), UI_PETVIS_ITEM, MAKELONG( nPosition, 0 ), 0 ); // ÇØ´ç ½½·ÔÀ» ºñ¿î´Ù.
	ItemProp* pItemProp = prj.GetItemProp( dwItemId );
	if( pItemProp )
		pUser->AddDefinedText( TID_GAME_BUFFPET_REMOVEVIS, "\"%s\"", pItemProp->szName );
	pUser->SetPetVisDST( pItemElemPet );
	ChangeVisPetSfx( pUser, pItemElemPet );
}
Code:
void CMover::ProcessVisPet()
{
	if (HasActivatedVisPet())
	{
		CItemElem* pItemElem = GetVisPetItem();
		if( pItemElem )
		{
			for( int i=0; i<pItemElem->GetPiercingSize(); i++ )
			{
				if( pItemElem->GetPiercingItem( i ) != 0 && time_null() >= pItemElem->GetVisKeepTime( i ) )
				{
					ItemProp* pItemProp = prj.GetItemProp( pItemElem->GetPiercingItem( i ) );
					if( pItemProp )
						static_cast<CUser*>( this )->AddDefinedText( TID_GAME_BUFFPET_TIMEOUTVIS, "\"%s\"", pItemProp->szName );
					CItemUpgrade::GetInstance()->RemovePetVisItem( static_cast<CUser*>( this ), i, TRUE );
				}
			}
		}		
	}
}
Miracle` is offline  
Reply


Similar Threads Similar Threads
[SEARCH]Gold bug , castel bug ans speed repair bug for key bug or crystal bug
04/23/2020 - Browsergames - 3 Replies
Hi I search key or crystal bug :) I will give gold , castel and speed repair bug Please send me skype : ciechomek111
[Selling] Tiger bead, flag, ancient bead, banners, crimson dragon, wsc, lucid belt
01/20/2016 - 9Dragons Trading - 6 Replies
Hello, I am selling items on 9D GamesCampus/Webzen Yang server: bead of silver tiger 850 USD flag of chaos 750 USD blue banner excellence 250 USD ancient bead 220 USD black banner excellence 180 USD crimson dragon male deco 60 dex 120 USD wild silk clothing 100 USD



All times are GMT +1. The time now is 22:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.