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..
Printable View
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..
bump.
Normally Id say to read the source it's fairly easy to make mods but why not save your day here you go.
Open WndField.cpp
search for
underCode:// ÇÁ·ÎÆÛƼ°¡ ³ÎµÇ¼ Á״´Ù.
add thisCode:if( pProp )
{
Code: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) );
}
}