generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
20
_module/nss/dump_pconly.nss
Normal file
20
_module/nss/dump_pconly.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user