-
Content Count
215 -
Joined
-
Last visited
-
Days Won
35
Single Status Update
-
void main(){
//Edit oPC as you will. I don't know who you're taking items from.
object oPC = GetFirstPC();
object oInvent = GetFirstObjectInInventory(oPC);
//Your general While Loop which takes away items
while(oInvent != OBJECT_INVALID){
//The important part of this loop is that it will only delete items that are NOT datapads.
//This can be edited to include more items but I don't know which you want to exclude
if(GetBaseItemType(object oItem) != BASE_ITEM_DATA_PAD){
DestroyObject(oInvent);
}
oInvent = GetNextObjectInInventory(oPC);
}
}