feat: add point currency and stage extended shop items
Rename shop currency and vouchers to points, synchronize the wiki catalogue, and display point rewards. Add wear40 item metadata transport and pet identity accessors; stage sixteen timed mounts and appearance items with AVA2 model registration. Include build and sbtest acceptance evidence. Remaining shop systems are unfinished and are not enabled or deployed. Wear40 requires the matching server migration and mt20261022 client.
This commit is contained in:
@@ -668,13 +668,25 @@ DWORD CPythonPlayer::GetItemCountByVnum(DWORD dwVnum)
|
||||
return dwCount;
|
||||
}
|
||||
|
||||
DWORD CPythonPlayer::GetItemID(TItemPos Cell)
|
||||
{
|
||||
const auto item=Cell.IsValidCell() ? GetItemData(Cell) : nullptr;
|
||||
return item ? item->portId : 0;
|
||||
}
|
||||
|
||||
const char* CPythonPlayer::GetItemNewName(TItemPos Cell)
|
||||
{
|
||||
const auto item=Cell.IsValidCell() ? GetItemData(Cell) : nullptr;
|
||||
return item ? item->extra.name : "";
|
||||
}
|
||||
|
||||
DWORD CPythonPlayer::GetItemMetinSocket(TItemPos Cell, DWORD dwMetinSocketIndex)
|
||||
{
|
||||
if (!Cell.IsValidCell())
|
||||
return 0;
|
||||
|
||||
if (dwMetinSocketIndex >= ITEM_SOCKET_SLOT_MAX_NUM)
|
||||
return 0;
|
||||
return dwMetinSocketIndex<8 ? GetItemData(Cell)->extra.sockets[dwMetinSocketIndex-3] : 0;
|
||||
|
||||
return GetItemData(Cell)->alSockets[dwMetinSocketIndex];
|
||||
}
|
||||
@@ -688,7 +700,10 @@ void CPythonPlayer::GetItemAttribute(TItemPos Cell, DWORD dwAttrSlotIndex, BYTE
|
||||
return;
|
||||
|
||||
if (dwAttrSlotIndex >= ITEM_ATTRIBUTE_SLOT_MAX_NUM)
|
||||
{
|
||||
if(dwAttrSlotIndex<15){*pbyType=GetItemData(Cell)->extra.types[dwAttrSlotIndex-7];*psValue=GetItemData(Cell)->extra.values[dwAttrSlotIndex-7];}
|
||||
return;
|
||||
}
|
||||
|
||||
*pbyType = GetItemData(Cell)->aAttr[dwAttrSlotIndex].bType;
|
||||
*psValue = GetItemData(Cell)->aAttr[dwAttrSlotIndex].sValue;
|
||||
|
||||
Reference in New Issue
Block a user