|
You last visited: Today at 19:22
Advertisement
ACCESSORY UPGRADE PROBLEM
Discussion on ACCESSORY UPGRADE PROBLEM within the Flyff Private Server forum part of the Flyff category.
10/20/2016, 16:50
|
#1
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
ACCESSORY UPGRADE PROBLEM
Can anyone help me with my problem? I have tested my server and everything is perfectly working except the Accessory Upgrade, when i try to use the Safe Accessory Upgrade i can't get any success it always give me Failure. Please help me  Thanks in advance ppl
|
|
|
10/23/2016, 03:07
|
#2
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 218
|
ItemUpgrade.cpp
|
|
|
10/23/2016, 08:29
|
#3
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
What do you mean? -JB
|
|
|
10/24/2016, 13:32
|
#4
|
elite*gold: 0
Join Date: Mar 2012
Posts: 2
Received Thanks: 0
|
open "s.txt" and change accessory_probability to 10000 for 100% accessory upgrade
also there are the collecting rates/items / growpet stats and life from the pets pet energy
|
|
|
10/25/2016, 13:57
|
#5
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
Still the same :/
|
|
|
10/25/2016, 15:45
|
#6
|
elite*gold: 0
Join Date: Jan 2012
Posts: 147
Received Thanks: 24
|
Does the problem even occur before the accessory is +3?
|
|
|
10/26/2016, 04:41
|
#7
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
Nope, it occurs in +1.
|
|
|
10/26/2016, 09:43
|
#8
|
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
|
ItemUpgrade.cpp
void CItemUpgrade::RefineAccessory( CUser* pUser, CItemElem* pItemMain, CItemElem* pItemMaterial )
Check if there is something out of the order.
This is mine script
Code:
void CItemUpgrade::RefineAccessory( CUser* pUser, CItemElem* pItemMain, CItemElem* pItemMaterial )
{
// Àç·á°¡ ¹®½ºÅæÀΰ¡?
if( pItemMaterial->GetProp()->dwID != II_GEN_MAT_MOONSTONE && pItemMaterial->GetProp()->dwID != II_GEN_MAT_MOONSTONE_1 )
{
pUser->AddDefinedText( TID_GAME_NOTEQUALITEM );
return;
}
if( pItemMain->GetAbilityOption() >= MAX_AAO ) // 20
{
pUser->AddDefinedText( TID_GAME_ACCESSORY_MAX_AAO );
return;
}
// log
LogItemInfo aLogItem;
aLogItem.SendName = pUser->GetName();
aLogItem.RecvName = "UPGRADEITEM";
aLogItem.WorldId = pUser->GetWorld()->GetID();
aLogItem.Gold = pUser->GetGold();
aLogItem.Gold2 = pUser->GetGold();
DWORD dwProbability = CAccessoryProperty::GetInstance()->GetProbability( pItemMain->GetAbilityOption() );
// ¾×¼¼¼*¸® º¸È£ÀÇ µÎ·ç¸¶¸®
BOOL bSmelprot = FALSE;
if( pUser->HasBuff( BUFF_ITEM, II_SYS_SYS_SCR_SMELPROT4 ) )
{
bSmelprot = TRUE;
pUser->RemoveBuff( BUFF_ITEM, II_SYS_SYS_SCR_SMELPROT4 );
ItemProp* pItemProp = prj.GetItemProp( II_SYS_SYS_SCR_SMELPROT4 );
if( pItemProp )
g_dpDBClient.SendLogSMItemUse( "2", pUser, NULL, pItemProp );
}
if( xRandom( 10000 ) < dwProbability ) // ¼º°ø
{
pUser->AddDefinedText( TID_UPGRADE_SUCCEEFUL );
pUser->AddPlaySound( SND_INF_UPGRADESUCCESS );
if( pUser->IsMode( TRANSPARENT_MODE ) == 0)
g_UserMng.AddCreateSfxObj( (CMover *)pUser, XI_INT_SUCCESS, pUser->GetPos().x, pUser->GetPos().y, pUser->GetPos().z);
pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_AO, pItemMain->GetAbilityOption()+1 );
aLogItem.Action = "H";
g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
}
else // ½ÇÆÐ
{
pUser->AddDefinedText( TID_UPGRADE_FAIL );
pUser->AddPlaySound( SND_INF_UPGRADEFAIL );
if( pUser->IsMode( TRANSPARENT_MODE ) == 0 )
g_UserMng.AddCreateSfxObj( (CMover *)pUser, XI_INT_FAIL, pUser->GetPos().x, pUser->GetPos().y, pUser->GetPos().z );
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 );
}
}
}
aLogItem.Action = "N";
g_DPSrvr.OnLogItem( aLogItem, pItemMaterial, pItemMaterial->m_nItemNum );
pUser->UpdateItem( (BYTE)pItemMaterial->m_dwObjId, UI_NUM, pItemMaterial->m_nItemNum - 1 );
}
Compare it to yours.
|
|
|
10/27/2016, 13:43
|
#9
|
elite*gold: 0
Join Date: Dec 2013
Posts: 245
Received Thanks: 28
|
Quote:
Originally Posted by raventh1984
ItemUpgrade.cpp
void CItemUpgrade::RefineAccessory( CUser* pUser, CItemElem* pItemMain, CItemElem* pItemMaterial )
Check if there is something out of the order.
This is mine script
Code:
void CItemUpgrade::RefineAccessory( CUser* pUser, CItemElem* pItemMain, CItemElem* pItemMaterial )
{
// Àç·á°¡ ¹®½ºÅæÀΰ¡?
if( pItemMaterial->GetProp()->dwID != II_GEN_MAT_MOONSTONE && pItemMaterial->GetProp()->dwID != II_GEN_MAT_MOONSTONE_1 )
{
pUser->AddDefinedText( TID_GAME_NOTEQUALITEM );
return;
}
if( pItemMain->GetAbilityOption() >= MAX_AAO ) // 20
{
pUser->AddDefinedText( TID_GAME_ACCESSORY_MAX_AAO );
return;
}
// log
LogItemInfo aLogItem;
aLogItem.SendName = pUser->GetName();
aLogItem.RecvName = "UPGRADEITEM";
aLogItem.WorldId = pUser->GetWorld()->GetID();
aLogItem.Gold = pUser->GetGold();
aLogItem.Gold2 = pUser->GetGold();
DWORD dwProbability = CAccessoryProperty::GetInstance()->GetProbability( pItemMain->GetAbilityOption() );
// ¾×¼¼¼*¸® º¸È£ÀÇ µÎ·ç¸¶¸®
BOOL bSmelprot = FALSE;
if( pUser->HasBuff( BUFF_ITEM, II_SYS_SYS_SCR_SMELPROT4 ) )
{
bSmelprot = TRUE;
pUser->RemoveBuff( BUFF_ITEM, II_SYS_SYS_SCR_SMELPROT4 );
ItemProp* pItemProp = prj.GetItemProp( II_SYS_SYS_SCR_SMELPROT4 );
if( pItemProp )
g_dpDBClient.SendLogSMItemUse( "2", pUser, NULL, pItemProp );
}
if( xRandom( 10000 ) < dwProbability ) // ¼º°ø
{
pUser->AddDefinedText( TID_UPGRADE_SUCCEEFUL );
pUser->AddPlaySound( SND_INF_UPGRADESUCCESS );
if( pUser->IsMode( TRANSPARENT_MODE ) == 0)
g_UserMng.AddCreateSfxObj( (CMover *)pUser, XI_INT_SUCCESS, pUser->GetPos().x, pUser->GetPos().y, pUser->GetPos().z);
pUser->UpdateItem( (BYTE)pItemMain->m_dwObjId, UI_AO, pItemMain->GetAbilityOption()+1 );
aLogItem.Action = "H";
g_DPSrvr.OnLogItem( aLogItem, pItemMain, pItemMain->m_nItemNum );
}
else // ½ÇÆÐ
{
pUser->AddDefinedText( TID_UPGRADE_FAIL );
pUser->AddPlaySound( SND_INF_UPGRADEFAIL );
if( pUser->IsMode( TRANSPARENT_MODE ) == 0 )
g_UserMng.AddCreateSfxObj( (CMover *)pUser, XI_INT_FAIL, pUser->GetPos().x, pUser->GetPos().y, pUser->GetPos().z );
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 );
}
}
}
aLogItem.Action = "N";
g_DPSrvr.OnLogItem( aLogItem, pItemMaterial, pItemMaterial->m_nItemNum );
pUser->UpdateItem( (BYTE)pItemMaterial->m_dwObjId, UI_NUM, pItemMaterial->m_nItemNum - 1 );
}
Compare it to yours.
|
We have the same script. Can you send me your moonstone script? Thanks in advance.
|
|
|
10/27/2016, 15:16
|
#10
|
elite*gold: 0
Join Date: Jan 2012
Posts: 147
Received Thanks: 24
|
Well just to mention its always good to have a clean v15 source somewhere to compare things, and no I dont mean the *Clean V15* in the offi files index its definitely not clean lol
|
|
|
Similar Threads
|
problem in upgrade lvl up
06/05/2016 - SRO Private Server - 0 Replies
Off
|
Problem With Upgrade >> 5700
03/16/2013 - CO2 Private Server - 30 Replies
hey
I Upgrade My source to 5700 :handsdown:
but i have some problem
1- In Monsters when i go to TC The game shut Exactly.. :rtfm:
2- when i hit Monsters In Other City Like Desert with magic spell like tornado i didn't see the numbers of hits :rolleyes:
Iwant to Know What Is the Problem Any One Help!!:(
|
Problem With Upgrade 5707
03/15/2013 - CO2 Private Server - 0 Replies
hello everyone
i have Problem With Upgrade 5707
i need Upgrade 5707 Equipment.cs
please help me
why not help me
no need anything thx all i coded the packet
|
All times are GMT +1. The time now is 19:22.
|
|