Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Wrong Thread

Banned
Banned
Joined
May 22, 2020
Messages
226
Reaction score
72
GLogicData.cpp
Find: bool bMONEY_DROP2FIELD = true;
Add Below
C++:
/*disable gold deposit in locker, Jeey-, 2023/5/6 */
    //    Note : ----------------------------------------------------------------±â´É ¼³Á¤.
    bool bENABLE_DEPOSIT2LOCKER = true;            //    µ· ¹Ù´Ú¿¡ ¹ö¸®±â °¡´É ¿©ºÎ.

GLogicData.h
Find: extern bool bMONEY_DROP2FIELD;
Add Below
Code:
extern bool            bENABLE_DEPOSIT2LOCKER;        //    µ· ¹Ù´Ú¿¡ ¹ö¸®±â °¡´É ¿©ºÎ.

GLogicDataLoad.cpp
Find: cFILE.getflag( "bMONEY_DROP2FIELD", 1, 1, bMONEY_DROP2FIELD );
Add Below
Code:
/*disable gold deposit in locker, Jeey-, 2023/5/6 */
        //    Note : ----------------------------------------------------------------±â´É ¼³Á¤.
        cFILE.getflag( "bENABLE_DEPOSIT2LOCKER", 1, 1, bENABLE_DEPOSIT2LOCKER );

InventoryWindow.cpp
Find: case INVENTORY_MONEY_BUTTON:
Replace the Whole Code to:
Code:
case INVENTORY_MONEY_BUTTON:
        {
            if ( CHECK_MOUSEIN_LBUPLIKE ( dwMsg ) )
            {
                if ( CInnerInterface::GetInstance().IsStorageWindowOpen () && GLCONST_CHAR::bENABLE_DEPOSIT2LOCKER )
                {
                    DoModal ( ID2GAMEINTEXT("PLAYINTERFACE_31"), MODAL_INPUT, EDITBOX_MONEY, MODAL_SAVEMONEY );
                }
                else if ( CInnerInterface::GetInstance().IsClubStorageWindowOpen () && GLCONST_CHAR::bENABLE_DEPOSIT2LOCKER )
                {
                    DoModal ( ID2GAMEINTEXT("PLAYINTERFACE_31"), MODAL_INPUT, EDITBOX_MONEY, MODAL_CLUB_SAVEMONEY );
                }
                else
                {
                    if ( GLCONST_CHAR::bMONEY_DROP2FIELD )
                    {
                        DoModal ( ID2GAMEINTEXT("MONEYTO_FIELD"), MODAL_INPUT, EDITBOX_MONEY, MODAL_INVENTORY_MONEY_TO_FIELD );
                    }
                }
            }
        }
        break;

RAN Client Side
default.charclass
Find: bMONEY_DROP2FIELD 0
Add Below
C++:
bENABLE_DEPOSIT2LOCKER            0
//--------------------------------------------------------------------
NOTE: change the value to 1 if you want to enable gold locker deposit, else change to 0 when you don't want to enable gold deposit. this works both personal storage and guild storage locker.

PS: Please leave the credit(for my self) as is, so i can continue to share my works here. thank you.
 
Back
Top