本文整理汇总了C++中CItemBase::IsQuest方法的典型用法代码示例。如果您正苦于以下问题:C++ CItemBase::IsQuest方法的具体用法?C++ CItemBase::IsQuest怎么用?C++ CItemBase::IsQuest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CItemBase
的用法示例。
在下文中一共展示了CItemBase::IsQuest方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnChildNotify
BOOL CWndVendor::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
if( message == 100 && nID == 100 )
{
LPSHORTCUT pShortcut = (LPSHORTCUT)pLResult;
if( pShortcut )
{
CWndBase* pWndFrame = pShortcut->m_pFromWnd->GetFrameWnd();
if( pWndFrame->GetWndId() == APP_INVENTORY )
{
CItemBase* pItemBase = m_pVendor->GetItemId( pShortcut->m_dwId );
if( pItemBase )
{
if( pItemBase->IsQuest() )
return FALSE;
if( pItemBase->GetProp()->dwItemKind3 == IK3_CLOAK && ( (CItemElem*)pItemBase )->m_idGuild != 0 )
return FALSE;
//#if __VER >= 11 // __MA_VER11_05 // 케릭터 봉인 거래 기능 world,database,neuz
// if( pItemBase->m_dwItemId == II_SYS_SYS_SCR_SEALCHARACTER )
// return FALSE; // 개인상점판매허용
//#endif // __MA_VER11_05 // 케릭터 봉인 거래 기능 world,database,neuz
#if __VER >= 9 // __CSC_VER9_1
// ItemProp* pItemProp = pItemBase->GetProp();
CItemElem* pItemElem = (CItemElem*)pItemBase;
if( pItemElem->IsFlag( CItemElem::expired ) )
return TRUE;
/*
if(pItemProp->dwItemKind3 == IK3_EGG && pItemElem->m_pPet) //사망한 펫은 거래 불가
{
if(pItemElem->m_pPet->GetLife() <= 0)
return FALSE;
}
*/
#endif //__CSC_VER9_1
/*
if( ((CItemElem*)pItemBase)->m_bCharged == 1 )
{
g_WndMng.PutString( prj.GetText( TID_GAME_NOTTRADE ), NULL, prj.GetTextColor( TID_GAME_NOTTRADE ) );
return FALSE;
}
*/
int iIndex = pShortcut->m_dwData - 100;
if( 0 <= iIndex && iIndex < MAX_VENDITEM )
{
if( m_pVendor->m_vtInfo.GetItem( iIndex ) != NULL )
return FALSE;
if( IsUsingItem( pItemBase ) == FALSE && m_pVendor->IsActiveMover() && !m_pVendor->m_vtInfo.IsVendorOpen() )
{
SAFE_DELETE( m_pWndRegVend );
m_pWndRegVend = new CWndRegVend;
m_pWndRegVend->Initialize( this );
m_pWndRegVend->SetItem( iIndex, pItemBase );
}
}
}
} // APP_INVENTORY
}
}
else
{
if( nID == WIDC_OK )
{
if( g_pPlayer->m_pActMover->IsFly() )
return TRUE;
if( g_pPlayer->m_vtInfo.VendorIsVendor() == FALSE )
return TRUE;
CWndEdit* pWndEdit = (CWndEdit*)GetDlgItem( WIDC_EDIT1 );
CString strVendor = pWndEdit->GetString();
strVendor.TrimLeft();
strVendor.TrimRight();
/*#if __VER >= 11 // __MOD_VENDOR
// 매물 액수 총합 + 현재 소지금이 2억1천이 넘으면 경고띄우고 리턴시킴.
int nGold = (int)g_pPlayer->GetTotalGold();
for( int iv = 0 ; iv < MAX_VENDITEM ; ++iv )
{
CItemBase *pItemBase = g_pPlayer->m_vtInfo.GetItem( iv );
if( pItemBase == NULL )
continue;
nGold += ((CItemElem*)pItemBase)->m_nCost * pItemBase->GetExtra();
}
if( nGold <= 0 || 2100000000 <= nGold )
{
g_WndMng.OpenMessageBox( _T(prj.GetText(TID_GAME_VENDOR_MAX_ALL_GOLD)), MB_OK, this );
return TRUE;
}
#endif*/
if( prj.IsInvalidName( strVendor )
#ifdef __RULE_0615
|| prj.IsAllowedLetter( strVendor, TRUE ) == FALSE
//.........这里部分代码省略.........