SHARE
TWEET

Untitled

a guest Jan 19th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string inventoryName = "Object";
  2.     init()
  3.     {
  4.         //Checking if the notecard is in the inventory, if not return method.
  5.         if(llGetInventoryType(inventoryName) == -1) return;
  6.            
  7.         //Removing the item named AVpos, be it a notecard or anything else.
  8.         llRemoveInventory(inventoryName);
  9.            
  10.         //Removing the script after its done.
  11.         llRemoveInventory(llGetScriptName());  
  12.     }
  13. default
  14. {
  15.     state_entry()
  16.     {
  17.         init();
  18.     }
  19.     changed(integer change)
  20.     {
  21.         if (change & CHANGED_INVENTORY)
  22.         {
  23.             init();
  24.         }
  25.     }
  26.  
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top