Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//::///////////////////////////////////////////////
//:: Tailoring - Dye Item
//:: tlr_dyeitem.nss
//:: Copyright (c) 2003 Jake E. Fitch
//:://////////////////////////////////////////////
/*
Dye the item.
*/
//:://////////////////////////////////////////////
//:: Created By: Jake E. Fitch (Milambus Mandragon)
//:: Created On: March 8, 2004
//:://////////////////////////////////////////////
void main()
{
object oPC = OBJECT_SELF;
int iMaterialToDye = GetLocalInt(oPC, "MaterialToDye");
int iColorGroup = GetLocalInt(oPC, "ColorGroup");
int iColorToDye = GetLocalInt(oPC, "ColorToDye");
int iColor = (iColorGroup * 8) + iColorToDye;
object oItem = GetItemInSlot(INVENTORY_SLOT_CHEST, oPC);
if (GetIsObjectValid(oItem)) {
// Dye the item
object oDyedItem = CopyItemAndModify(oItem, ITEM_APPR_TYPE_ARMOR_COLOR, iMaterialToDye, iColor, TRUE);
DestroyObject(oItem);
// Equip the armor
DelayCommand(0.5f, AssignCommand(oPC, ActionEquipItem(oDyedItem, INVENTORY_SLOT_CHEST)));
}
}