Logan23

RoR Staff
  • Content Count

    215
  • Joined

  • Last visited

  • Days Won

    35

Logan23 last won the day on November 26 2023

Logan23 had the most liked content!

Community Reputation

205 Jedi Grand Master

About Logan23

  • Rank
    Jedi Knight

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Single Status Update

See all updates by Logan23

  1. 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);

     

    }

     

    }