[007]DawisHU 278 Posted December 19, 2022 Share Posted December 19, 2022 (edited) Hi guyz and @ Rakancito ! I have some system from you, Rakancito. But first system is total bugged from you, i start developing and rewritting the whole bugged code. Shop is can't reupdate itself when server closed/restarted, problem start in char.cpp -> void CHARACTER::LoadPremiumPrivateShop(int iItemCount, TPlayerItem* pItems) function. And in db side, the example ( your files ) totally useless for me. Example: your code : Spoiler #ifdef ENABLE_PREMIUM_PRIVATE_SHOP if(pi->bIsPrivateShop) { snprintf(szQuery, sizeof(szQuery), "INSERT INTO item%s (id, owner_id, window, pos, vnum, count, socket0, socket1, socket2) " "VALUES(%u, %u, '%s', %d, %u, %u, %u, %u, %u)", GetTablePostfix(), GainItemID(), pi->player_id, pi->ip[0] == 0 ? "PRIVATE_SHOP" : "PRIVATE_SHOP", iPos, pItemAward->dwVnum, pItemAward->dwCount, pItemAward->dwSocket0, pItemAward->dwSocket1, dwSocket2); } ........ My code : Spoiler snprintf(szQuery, sizeof(szQuery), "INSERT INTO item%s (id, owner_id, window, pos, vnum, count, socket0, socket1, socket2) " "VALUES(%u, %u, '%s', %d, %u, %u, %u, %u, %u)", GetTablePostfix(), GainItemID(), #ifdef ENABLE_PREMIUM_PRIVATE_SHOP pi->ip[0] == 2 ? pi->player_id : #endif pi->account_id, #ifdef ENABLE_PREMIUM_PRIVATE_SHOP //pi->bIsPrivateShop == true ? "PRIVATE_SHOP" : pi->ip[0] == 0 ? "SAFEBOX" : "MALL", pi->ip[0] == 2 ? "PRIVATE_SHOP" : pi->ip[0] == 0 ? "SAFEBOX" : "MALL", #else pi->ip[0] == 0 ? "SAFEBOX" : "MALL", #endif iPos, pItemAward->dwVnum, pItemAward->dwCount, pItemAward->dwSocket0, pItemAward->dwSocket1, dwSocket2); } No need useless + lines just work smart if i fixed the items load, and other things in shop, and need this, i will paste it to here. Excuse me for bad eng. Best regard ! #Update Finally fixed Edited January 19, 2023 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
liukefu 0 Posted February 22 Share Posted February 22 Where to get image files? Link to comment Share on other sites More sharing options...
X E N O N 6 Posted March 22 Share Posted March 22 Working and tested? Link to comment Share on other sites More sharing options...
master1988 7 Posted May 21 Share Posted May 21 On 2/24/2021 at 10:49 PM, Sebypunct said: https://metin2.download/picture/5y5Wpxv5LQhHpQ1LjuEd783H99SH446R/.png Thanks works good hello , please you version Link to comment Share on other sites More sharing options...
master1988 7 Posted May 22 Share Posted May 22 On 2/24/2021 at 10:49 PM, Sebypunct said: https://metin2.download/picture/5y5Wpxv5LQhHpQ1LjuEd783H99SH446R/.png Thanks works good client files modif pleas upload Link to comment Share on other sites More sharing options...
Recommended Posts