15 lines
425 B
Plaintext
15 lines
425 B
Plaintext
void main()
|
|
{
|
|
object oClothes = GetFirstItemInInventory();
|
|
int iCounter = 0;
|
|
|
|
while(oClothes != OBJECT_INVALID)
|
|
{
|
|
SetLocalObject(OBJECT_SELF, "clothes" + IntToString(iCounter), oClothes);
|
|
iCounter++;
|
|
oClothes = GetNextItemInInventory();
|
|
}
|
|
SetLocalInt(OBJECT_SELF, "clothescount", iCounter);
|
|
ActionEquipItem(GetLocalObject(OBJECT_SELF, "clothes0"), INVENTORY_SLOT_CHEST);
|
|
}
|