Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 20:13

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

Advertisement



FLYFF V15 Source - remove destructable item

Discussion on FLYFF V15 Source - remove destructable item within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2018
Posts: 15
Received Thanks: 2
Exclamation FLYFF V15 Source - remove destructable item

Hello guys,

Where can I find the function for destroying items or a function or variable, which is setting +3 for destruction of items, in the source code?

I want, that i can upgrade e.g. weapons up to +10 without using sprotects and the weapons should not be destroyable while upgrading above +3.

Have a nice weekend!
jarovart is offline  
Old 09/27/2019, 19:13   #2

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
Weapon/Armor Upgrade -> ItemUpgrade.cpp -> CItemUpgrade::EnchantGeneral

Change ->

Code:
			if( !bSmelprot )
			{
#ifdef __SM_ITEM_2ND_EX
				if( bSmelprot2 )
				{
					pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_AO,  pItemMain->GetAbilityOption() - 1 );
					aLogItem.Action = "9";
					g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
				}
				else
#endif	// __SM_ITEM_2ND_EX
				{
					aLogItem.Action = "L";
					g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
					pUser->RemoveItem( (BYTE)( pItemMain->m_dwObjId ), (short)1 );
				}
			}
To ->

Code:
#ifdef __SM_ITEM_2ND_EX
				if( !bSmelprot && bSmelprot2 )
				{
					pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_AO,  pItemMain->GetAbilityOption() - 1 );
					aLogItem.Action = "9";
					g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
				}
Accessory Upgrade -> ItemUpgrade.cpp -> CItemUpgrade::RefineAccessory

Delete ->
Code:
		if( !bSmelprot )
		{
			if( pItemMain->GetAbilityOption() >= 3 )		// »èÁ¦
			{
				aLogItem.Action	= "L";
				g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
				pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_NUM, 0 );
			}
		}
Elementalisation Upgrade on Weapon/Armor -> ItemUpgrade.cpp -> CItemUpgrade::EnchantAttribute

Change ->

Code:
			if( !bSmelprot )
			{
#ifdef __SM_ITEM_2ND_EX
				if( bSmelprot2  )
				{
					pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_RAO, pItemMain->m_nResistAbilityOption - 1 );
					aLogItem.Action = "8";
					g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
				}
				else
#endif	// __SM_ITEM_2ND_EX
				{
					aLogItem.Action = "L";
					g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
					pUser->RemoveItem( (BYTE)( pItemMain->m_dwObjId ), (short)1 );
				}
			}
To ->

Code:
				if( !bSmelprot && bSmelprot2  )
				{
					pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_RAO, pItemMain->m_nResistAbilityOption - 1 );
					aLogItem.Action = "8";
					g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
				}
ZeroTwo02 is offline  
Thanks
1 User
Old 09/28/2019, 06:03   #3
 
elite*gold: 0
Join Date: Feb 2018
Posts: 15
Received Thanks: 2
thanks, do you know, where can I change the duration of upgrading?

Edit:
Your changes works, btw there are still a warning window popping up, if I am upgrading an item above +3. I couldnt find this eventfunction, which calls this pop up. where it will be triggered?
jarovart is offline  
Old 09/28/2019, 08:26   #4

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
Quote:
Originally Posted by jarovart View Post
thanks, do you know, where can I change the duration of upgrading?

Edit:
Your changes works, btw there are still a warning window popping up, if I am upgrading an item above +3. I couldnt find this eventfunction, which calls this pop up. where it will be triggered?
To change the duration of upgrade, change in WndField.cpp ->
Code:
m_dwEnchantWaitTime		= g_tmCurrent + SEC(4);
About the pop up, you should look into WndItemCtrl.cpp, function "CWndItemCtrl::OnLButtonDown" and WndField.cpp, function "CWndSmeltSafetyConfirm::OnInitialUpdate()".
ZeroTwo02 is offline  
Thanks
1 User
Old 09/28/2019, 12:26   #5
 
elite*gold: 0
Join Date: Feb 2018
Posts: 15
Received Thanks: 2
Quote:
Originally Posted by ZeroTwo02 View Post
To change the duration of upgrade, change in WndField.cpp ->
Code:
m_dwEnchantWaitTime		= g_tmCurrent + SEC(4);
About the pop up, you should look into WndItemCtrl.cpp, function "CWndItemCtrl::OnLButtonDown" and WndField.cpp, function "CWndSmeltSafetyConfirm::OnInitialUpdate()".

how do you know so many about this source code? Is there somewhere a documentation, which I do not know about? I mean, this source code has not only few lines and it was written very dirty. Its obvious, that the flyff developer do not want that foreign developer understand it...

BTW, I want to awake an setpart several times with scroll of awakening without using scroll of cancel awakening, like cs setparts with scroll of blessing. Where can I find the source code, which blocks to awake again an already awakened setpart ?

And thank you for your help!
jarovart is offline  
Old 09/28/2019, 14:15   #6

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
Quote:
Originally Posted by jarovart View Post
how do you know so many about this source code? Is there somewhere a documentation, which I do not know about? I mean, this source code has not only few lines and it was written very dirty. Its obvious, that the flyff developer do not want that foreign developer understand it...

BTW, I want to awake an setpart several times with scroll of awakening without using scroll of cancel awakening, like cs setparts with scroll of blessing. Where can I find the source code, which blocks to awake again an already awakened setpart ?

And thank you for your help!
DPSrvr.cpp, function "CDPSrvr:oUseItemTarget_GenRandomOption"

Remove ->

Code:
	if( 
#if __VER >= 12 // __J12_0
		// ¿©½ÅÀÇ Ãູ°ú ¸ÔÆê °¢¼ºÀº °¢¼º Ãë¼Ò ¾øÀÌ µ¤¾î ¾µ ¼ö ÀÖ°Ô ÇÑ´Ù
		nKind != CRandomOptionProperty::eBlessing && nKind != CRandomOptionProperty::eEatPet &&
#endif	// __J12_0
		g_xRandomOptionProperty->GetRandomOptionSize( pTarget->GetRandomOptItemId() ) > 0
	)
	{
		pUser->AddDefinedText( nHasOption );
		return FALSE;
	}
ZeroTwo02 is offline  
Thanks
1 User
Reply

Tags
destructable, flyff, items, protect, source code


Similar Threads Similar Threads
[Request Help] Remove mobs / remove eur items / remove npc
02/15/2013 - SRO Private Server - 0 Replies
Iam sure all now saies this guy is mad :D why not remove the db i want to know how i can remove mobs from samrkand and add alex mobs there and remove eur item from npc and drobs and remove some npcs ty guys _________________________ I see that there is too much help here it's my topic no.2 without any answer



All times are GMT +1. The time now is 20:13.


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.