<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetInventoryName</id>
	<title>LlGetInventoryName - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetInventoryName"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetInventoryName&amp;action=history"/>
	<updated>2026-10-25T11:12:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlGetInventoryName&amp;diff=138&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: string llGetInventoryName( integer type, integer number );== Returns a string that is the name of the inventory item number of type. Returns an empty string if no...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetInventoryName&amp;diff=138&amp;oldid=prev"/>
		<updated>2017-12-31T22:25:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: string llGetInventoryName( integer type, integer number );== Returns a string that is the name of the inventory item number of type. Returns an empty string if no...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: string llGetInventoryName( integer type, integer number );==&lt;br /&gt;
Returns a string that is the name of the inventory item number of type. Returns an empty string if no item of the specified type is found in the prim&amp;#039;s inventory (or there are less than or equal to number items of the type). &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	type 	– 	INVENTORY_* flag 	 &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	number 			 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
number does not support negative indexes. &amp;lt;br&amp;gt;&lt;br /&gt;
Inventory items are sorted in alphabetical order (not chronological order). &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;.5&amp;quot; style=&amp;quot;text-align:left&amp;quot;&lt;br /&gt;
! bgcolor=&amp;quot;black&amp;quot; colspan=&amp;quot;2&amp;quot;| &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Flag  !! bgcolor=&amp;quot;black&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Inventory Type&lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_NONE || -1 || Item does not exist.&lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_ALL || -1 || Any inventory type. &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_TEXTURE || 0 || texture&lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_SOUND || 1 || sound &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_LANDMARK || 3 || landmark &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_CLOTHING || 5 || clothing &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_OBJECT || 6 || object &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_NOTECARD || 7 || notecard&lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_SCRIPT || 10 || script &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_BODYPART || 13 || body part &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_ANIMATION || 20 || animation &lt;br /&gt;
|-&lt;br /&gt;
| INVENTORY_GESTURE || 21 || gesture &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
// script created by SpiritWolf Chikuwa&lt;br /&gt;
// minor changes by Strife Onizuka to speed things up&lt;br /&gt;
//&lt;br /&gt;
// /!\ PUBLIC DOMAIN /!\&lt;br /&gt;
// You can Copy/Mod/Trans &lt;br /&gt;
// Please, do not resell this script and give it full perm&lt;br /&gt;
// Just please leave this header intact&lt;br /&gt;
//&lt;br /&gt;
// Minor changes: (insert your name here and delete this comment if you do any mod of this script, thank you)&lt;br /&gt;
//&lt;br /&gt;
// Script start here:&lt;br /&gt;
 &lt;br /&gt;
list    gInventoryList;&lt;br /&gt;
 &lt;br /&gt;
list getInventoryList()&lt;br /&gt;
{&lt;br /&gt;
    list       result = [];&lt;br /&gt;
    integer    n = llGetInventoryNumber(INVENTORY_ALL);&lt;br /&gt;
 &lt;br /&gt;
    while(n)&lt;br /&gt;
        result = llGetInventoryName(INVENTORY_ALL, --n) + result;&lt;br /&gt;
 &lt;br /&gt;
    return result;&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        gInventoryList = getInventoryList();&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    touch_start( integer n )&lt;br /&gt;
    {&lt;br /&gt;
        integer i = 0;&lt;br /&gt;
        string folder = llGetObjectName();&lt;br /&gt;
 &lt;br /&gt;
        while(i &amp;lt; n)&lt;br /&gt;
        {&lt;br /&gt;
            llGiveInventoryList(llDetectedKey(i), folder, gInventoryList );&lt;br /&gt;
            ++i;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    changed( integer change )&lt;br /&gt;
    {&lt;br /&gt;
       if ( change == CHANGED_INVENTORY )&lt;br /&gt;
           gInventoryList = getInventoryList();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
// llGetInventory number and name will scan all objects on the box.&lt;br /&gt;
// llGiveInventory will give you the content.&lt;br /&gt;
// See also llGetInventory and llGiveInventory on LSL Wiki for further informations.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetInventoryNumber]] 	– 	Returns the number of items of a specific type in inventory 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetInventoryType]] 	– 	Tests to see if an inventory item exists and returns its type. 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetInventoryCreator]] 	– 	Returns the inventory item&amp;#039;s creator 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetInventoryPermMask]] 	– 	Returns the inventory item&amp;#039;s permissions 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetInventoryKey]] 	– 	Returns the inventory item&amp;#039;s UUID (if full perm) 	 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>