To search only in backpack/ground/etc - define third argument of uo.findtype() function.
To use "triggers" try this code: uo.getSerial( "^0x0000" ), where 0x0000 - some type.
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Triggers are for objects. Any function that uses objects, can use trigger+[type].
_type{char, backpack, bags in backpack} = findtype type -1 my
^type{backpack, bags} = findtype type -1 backpack
~type{ground, also set finddist working on this} = findtype type -1 ground
<type = findtype type -1 lastcontainer
object.type = findtype type -1 object