Chest Drop View in Features & Metin2 Systems Posted September 11, 2021 rename in uichestdrop should go On 12/7/2019 at 7:30 PM, Mali said: thanks for topic here is auto adaptable codes and some improvings.. #ifdef ENABLE_SHOW_CHEST_DROP #include "../../libgame/include/grid.h" void ITEM_MANAGER::GetChestItemList(DWORD dwChestVnum, std::vector<TChestDropInfoTable>& vec_item, int& sizee) { const auto pGroup = GetSpecialItemGroup(dwChestVnum); if (!pGroup) return; std::vector<std::unique_ptr<CGrid>> pGrids; pGrids.emplace_back(std::make_unique<CGrid>(15, 5)); for (int i = 0; i < pGroup->GetGroupSize(); i++) { const auto itemTable = GetTable(pGroup->GetVnum(i)); //pass if exp, yang or duplicate item if (!itemTable || !itemTable->dwVnum || itemTable->dwVnum < 3 || std::find_if(vec_item.begin(), vec_item.end(), [&pGroup, &i](const TChestDropInfoTable& data) -> bool { return static_cast<DWORD>(pGroup->GetVnum(i)) == data.dwItemVnum; }) != vec_item.end()) continue; bool PushNewGrid = true; for (size_t iPage = 0; iPage < pGrids.size(); iPage++) { const auto iPos = pGrids.at(iPage)->FindBlank(1, static_cast<int>(itemTable->bSize)); if (iPos >= 0) { pGrids.at(iPage)->Put(iPos, 1, static_cast<int>(itemTable->bSize)); vec_item.push_back({ static_cast<BYTE>(iPage+1), static_cast<BYTE>(iPos), static_cast<DWORD>(pGroup->GetVnum(i)), static_cast<BYTE>(pGroup->GetCount(i)) }); PushNewGrid = false; break; } } if (PushNewGrid) { pGrids.emplace_back(std::make_unique<CGrid>(15, 5)); i--;//again } } } #endif does it work with c ++ 11?
Sort Inventory in Features & Metin2 Systems Posted April 30, 2021 On 7/21/2019 at 5:29 PM, nonnorulez said: Ty man, ho seguito il tuo consiglio e i syserrs ora dicono: Ho provato a scrivere "import uiToolTip" su uiinventory.py Ma ho questo errore: Come posso risolvere? Grazie a tutti per consigli e disponibilità. you have resolved???
problem skill color in Community Support - Questions & Answers Posted December 19, 2020 · Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal I have this problem on skill color, someone to help me ?? problem skill color
Chest Drop View
in Features & Metin2 Systems
Posted
rename in uichestdrop should go
does it work with c ++ 11?