Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/*--------------------------------------------------------
Script Name: remove_ips_oc
----------------------------------------------------------
Created By: Genisys(Guile)
Created On: 5/1/09
----------------------------------------------------------
This goes in the OnClose event of a placeable object with
an inventory, it will remove all item properties from all
items left within!
----------------------------------------------------------*/
void RemoveAllIPs(object oItem)
{
itemproperty i = GetFirstItemProperty(oItem);
while(GetIsItemPropertyValid(i))
{
RemoveItemProperty(oItem, i);
i = GetNextItemProperty(oItem);
}
}
void main()
{
object o = OBJECT_SELF;
location l = GetLocation(o);
object oItem = GetFirstItemInInventory(o);
while(GetIsObjectValid(oItem))
{
RemoveAllIPs(oItem);
oItem = GetNextItemInInventory(o);
}
effect eVis = EffectVisualEffect(VFX_IMP_UNSUMMON, FALSE);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, l, 0.0f);
}