Files
HeroesStone_PRC8/_module/nss/tlr_fixclothing.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

24 lines
909 B
Plaintext

//::///////////////////////////////////////////////
//:: Tailoring - Fix Clothing
//:: tlr_fixclothing.nss
//:: Copyright (c) 2003 Jake E. Fitch
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Jake E. Fitch (Milambus Mandragon)
//:: Created On: March 9, 2004
//-- stacy_19201325 added helmet functionality
//:://////////////////////////////////////////////
void main()
{
object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, OBJECT_SELF);
object oHelmet = GetItemInSlot(INVENTORY_SLOT_HEAD, OBJECT_SELF);
AssignCommand(OBJECT_SELF, ActionUnequipItem(oArmor));
AssignCommand(OBJECT_SELF, ActionUnequipItem(oHelmet));
DelayCommand(2.0f, AssignCommand(OBJECT_SELF, ActionEquipItem(oArmor, INVENTORY_SLOT_CHEST)));
DelayCommand(2.0f, AssignCommand(OBJECT_SELF, ActionEquipItem(oHelmet, INVENTORY_SLOT_HEAD)));
}