Jump to content

Offline shop price change


Recommended Posts

Hi.

The price change option doesn't works for me, it doesn't do anything.

Syslog:

Mar  6 23:46:37.965076 :: INPUT: [SA]Reznov OFFLINE_CHANGE_PRICE (0)
Mar  6 23:46:37.966950 :: PRET: 123123 | ITEM ID: 74338 | POZITIE: 0
Mar  6 23:46:37.967159 :: INPUT: [SA]Reznov OFFLINE_SHOP_REFRESH_ITEM
Mar  6 23:46:37.968648 :: reallocating buffer to 32768, current 1024

 

Any idea please?

Link to comment
Share on other sites

  • Premium

search:

input_main.cpp

        case SHOP_SUBHEADER_CG_CHANGE_PRICE:
        {
            if (uiBytes < sizeof(TOfflineShopItemTable))
                return -1;
                    
            TOfflineShopItemTable * pTable = (TOfflineShopItemTable *)(c_pData);
            sys_log(0, "INPUT: %s OFFLINE_CHANGE_PRICE (%d)", ch->GetName(), pTable->bPos);
            COfflineShopManager::instance().ChangePrice(ch, pTable->bPos, pTable->lPrice);
            return (sizeof(TOfflineShopItemTable));
        }
change:

        case SHOP_SUBHEADER_CG_CHANGE_PRICE:
        {
            if (uiBytes < sizeof(TOfflineShopItemTable))
                return -1;
                    
            TOfflineShopItemTable * pTable = (TOfflineShopItemTable *)(c_pData);
            sys_log(0, "INPUT: %s OFFLINE_CHANGE_PRICE (%d) (%d) (%lld)", ch->GetName(), pTable->bDisplayPos, pTable->bPos, pTable->lPrice);
            COfflineShopManager::instance().ChangePrice(ch, pTable->bDisplayPos, pTable->lPrice);
            return (sizeof(TOfflineShopItemTable));
        }
 

 

  • Love 3
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.