|
You last visited: Today at 20:13
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.
09/27/2019, 10:10
|
#1
|
elite*gold: 0
Join Date: Feb 2018
Posts: 15
Received Thanks: 2
|
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!
|
|
|
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 );
}
|
|
|
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?
|
|
|
09/28/2019, 08:26
|
#4
|
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
|
Quote:
Originally Posted by jarovart
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()".
|
|
|
09/28/2019, 12:26
|
#5
|
elite*gold: 0
Join Date: Feb 2018
Posts: 15
Received Thanks: 2
|
Quote:
Originally Posted by ZeroTwo02
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!
|
|
|
09/28/2019, 14:15
|
#6
|
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
|
Quote:
Originally Posted by jarovart
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;
}
|
|
|
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.
|
|