- Joined
- Feb 9, 2009
- Messages
- 8
- Reaction score
- 0
I'm not sure if this is legal or not but yea, I wonder if there is a modification that will automatically sell stuff from my inventory using double click. no need to drag or anything..
// ÇÁ·ÎÆÛƼ°¡ ³ÎµÇ¼ Á״´Ù.
if( pProp )
{
CWndShop* wndShop = (CWndShop*)g_WndMng.GetWndBase( APP_SHOP_ );
if( wndShop )
{
BOOL bWarning = FALSE;
if( ( (CItemElem*)pFocusItem )->IsCharged() )
bWarning = TRUE;
if( g_pPlayer->m_Inventory.IsEquip( ( (CItemElem*)pFocusItem )->m_dwObjId ) == FALSE )
{
if( bWarning )
{
SAFE_DELETE( wndShop->m_pWndWarning );
SAFE_DELETE( wndShop->m_pWndConfirmSell );
wndShop->m_pWndWarning = new CWndWarning;
wndShop->m_pWndWarning->m_pItemElem = (CItemElem*)pFocusItem;
wndShop->m_pWndWarning->m_pMover = wndShop->m_pMover;
wndShop->m_pWndWarning->Initialize( this, APP_WARNING );
}
else
{
SAFE_DELETE( wndShop->m_pWndWarning );
SAFE_DELETE( wndShop->m_pWndConfirmSell );
wndShop->m_pWndConfirmSell = new CWndConfirmSell;
wndShop->m_pWndConfirmSell->m_pItemElem = (CItemElem*)pFocusItem;
wndShop->m_pWndConfirmSell->m_pMover = wndShop->m_pMover;
wndShop->m_pWndConfirmSell->Initialize( this, APP_CONFIRM_SELL );
}
}
else
{
g_WndMng.PutString( prj.GetText(TID_GAME_EQUIPTRADE), NULL, prj.GetTextColor(TID_GAME_EQUIPTRADE) );
}
}