Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (pPlayerItem->vnum >= 85001 && pPlayerItem->vnum <= 85016) // 85001 - 85016 <- sash
- {
- for (int i = 0; i < ITEM_ATTRIBUTE_SLOT_MAX_NUM; ++i)
- {
- len += snprintf(itemlink + len, sizeof(itemlink)-len, ":%x:%d",
- pPlayerItem->aAttr[i].bType, pPlayerItem->aAttr[i].sValue);
- isAttr = true;
- }
- }
- else
- {
- for (int i = 0; i < ITEM_ATTRIBUTE_SLOT_MAX_NUM; ++i)
- if (pPlayerItem->aAttr[i].bType != 0)
- {
- len += snprintf(itemlink + len, sizeof(itemlink)-len, ":%x:%d",
- pPlayerItem->aAttr[i].bType, pPlayerItem->aAttr[i].sValue);
- isAttr = true;
- }
- }
Add Comment
Please, Sign In to add comment