//:://///////////////////////////////////////////// //:: 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); }*/ }