Advertisement
Gayngel

Object Inventory Count

Apr 14th, 2018
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.  
  4.    on_rez(integer start_param)
  5.     {
  6.  
  7.     llResetScript();
  8.  
  9.     }
  10.  
  11.     state_entry()
  12.     {
  13.  
  14.   llOwnerSay("This object contains " + (string)llGetInventoryNumber(INVENTORY_ALL) + " items.");
  15.  
  16.         }
  17.  
  18.  
  19. changed(integer change)
  20.     {
  21.      if(change & CHANGED_INVENTORY)
  22.         llResetScript();
  23.  
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement