findtype

Ask for help

Moderators: Murderator+, Murderator

Post Reply
hunt3r
Posts: 18
Joined: 2004-04-16 19:24:29

findtype

Post by hunt3r »

I can't remember, but I thought that the findtype command has some "triggers" to search ONLY on the backpack root, or on its "sub bags"...

something like

Code: Select all

^, ~ and _ 


maybe

Code: Select all

 _backpack, ^backpack, ~backpack


I can't remeber the exactly syntax... and the forum engine doesn't allow to search by this characters...

someone had some idea?

thanks
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

"Triggers" not for findtype.

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
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

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


for example

Code: Select all

uo.useobject("^0x1515")
hunt3r
Posts: 18
Joined: 2004-04-16 19:24:29

Post by hunt3r »

great that!
thank you guys!
Post Reply