|
You last visited: Today at 20:08
Advertisement
(Release) Lock item
Discussion on (Release) Lock item within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.
02/16/2022, 12:00
|
#16
|
elite*gold: 0
Join Date: Oct 2019
Posts: 47
Received Thanks: 7
|
Quote:
Originally Posted by Hikari Kuina
for you error CItemElem::SetFlag here's the solution
void SetFlag(BYTE byFlag, BOOL bEnable = TRUE) { if (bEnable) m_byFlag |= byFlag; else m_byFlag &= ~byFlag; }
It was posted up you have to read the article.
For the error AddDefinedText identifier not found
User.cpp
Add
Above of void CUser::AddChatText ( int dwText, LPCSTR lpszFormat, ... )
Void CUser::AddDefinedText ( int dwText, LPCSTR lpszFormat, ... )
{
if( IsDelete () ) return;
TCHAR szBuffer[1024];
va_list args;
va_start ( args, lpszFormat );
int nBuf = _vsntprintf ( szBuffer, sizeof ( szBuffer ) - 1, lpszFormat, args );
va_end ( args );
if( nBuf < 0 )
return;
m_Snapshot.cb++;
m_Snapshot.ar << GetId ();
m_Snapshot.ar << SNAPSHOTTYPE_DEFINEDTEXT;
m_Snapshot.ar << dwText;
m_Snapshot.ar.WriteString ( szBuffer );
}
on User.h
Add
void AddDefinedText( int dwText, LPCSTR lpszFormat, ... );
Above of void AddChatText( int dwText, LPCSTR lpszFormat, ... );
For the Lockitem is not a member of CUser
Place this on your User.h
#ifdef __LOCK_ITEM
BOOL LockItem(CItemElem* pItemElem, BOOL bLock = TRUE);
#endif // __LOCK_ITEM
Above of
BOOL IsValid();
|
void SetFlag(BYTE byFlag, BOOL bEnable = TRUE) { if (bEnable) m_byFlag |= byFlag; else m_byFlag &= ~byFlag; }
Where do i put this code?
|
|
|
02/16/2022, 17:58
|
#17
|
elite*gold: 0
Join Date: Jul 2018
Posts: 224
Received Thanks: 46
|
Quote:
Originally Posted by Miracle`
void SetFlag(BYTE byFlag, BOOL bEnable = TRUE) { if (bEnable) m_byFlag |= byFlag; else m_byFlag &= ~byFlag; }
Where do i put this code?
|
class CItemElem : public CItemBase In Item.h
|
|
|
01/23/2024, 11:38
|
#18
|
elite*gold: 0
Join Date: Jan 2024
Posts: 4
Received Thanks: 3
|
Thanks for this, i probably will use it
|
|
|
07/11/2024, 02:03
|
#19
|
elite*gold: 0
Join Date: Apr 2018
Posts: 3
Received Thanks: 0
|
HOW SHOULD I ADD THIS
WndShop.cpp
Code:
#ifdef __LOCK_ITEM
if (pItemElem->IsFlag(CItemElem::locked))
{
g_WndMng.PutString(prj.GetText(TID_GAME_ERROR_UNDE STRUCTABLE_ITEM), NULL, prj.GetTextColor(TID_GAME_ERROR_UNDESTRUCTABLE_ITE M));
return FALSE;
}
#endif // __LOCK_ITEM
IF I DONT HAVE THIS BELOW
if( bWarning )
{
SAFE_DELETE( m_pWndWarning );
SAFE_DELETE( m_pWndConfirmSell );
m_pWndWarning = new CWndWarning;
m_pWndWarning->m_pItemElem = (CItemElem*)lpShortcut->m_dwData;
m_pWndWarning->m_pMover = m_pMover;
m_pWndWarning->Initialize( this, APP_WARNING );
}
MINE IS LIKE THIS
bResult = FALSE;
}
if (bResult && pWndFrame->GetWndId() == APP_INVENTORY)
{
if (FALSE == g_pPlayer->m_Inventory.IsEquip(itemElem->m_dwObjId))
{
SAFE_DELETE(m_pWndConfirmSell);
m_pWndConfirmSell = new CWndConfirmSell;
m_pWndConfirmSell->m_pItemElem = itemElem;
m_pWndConfirmSell->m_pMover = m_pMover;
m_pWndConfirmSell->Initialize(this, APP_CONFIRM_SELL);
bForbid = FALSE;
|
|
|
 |
|
Similar Threads
|
[Selling] [Growtopia Lock Store] Selling Diamond Lock, World Lock and Blue Gem Lock at Eznpc
06/17/2021 - Mobile Games Trading - 7 Replies
Selling Diamond Lock, World Lock and Blue Gem Lock at Eznpc
Hello there,
Eznpc is selling Cheap and Safe Diamond Lock, World Lock and Blue Gem Lock.
Use code Cherry for 6% off.
100x World Lock = $3
1x Diamond Lock = $2.49
|
[Selling] [Growtopia Lock Store] selling World, Diamond & Royal lock at best prices!
09/20/2017 - Mobile Games Trading - 0 Replies
Selling Growtopia World Lock, Diamond Lock & Royal Lock!!
40x World Lock = $3 (Stock upon request)
1x Diamond Lock = $4.5 (Stock upon request)
1x Royal Lock = $15 (Stock upon request)
*Message me for more item request
Everything discussed via chat including Nickname and World Name for doing transaction.
|
[Release] Item lock for NewestCOServer
03/25/2010 - CO2 PServer Guides & Releases - 109 Replies
Search for;
Add above;
case 2048:
{
PacketHandling.ItemLock.Handle(GC, Data);
break;
}
|
5165 Item lock, and item redeem.
02/09/2010 - CO2 Private Server - 4 Replies
Anyone knows how to make the item lock and redeem items npc in 5165?
Im not too good at that stuff, and it'll be great if someone could help me. :handsdown:
|
Betteln an die lock mob götter S 15 lock mob
02/04/2009 - Metin2 - 1 Replies
dieser thread geht vor allen dingen an banjo aber wers sonst noch kann kann den lock mob ja auch mal updaten
also pls lock mob für s15/16
|
All times are GMT +1. The time now is 20:09.
|
|