Advertisement
worstbull

delete everything

Jan 29th, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. delete_everything()
  2. {
  3.     integer ic;
  4.     integer inum = llGetInventoryNumber(INVENTORY_ALL);
  5.     if (inum > 1)
  6.     {
  7.         for (ic = inum - 1; ic >= 0; ic--)
  8.         {
  9.             if (llGetInventoryName(INVENTORY_ALL, ic) != llGetScriptName())
  10.             {
  11.                 llRemoveInventory(llGetInventoryName(INVENTORY_ALL, ic));
  12.             }
  13.         }
  14.     }
  15.     llRemoveInventory(llGetScriptName());
  16. }
  17. default
  18. {
  19.     on_rez(integer start_param)
  20.     {
  21.         delete_everything();
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement