Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 23:18

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

Advertisement



Randomoption_Retry

Discussion on Randomoption_Retry within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2019
Posts: 130
Received Thanks: 3
Randomoption_Retry

This feature is a changing one slot of awakening.
I have a question. After adding it to my source and no errors at all.

Whenever I open the Item name Scroll of Augmentation, the APP_RANDOMOPTION is not showing up. Any hints where is it? I was thinking it is in Specitem, I get the code from Asflyff.

And specitem version is v17 and I just deleted the end of the Scroll of Augmentation to make it compatible for the specitem.

Additional Information:
Here's my specitem Augmentation line

Code:
 17	II_SYS_SCR_RANDOMOPTIONRTRY	"Scroll of Augmentation"	1	9999	IK1_SYSTEM	IK2_SYSTEM	IK3_SCROLL	=	0	1	=	4	=	=	=	=	=	=	=	0	=	=	1	=	=	1	1	=	=	=	=	_NONE	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	WUI_NOW	=	=	=	=	=	=	=	=	=	0	0	0	0	0	0	=	=	=	=	=	=	=	=	=	=	=	=	1	=	=	=	"""Itm_RandomoptionRetry-32.dds"""	0	""""""	"Test3"	1	300	0	0	1	0	0	0	1	0	2	=	=	=	=	=	=	=	=	=	=	1	1	1	1	1	0
LuciferMorningStar666 is offline  
Old 06/30/2019, 05:01   #2
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,524
Did you also add the scroll in your source? Have you checked your entry exactly? Show us your steps.
Lumi is offline  
Old 06/30/2019, 06:00   #3
 
elite*gold: 0
Join Date: Jun 2019
Posts: 130
Received Thanks: 3
Quote:
Originally Posted by Lumi View Post
Did you also add the scroll in your source? Have you checked your entry exactly? Show us your steps.
Yes, I do there is 3 places that I saw.

WndField.cpp
Code:
#ifdef __RANDOMOPTION_RETRY
					if (pFocusItem->m_dwItemId == II_SYS_SCR_RANDOMOPTIONRTRY)
					{
						SAFE_DELETE(g_WndMng.m_pWndRandomOptionRetry);
						g_WndMng.m_pWndRandomOptionRetry = new CWndRandomOptionRetry;
						g_WndMng.m_pWndRandomOptionRetry->SetItemId((CItemElem*)pFocusItem);
						g_WndMng.m_pWndRandomOptionRetry->Initialize();
						bAble = FALSE;
					}
