Jump to content

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
https://metin2.dev/topic/10957-offline-shop-price-change/
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
https://metin2.dev/topic/10957-offline-shop-price-change/#findComment-64240
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.