[C++] OfflineShop - Function open <Exploit fix>

  • *Explain bug:
    You do shop with items up to 120kkk, and another player can buy your items, but your bank online store you get only 2kkk, and the remaining money is erased.
    You need to do this check and function AddItem, because he still can not do this bug when you add items can add up to 120kkk.
    A guy asked me to help him solve this problem a few months ago, I helped and I offered this little fix free without any money and he was placed and sold to other users on a lot of money and he made a lot of money on this crap fixed which was written in 5 minutes.
    So I decided to put it for everyone to fix this problem, I mention this fix is for the offline shop's from Ken.
    This fix applies to people who have no limit increased to yang in bank offlineshop, shop etc.


    - [ Files: /Src/common/service.h ]
    #1.) Add this:


    C
    1. #define __OFFLINE_SHOP_FIX_OPEN
    2. #define __OFFLINE_SHOP_VALUE_MAX 2000000000
    3. #define __OFFLINE_SHOP_WARNING "[Protect Offline] Have more than 2.000.000.000 Yang!"

    - [ Files: /Src/game/src/char.cpp ]
    #1.) Search function:


    #2.) Replace function with this:

    .