Honorable Member Mali 42407 Posted August 27, 2019 Honorable Member Share Posted August 27, 2019 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) Anyway now you can sell shop items with sockets and attrs at shopex. New price types. New sorting options Every Item can have different price type. price_type: 1:Gold 2:Second Coin 3:Item 4:EXP sort: Asc,Desc,Vnum,Price,Name,Type Spoiler 328 1 6 2 1 1 2 3 2 3 1 87 20 205 Link to comment Share on other sites More sharing options...
ManiacRobert 429 Posted August 27, 2019 Share Posted August 27, 2019 After if (pItemGroup->GetValue(i, "price_type", shopItems[i].price_type) && pItemGroup->GetValue(i, "price_vnum", shopItems[i].price_vnum) && shopItems[i].price_type == 3) { if (shopItems[i].price_type > 4 || shopItems[i].price_type < 1) { sys_err("row(%d) of group items of group %s price_type is wrong!", i, pNode->GetNodeName().c_str()); return false; } TItemTable * pProto = ITEM_MANAGER::instance().GetTable(shopItems[i].price_vnum); if (!pProto) { sys_err("NOT GET ITEM PROTO %d", shopItems[i].price_vnum); return false; } } You can add this to clean the memory memset(&getval, 0, sizeof(getval)); 1 2 Link to comment Share on other sites More sharing options...
Honorable Member Mali 42407 Posted August 27, 2019 Author Honorable Member Share Posted August 27, 2019 19 minutes ago, ManiacRobert said: After if (pItemGroup->GetValue(i, "price_type", shopItems[i].price_type) && pItemGroup->GetValue(i, "price_vnum", shopItems[i].price_vnum) && shopItems[i].price_type == 3) { if (shopItems[i].price_type > 4 || shopItems[i].price_type < 1) { sys_err("row(%d) of group items of group %s price_type is wrong!", i, pNode->GetNodeName().c_str()); return false; } TItemTable * pProto = ITEM_MANAGER::instance().GetTable(shopItems[i].price_vnum); if (!pProto) { sys_err("NOT GET ITEM PROTO %d", shopItems[i].price_vnum); return false; } } You can add this to clean the memory memset(&getval, 0, sizeof(getval)); not necessary 1 Link to comment Share on other sites More sharing options...
Braxy 625 Posted August 27, 2019 Share Posted August 27, 2019 28 minutes ago, Mali61 said: not necessary Properly clearing memory after using it it's a must. 1 As long as I'll be a threat for you , i will always be your target :3 Link to comment Share on other sites More sharing options...
Honorable Member Mali 42407 Posted August 27, 2019 Author Honorable Member Share Posted August 27, 2019 (edited) 18 minutes ago, Braxy said: Properly clearing memory after using it it's a must. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Contributor MrQuin 6467 Posted August 27, 2019 Contributor Share Posted August 27, 2019 I am glad you added new prices as i said in your last topic Great work Just one thing to ask , in shopex is there a way to make the shop gui extend height if there are more choices let's say like : ARMOR-ITEMS-WEAPONS...etc so it look good 1 My only accounts are here and on M2D, Don't trust anyone else from other shitty sites. Link to comment Share on other sites More sharing options...
Premium CHXMVN 435 Posted August 27, 2019 Premium Share Posted August 27, 2019 Great release, I really like the EXP feature. Could you add a way to reload the shop_ex_table? 1 Link to comment Share on other sites More sharing options...
Braxy 625 Posted August 27, 2019 Share Posted August 27, 2019 (edited) 1 hour ago, Mali61 said: I'm not talking about this in special, i'm generalizing it. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 4 1 As long as I'll be a threat for you , i will always be your target :3 Link to comment Share on other sites More sharing options...
Honorable Member Mali 42407 Posted August 28, 2019 Author Honorable Member Share Posted August 28, 2019 (edited) #New sorting options added: sort: Asc,Desc,Vnum,Price,Name,Type ---------- 21 hours ago, MrQuin said: I am glad you added new prices as i said in your last topic Great work Just one thing to ask , in shopex is there a way to make the shop gui extend height if there are more choices let's say like : ARMOR-ITEMS-WEAPONS...etc so it look good You are looking for: Spoiler Don't forget the change SHOP_TAB_COUNT_MAX from Server/length.h and Client/Packet.h Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
LordZiege 279 Posted August 28, 2019 Share Posted August 28, 2019 (edited) vor 2 Stunden schrieb Mali61: #New sorting options added: sort: Asc,Desc,Vnum,Price,Name,Type ---------- You are looking for: Inhalt unsichtbar machen Don't forget the change SHOP_TAB_COUNT_MAX from Server/length.h and Client/Packet.h Cant see the picture Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Dalí 276 Posted August 28, 2019 Share Posted August 28, 2019 this happens when freelancers are better than "developers". Good job mate! 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 42407 Posted August 28, 2019 Author Honorable Member Share Posted August 28, 2019 2 minutes ago, Dalí said: this happens when freelancers are better than "developers". Good job mate! I never had such a claim but thanks 1 Link to comment Share on other sites More sharing options...
Hades ✔ 52 Posted August 29, 2019 Share Posted August 29, 2019 price_type: 1:Gold 2:Second Coin 3:Item 4:EXP 5: Level 6: Time wasted in game. :-? 7: IQ Test. xD Link to comment Share on other sites More sharing options...
ruizuinho-o 12 Posted August 29, 2019 Share Posted August 29, 2019 5 hours ago, Hades ✔ said: price_type: 1:Gold 2:Second Coin 3:Item 4:EXP 5: Level 6: Time wasted in game. :-? 7: IQ Test. xD 8: your shit files 7 Link to comment Share on other sites More sharing options...
thespeedy 20 Posted August 29, 2019 Share Posted August 29, 2019 /reload_shop_ex is a nice idea for reload the table? Link to comment Share on other sites More sharing options...
Hades ✔ 52 Posted August 31, 2019 Share Posted August 31, 2019 On 8/29/2019 at 12:37 AM, ruizuinho-o said: 8: your shit files Link to comment Share on other sites More sharing options...
Thundernatsu 36 Posted September 5, 2019 Share Posted September 5, 2019 expected primary-expression before '['token on shop manager line 534line 534std::sort(shopItems.begin(), shopItems.end(), [stSort](const TShopItemTable& i1, const TShopItemTable& i2)full line#ifdef ENABLE_RENEWAL_SHOPEXelse {std::sort(shopItems.begin(), shopItems.end(), [stSort](const TShopItemTable& i1, const TShopItemTable& i2){TItemTable* lItem = ITEM_MANAGER::instance().GetTable(i1.vnum);TItemTable* rItem = ITEM_MANAGER::instance().GetTable(i2.vnum);if (stSort == "Vnum")return i1.vnum > i2.vnum;else if (stSort == "Price")return i1.price > i2.price;else if (stSort == "Name" && lItem && rItem)return strcmp(lItem->szLocaleName, rItem->szLocaleName) < 0;else if (stSort == "Type" && lItem && rItem)return lItem->bType > rItem->bType;});}#endif @VegaS™ do you know how to solve? Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10341 Posted September 5, 2019 Forum Moderator Share Posted September 5, 2019 On 9/5/2019 at 6:13 PM, Thundernatsu said: expected primary-expression before '['token on shop manager line 534 line 534 std::sort(shopItems.begin(), shopItems.end(), [stSort](const TShopItemTable& i1, const TShopItemTable& i2) Lambda expressions (since C++11), you need CFLAG += -std=c++11, if you want to do it without, then you've to do something like this: This is the hidden content, please Sign In or Sign Up 55 1 1 1 1 1 1 17 2 54 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Thundernatsu 36 Posted September 5, 2019 Share Posted September 5, 2019 SYSERR: Sep 5 19:23:44.71727 :: Boot: shop table size error SYSERR: Sep 5 19:23:44.350368 :: pid_deinit: End of pid@VegaS™ Link to comment Share on other sites More sharing options...
displayjokes 89 Posted September 6, 2019 Share Posted September 6, 2019 (edited) Hey, i installed the system but when i'm in game i try to open the shop and nothing happens. Shop does not open and syserrs are clean. Edit: Normal Shops works fine Edited September 6, 2019 by displayjokes It's all lies Link to comment Share on other sites More sharing options...
Zeph 8 Posted September 7, 2019 Share Posted September 7, 2019 23 godziny temu, displayjokes napisał: Hey, i installed the system but when i'm in game i try to open the shop and nothing happens. Shop does not open and syserrs are clean. Edit: Normal Shops works fine I have the same problem :( Link to comment Share on other sites More sharing options...
Thundernatsu 36 Posted September 7, 2019 Share Posted September 7, 2019 On 9/5/2019 at 8:25 PM, Thundernatsu said: SYSERR: Sep 5 19:23:44.71727 :: Boot: shop table size error SYSERR: Sep 5 19:23:44.350368 :: pid_deinit: End of pid@VegaS™ anyone? Link to comment Share on other sites More sharing options...
displayjokes 89 Posted September 7, 2019 Share Posted September 7, 2019 5 hours ago, Zeph said: I have the same problem I've tested a lot of things and that happens everytime, i even tried to open the shop with quest, but it seems like it's not there the shop at all, only the file is beeing loaded because it gave me conflicts with same npc that had shops It's all lies Link to comment Share on other sites More sharing options...
Zeph 8 Posted September 7, 2019 Share Posted September 7, 2019 15 minut temu, displayjokes napisał: I've tested a lot of things and that happens everytime, i even tried to open the shop with quest, but it seems like it's not there the shop at all, only the file is beeing loaded because it gave me conflicts with same npc that had shops We have to wait for solution i think. Link to comment Share on other sites More sharing options...
displayjokes 89 Posted September 7, 2019 Share Posted September 7, 2019 1 minute ago, Zeph said: We have to wait for solution i think. Yeah, lets hope that someone will enlight us It's all lies Link to comment Share on other sites More sharing options...
Recommended Posts