Changed folder name.
Changed folder name.
This commit is contained in:
25
_module/nss/tlr_removeitem.nss
Normal file
25
_module/nss/tlr_removeitem.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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)));
|
||||
}
|
Reference in New Issue
Block a user