"int CountItemsWorn" - Views: 321 · Hits: 321 - Type: Public

int CountItemsWorn(object oPC) // Not including equipped skin!
{
 int i = 0;
 if(GetIsObjectValid( GetItemInSlot(INVENTORY_SLOT_ARMS, oPC)))     { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_ARROWS, oPC)))    { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_BELT, oPC)))      { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_BOLTS, oPC)))     { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_BOOTS, oPC)))     { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_BULLETS, oPC)))   { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_CHEST, oPC)))     { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_CLOAK, oPC)))     { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_HEAD, oPC)))      { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC)))  { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_LEFTRING, oPC)))  { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_NECK, oPC)))      { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC))) { i+= 1; }
 if(GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oPC))) { i+= 1; }
 return i;
}