Guest User

Untitled

a guest
Jan 2nd, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. case ITEM_WEAPON:
  2. {
  3. #ifdef COSTUME_WEAPON
  4. if (0 != m_pOwner->GetWear(WEAR_COSTUME_WEAPON))
  5. break;
  6. #endif
  7. if (bAdd)
  8. {
  9. if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
  10. m_pOwner->SetPart(PART_WEAPON, GetVnum());
  11. }
  12. else
  13. {
  14. if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON)
  15. m_pOwner->SetPart(PART_WEAPON, m_pOwner->GetOriginalPart(PART_WEAPON));
  16. }
  17. }
  18. break;
Advertisement
Add Comment
Please, Sign In to add comment