ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
MIT License
52 stars 21 forks source link

Adding MAKE_ITEM_GROUP #247

Open UTengine opened 1 month ago

UTengine commented 1 month ago

Search before asking

Description

We need to make an item_group array that gets data from the database (DoFieldExchange(CFieldExchange), then tie it to AIServer npc.cpp. Openko has implemented this, here is a link that serves as an example.

_MAKE_ITEM_GROUP * pGroup = g_pMain->m_MakeItemGroupArray.GetData(pItem->iItem[j]); https://github.com/srmeier/KnightOnline/blob/80268e2fa971389a3e94c430966a7943c2631dbf/Server/AIServer/Npc.cpp#L3389

Use case

Item_groups consist of around 30 columns of drops that ties it to the monster item drop's. Currently we are missing out on a lot of drops. image image

Are you willing to work on and submit a PR to address the issue?