26 lines
815 B
Plaintext
26 lines
815 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Tailoring - Remove Item
|
|
//:: tlr_removeitem.nss
|
|
//:: Copyright (c) 2003 Jake E. Fitch
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jake E. Fitch (Milambus Mandragon)
|
|
//:: Created On: March 8, 2004
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oItem = GetItemInSlot(INVENTORY_SLOT_CHEST, OBJECT_SELF);
|
|
int iToModify = GetLocalInt(OBJECT_SELF, "ToModify");
|
|
int iNewApp = 0;
|
|
|
|
object oNewItem = CopyItemAndModify(oItem, ITEM_APPR_TYPE_ARMOR_MODEL, iToModify, iNewApp, TRUE);
|
|
|
|
DestroyObject(oItem);
|
|
|
|
DelayCommand(0.5f, AssignCommand(OBJECT_SELF, ActionEquipItem(oNewItem, INVENTORY_SLOT_CHEST)));
|
|
}
|