Files
HeroesStone_PRC8/_module/nss/corpse_close.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

38 lines
974 B
Plaintext

//::///////////////////////////////////////////////
//:: Name corpse_close
//:: FileName
//::
//:://////////////////////////////////////////////
/*
Responds to the onclose event of the corpse
placeable. This scripts gives back items to our
owner so that some one else try to find them.
*/
//:://////////////////////////////////////////////
//:: Created By: Alexandre Brunel
//:: Created On: 21/04/2003
//:://////////////////////////////////////////////
#include "corpse_lib"
void main()
{
/*if(GetCommandable())
{ */
object target = GetOriginalCorpse();
object pc = GetLocalObject(target,CorpsePCCorpse);
if(GetIsObjectValid(pc))
{
target = pc;
}
giveBackItems(target,FALSE);
/* }
else
{
SetCommandable(TRUE);
ActionDoCommand(giveBackItems(GetOriginalCorpse(),FALSE));
ActionDoCommand(SetCommandable(TRUE));
SetCommandable(FALSE);
}*/
}