Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
28
_removed files/vat_stripdmfi.nss
Normal file
28
_removed files/vat_stripdmfi.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "inc_levelset"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget = GetPCSpeaker();
|
||||
int iFoundItemFlag = 0;
|
||||
//for testing
|
||||
//AssignCommand(oTarget, SpeakString("stripInventory fired"));
|
||||
|
||||
//valid only for creatures
|
||||
//if ( GetObjectType(oTarget) != OBJECT_TYPE_CREATURE) return;
|
||||
|
||||
// set the variables
|
||||
int i;
|
||||
object oItem = GetFirstItemInInventory(oTarget);
|
||||
|
||||
// destroy unequipped items in inventory
|
||||
while ( GetIsObjectValid(oItem) )
|
||||
{
|
||||
if (GetIsDMFI(oItem))
|
||||
{
|
||||
DestroyObject(oItem);
|
||||
iFoundItemFlag = 1;
|
||||
}
|
||||
oItem = GetNextItemInInventory(oTarget);
|
||||
}
|
||||
if (iFoundItemFlag = 0) FloatingTextStringOnCreature("No DMFI items found.", oTarget, FALSE);
|
||||
}
|
Reference in New Issue
Block a user