|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
04-02-2005 05:08
integer llGetInventoryNumber(string name)
Returns the inventory number of name, or -1 if name is not found in inventory. Scripters need a better way to know if an item exists within an object's inventory then llGetInventoryKey. llGetInventoryKey returns NULL_KEY when an item is no-copy, severely crippling its ability to provide this information.
==Chris
|
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
04-02-2005 13:47
How about list llGetInventorySubString(string name) and integer llGetInventoryNumberSubString(string name) instead? This is because the name you chose is already in existance, Chris: http://secondlife.com/badgeo/wakka.php?wakka=llGetInventoryNumber
_____________________
---
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
04-02-2005 20:31
use llGetInventoryPermMask to detect if it already exists. I would like to see llGetInventoryType where it returns the INVENTORY_* flag of the type it is. Returning -1 if it doesn't exist.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|