#endif // __RANDOMOPTION_RETRY
Code:
BOOL CWndRandomOptionRetry::OnChildNotify(UINT message, UINT nID, LRESULT* pLResult)
{
	CWndButton* pWndButton = (CWndButton*)GetDlgItem(WIDC_RADIO1);
	CWndButton* pWndButton2 = (CWndButton*)GetDlgItem(WIDC_RADIO2);
	CWndButton* pWndButton3 = (CWndButton*)GetDlgItem(WIDC_RADIO3);
	CWndButton* pWndCheck = (CWndButton*)GetDlgItem(WIDC_CHECK1);;

	CItemElem* pItemElem = g_pPlayer->m_Inventory.GetAtId(II_SYS_SCR_RANDOMOPTIONRTRY);
	int nRadio = 0;
	if (pWndButton->GetCheck())
		nRadio = 1;
	else if (pWndButton2->GetCheck())
		nRadio = 2;
	else if (pWndButton3->GetCheck())
		nRadio = 3;
	switch (nID)
	{
	case WIDC_START:
		g_DPlay.SendRandomOptionRetry(m_pItemElem->m_dwObjId, m_pMaterialItem->m_dwObjId, nRadio);
		if (!pWndCheck->GetCheck())
			Destroy();
		break;

	case WIDC_CANCEL:
		Destroy();
		break;
	}
	return CWndNeuz::OnChildNotify(message, nID, pLResult);
}
DPSrvr.cpp
Code:
#ifdef __RANDOMOPTION_RETRY
void CDPSrvr::OnRandomOptionRetry(CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long)
{
	//TRY
		CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser);
	if (IsValidObj(pUser) == TRUE)
	{
		OBJID dwItemId;
		OBJID dwItemId2;
		int nRadio;
		ar >> dwItemId >> dwItemId2 >> nRadio;
		CItemElem* pItemElem = pUser->m_Inventory.GetAtId(dwItemId);
		CItemElem* pItemElem2 = pUser->m_Inventory.GetAtId(dwItemId2);
		if (IsUsableItem(pItemElem) && IsUsableItem(pItemElem2))
		{
			if (pItemElem2->GetProp()->dwID != II_SYS_SCR_RANDOMOPTIONRTRY)
				return;
PS: I tried 2 ways to open it manually, in FuncApplet.Cpp and FuncTextCmd.cpp

FuncApplet.Cpp
Code:
#ifdef __RANDOMOPTION_RETRY
DECLAREAPPLET( AppMain_RandomOption    , new CWndRandomOptionRetry );
#endif //__RANDOMOPTION_RETRY
Code:
#ifdef __RANDOMOPTION_RETRY
	AddAppletFunc( AppMain_RandomOption , APP_RANDOMOPTIONRETRY 			, _T( "WndRandomOptionRetry" ) , _T( "Icon_Applet.dds" )  , __T( "Randomoption" ),  'Z' );
#endif //__RANDOMOPTION_RETRY
But it only crashed the server.

FuncTextCmd.cpp
Code:
#ifdef __RANDOMOPTION_RETRY
BOOL TextCmd_RandomOption(CScanner & scanner)
{
#ifdef __CLIENT
	if (!g_WndMng.GetApplet(APP_RANDOMOPTIONRETRY))
		g_WndMng.CreateApplet(APP_RANDOMOPTIONRETRY);
#endif
	return TRUE;
}
#endif
Code:
#ifdef __RANDOMOPTION_RETRY
	ON_TEXTCMDFUNC(TextCmd_RandomOption, "randomoption", "randomoption", "", "", TCM_CLIENT, AUTH_GENERAL, "")
#endif
But whenever I tried to open it in the code of /randomoption it is not showing too.

If you were wondering about resdata, here the code.
Code:
APP_RANDOMOPTIONRETRY "WndTile00.tga" "" 1 352 176 0x2410000 26
{
// Title String
IDS_RESDATA_INC_009230
}
{
// ToolTip
IDS_RESDATA_INC_009231
}
{
    WTYPE_BUTTON WIDC_START "ButtNormal03.tga" 0 15 108 155 132 0x220010 0 0 0 0 0 0 0
    {
    // Title String
    IDS_RESDATA_INC_009232
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009233
    }
    WTYPE_BUTTON WIDC_CANCEL "ButtNormal03.tga" 0 165 108 305 132 0x220010 0 0 0 0 0 0 0
    {
    // Title String
    IDS_RESDATA_INC_009234
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009235
    }
    WTYPE_STATIC WIDC_PICTURE1 "LookChange01.bmp" 0 15 38 59 82 0x2220002 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_009236
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009237
    }
    WTYPE_BUTTON WIDC_RADIO1 "ButtRadio.tga" 0 70 21 299 35 0x220014 0 1 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_009238
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009239
    }
    WTYPE_BUTTON WIDC_RADIO2 "ButtRadio.tga" 0 70 52 299 66 0x220014 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_009240
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009241
    }
    WTYPE_BUTTON WIDC_RADIO3 "ButtRadio.tga" 0 70 83 299 97 0x220014 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_009242
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009243
    }
    WTYPE_BUTTON WIDC_CHECK1 "ButtCheck.tga" 1 314 113 330 129 0x220008 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_009890
    }
    {
    // ToolTip
    IDS_RESDATA_INC_009891
    }

}
Up
LuciferMorningStar666 is offline  
Reply




All times are GMT +1. The time now is 23:18.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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