This commit is contained in:
Jaysyn904
2025-08-21 07:40:32 -04:00
parent 9c7b452b9a
commit 59b2630adf
3642 changed files with 96023 additions and 130017 deletions

View File

@@ -1,29 +1,5 @@
void DestroyAllInventory(object oCreature)
{
object oItem = GetFirstItemInInventory(oCreature);
while (GetIsObjectValid(oItem))
{
DestroyObject(oItem);
oItem = GetNextItemInInventory(oCreature);
}
}
void main()
{
object oDead = OBJECT_SELF;
object oMaster = GetMaster(oDead);
// Only destroy inventory if this creature is summoned
if (GetIsObjectValid(oMaster))
{
int nType = GetAssociateType(oDead);
if (nType == ASSOCIATE_TYPE_SUMMONED)
{
DestroyAllInventory(oDead);
}
}
ExecuteScript("prc_npc_death", OBJECT_SELF);
ExecuteScript("prc_npc_death", OBJECT_SELF);
ExecuteScript("nw_ch_ac7", OBJECT_SELF);
}