Shargast_PRC8/_module/Chapter 2/nss/sh_magpie_heartb.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

27 lines
489 B
Plaintext

void main()
{
object oBag = GetObjectByTag("BodyBag",1);
if (GetHasInventory(oBag) == TRUE)
{
if (oBag != OBJECT_INVALID)
{
ActionMoveToObject(oBag,FALSE,100.0);
object oLoot = GetFirstItemInInventory(oBag);
while (oLoot != OBJECT_INVALID)
{
oLoot = GetNextItemInInventory(oBag);
ActionTakeItem(oLoot, oBag);
}
object oInv = GetFirstItemInInventory(OBJECT_SELF);
while (oInv != OBJECT_INVALID)
{
oInv = GetNextItemInInventory(OBJECT_SELF);
ActionDoCommand(DestroyObject(oInv));
}
}
}
}