Jump to content

Finding item in another AV's inventory


JimSqu Sunbelter
 Share

You are about to reply to a thread that has been inactive for 2082 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I need to be able to find out if an AV already has an item in their inventory or alternatively is attached to their body. 

My application is that they need to have a ticket (item/prim) either in their inventory or attached to their body before the item they touch gives out a prize or allows them through. Any examples would be greatly appreciated. 

I've played with IIGetInventoryType and IIGetInventoryName but they only see to act on the items contained with the prim being touched.

Thanks

Link to comment
Share on other sites

I don't think llSensor can see worn attachments (the wiki says not) but llGetAttachedList can, so long as they're not HUDs.     That returns the UUIDs of whatever the av has attached, so you will need to loop down the list, checking llKey2Name and seeing if anything matches your ticket's name.

http://wiki.secondlife.com/wiki/LlGetAttachedList

Edited by Innula Zenovka
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2082 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...