- Joined
- Apr 28, 2011
- Messages
- 38
- Reaction score
- 8
Hi is my first Post
First in Source
And Remplace for
[/CODE]
Ok now in Resource
now open textClient.inc and add
And finally open textClient.txt.txt and add
[/CODE]
Congratulation! you now have auto make perin in yours flyff any question comment in post and Sorry for my bad english
Credits by Yakuzai
First in Source
Code:
Firts Open User.cpp and Search
[CODE]void CUser::AddGoldText( int nPlus )
{
char szPlus[64];
char szGold[64];
sprintf( szPlus, "%d", nPlus );
sprintf( szGold, "%d", GetGold() );
CString strPlus = GetNumberFormatEx( szPlus );
CString strGold = GetNumberFormatEx( szGold );
AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold );
}
And Remplace for
Code:
void CUser::AddGoldText( int nPlus )
{
char szPlus[64];
char szGold[64];
sprintf( szPlus, "%d", nPlus );
sprintf( szGold, "%d", GetGold() );
CString strPlus = GetNumberFormatEx( szPlus );
CString strGold = GetNumberFormatEx( szGold );
if( GetGold() > 2100000000 && this->m_Inventory.GetEmptyCount() == 0 && CMover::GetPerinNum() > 0 )
{
CItemElem pItem;
pItem.m_nItemNum = CMover::GetPerinNum() + 21;
pItem.m_bCharged = TRUE;
pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN;
BYTE nID;
CMover::RemovePerin( CMover::GetPerinNum() );
CreateItem( &pItem, &nID );
AddGold( -2100000000 );
AddDefinedText( TID_GAME_MAKEPERIN );
}
else if (GetGold() > 2100000000 && this->m_Inventory.GetEmptyCount() > 0 && CMover::GetPerinNum() == 0)
{
CItemElem pItem;
pItem.m_nItemNum = 21;
pItem.m_bCharged = TRUE;
pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN;
BYTE nID;
CreateItem( &pItem, &nID );
AddGold( -2100000000 );
AddDefinedText( TID_GAME_MAKEPERIN );
}
else if (GetGold() > 2100000000 && this->m_Inventory.GetEmptyCount() > 0 && CMover::GetPerinNum() > 1)
{
CItemElem pItem;
pItem.m_nItemNum = 21;
pItem.m_bCharged = TRUE;
pItem.m_dwItemId = II_SYS_SYS_SCR_PERIN;
BYTE nID;
CreateItem( &pItem, &nID );
AddGold( -2100000000 );
AddDefinedText( TID_GAME_MAKEPERIN );
}
else if (GetGold() > 2100000000 && this->m_Inventory.GetEmptyCount() == 0 && CMover::GetPerinNum() == 0)
{
AddDefinedText( TID_GAME_MAKEPERIN_FAILURE );
}
AddDefinedText( TID_GAME_REAPMONEY, "%s %s", strPlus, strGold );
}
Ok now in Resource
Code:
First Open definetext.h and add
[CODE]#define TID_GAME_MAKEPERIN 4702
#define TID_GAME_MAKEPERIN_FAILURE 4703
Code:
TID_GAME_MAKEPERIN 0xffbb00
{
IDS_TEXTCLIENT_INC_100000
}
TID_GAME_MAKEPERIN_FAILURE 0xff0000
{
IDS_TEXTCLIENT_INC_100001
}
Code:
IDS_TEXTCLIENT_INC_100000 21 perins have been created, penya has been reduced of your money.
IDS_TEXTCLIENT_INC_100001 the perins not been able to create, Please check your inventory / Penya deducted when your inventory, place, or perin´s stack is available. There is a output message when the Perins were created, or a (red) output message when there is no room in the inventory
Congratulation! you now have auto make perin in yours flyff any question comment in post and Sorry for my bad english
Credits by Yakuzai
Attachments
You must be registered for see attachments list
Last edited: