Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case ITEM_WEAPON:
- {
- #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
- LPITEM pkCostumeWeapon = m_pOwner->GetWear(WEAR_COSTUME_WEAPON);
- if (pkCostumeWeapon && bAdd)
- {
- if (pkCostumeWeapon->GetValue(3) == GetSubType() && bAdd)
- {
- m_pOwner->SetPart(PART_WEAPON, pkCostumeWeapon->GetVnum());
- break;
- }
- else
- {
- m_pOwner->SetPart(PART_WEAPON, GetVnum());
- break;
- }
- }
- if (bAdd)
- {
- if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
- m_pOwner->SetPart(PART_WEAPON, GetVnum());
- }
- else
- {
- if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
- m_pOwner->SetPart(PART_WEAPON, m_pOwner->GetOriginalPart(PART_WEAPON));
- }
- #else
- if(bAdd)
- {
- if(m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
- {
- m_pOwner->SetPart(PART_WEAPON, GetVnum());
- }
- }
- else
- {
- if(m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
- {
- m_pOwner->SetPart(PART_WEAPON, m_pOwner->GetOriginalPart(PART_WEAPON));
- }
- }
- #endif
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement