Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 07:15

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

Advertisement



[Question] Item Awakening Database Entry

Discussion on [Question] Item Awakening Database Entry within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2016
Posts: 20
Received Thanks: 3
[Question] Item Awakening Database Entry

Hey guys, I'm currently creating an inventory viewer using PHP, I'm able to get the following details: Item ID, Element Type, Element +, Upgrade +, Piercing and Piercing Cards. However, I can't find the awakes on the Database, may I know where it is saved? Thank you.
deleonrenz024 is offline  
Old 05/17/2020, 14:35   #2
 
Naltalah's Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 308
Received Thanks: 372
The awake is in the usual Item String, it's this big *** 64 bit Integer.

There used to be a released PHP script to convert these into readable awakes again, but it got removed.

I guess you could take a look at how flyff does it and try to code it yourself in PHP.

Code:
BOOL	CRandomOptionProperty::GetParam( __int64 nRandomOptItemId, int i, int* pnDst, int* pnAdj )
{
	if( i >= MAX_RANDOM_OPTION )
		return FALSE;

	int nRandomOption	= static_cast<int>( nRandomOptItemId >> ( 8 + i * 18 ) );
	*pnAdj	= nRandomOption & 0x000001FF;
	if( nRandomOption & 0x00000200 )
		*pnAdj	= -*pnAdj;
	nRandomOption	= nRandomOption >> 10;

	*pnDst	= nRandomOption & 0x0000007F;

	return ( *pnDst > 0 );
}

int CRandomOptionProperty::GetRandomOptionSize( __int64 nRandomOptItemId )
{
	int nSize	= 0;


	bool	bCheckedSafeFlag = false;
	bCheckedSafeFlag	= IsCheckedSafeFlag( nRandomOptItemId );

	if( bCheckedSafeFlag == true )
	{
		return	nSize;
	}


	__int64 i	= 0x3FFFF << 8;
	for( int j = 0; j < MAX_RANDOM_OPTION; j++ )
	{
		if( nRandomOptItemId & i )
			nSize++;
		else
			return nSize;

		i	= i << 18;
	}

	return nSize;
}
To look into deeper, check any randomoption.cpp file.
Naltalah is offline  
Thanks
1 User
Old 05/19/2020, 11:37   #3

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
ZeroTwo02 is offline  
Old 05/26/2020, 13:25   #4
 
elite*gold: 0
Join Date: Aug 2016
Posts: 20
Received Thanks: 3
dang man, thanks for real. was struggling a lot here. But I will try to learn how does the game handles this.
deleonrenz024 is offline  
Reply


Similar Threads Similar Threads
[Help] Awakening in Database
01/19/2012 - Flyff Private Server - 1 Replies
Where can I find awakening in Database I need to recover my character er with awakes. I recover Inventory but I cant finds awakening



All times are GMT +1. The time now is 07:15.


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.