Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

21 lines
561 B
Plaintext

void main()
{
object oTrash = OBJECT_SELF;
object oStuff = GetFirstItemInInventory(oTrash);
object oPc = GetLastOpenedBy();
int iPc = GetIsPC(oPc);
if (iPc == TRUE){
do{
int iP = GetPlotFlag(oStuff);
if (iP == TRUE){
SetPlotFlag(oStuff, FALSE);
DestroyObject(oStuff, 0.0f);
}
if (iP == FALSE){
SetPlotFlag(oStuff, FALSE);
DestroyObject(oStuff, 0.0f);
}
}while ((oStuff = GetNextItemInInventory(oTrash)) != OBJECT_INVALID);
}
}