root/uiinventory.py
Search x2
if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR):
Replace
if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR, item.ITEM_TYPE_BELT):
item_attribute.cpp
in function int CItem::GetAttributeSetIndex()
Search
if (GetType() == ITEM_ARMOR)
After whole function add
else if (GetType() == ITEM_BELT)
return ATTRIBUTE_SET_BELT;
UPDATE:
If you want table for item_attr mysql below:
1. Open length.h and search:
ATTRIBUTE_SET_MAX_NUM
and add before:
ATTRIBUTE_SET_BELT,
Like that: [Hidden Content]
2. Open ClientManagerBoot.cpp and search:
bool CClientManager::InitializeItemAttrTable()
put here this:
", belt"
Like that: [Hidden Content]
Search ([!]Careful this line must be in bool CClientManager::InitializeItemAttrTable() )
str_to_number(t.bMaxLevelBySet[ATTRIBUTE_SET_EAR], data[col++]);
and add after:
str_to_number(t.bMaxLevelBySet[ATTRIBUTE_SET_BELT], data[col++]);
Like that: [Hidden Content]
If you want this for item_attr_rare table make the 2nd step but in function: bool CClientManager::InitializeItemRareTable()
And make this new table (belt) on item_attr & item_attr_rare (if you did for item_attr_rare in ClientManagerBoot.cpp )