18 lines
467 B
Plaintext
18 lines
467 B
Plaintext
void main()
|
|
{
|
|
object oTrash = OBJECT_SELF;
|
|
object oStuff = GetFirstItemInInventory(oTrash);
|
|
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);
|
|
|
|
}
|