Page 1 of 1

waittargettile problem.

Posted: 2008-05-22 00:45:45
by botserver
uo.waittargettile( "0", str( uo.getX() ), str( uo.getY() ), str( uo.getZ() ) )

I want to target the tile but this command throw "Target cannont seen"


uo.waittargettile( "1341", str( uo.getX() ), str( uo.getY() ), str( uo.getZ() ) )
work fine but i not know the tile num.

how can to resolve this?

Posted: 2008-05-22 08:44:44
by Scripts Writer
Try to input '-1' in first argument of this function

Posted: 2008-05-22 12:20:13
by Infectous
& if you need to know the tile# ,infotile
the -1 = 'any' if it works for you

Posted: 2008-05-22 23:57:23
by botserver
UO.WaitTargetTile(-1,STR(UO.GetX()),STR(UO.GetY()),STR(UO.GetZ()))
UO.WaitTargetTile('-1',STR(UO.GetX()),STR(UO.GetY()),STR(UO.GetZ()))
UO.WaitTargetTile('any',STR(UO.GetX()),STR(UO.GetY()),STR(UO.GetZ()))

None these seem works

,infotile throw 1340 2109 1466 -90
but UO.GetX(), UO.GetY(), UO.GetZ() throw 2109 1466 166

I change WaitTargetTile for
UO.WaitTargetTile("1340",STR(UO.GetX()),STR(UO.GetY()),"166") and work fine

but
UO.WaitTargetTile(-1,STR(UO.GetX()),STR(UO.GetY()),"166")
UO.WaitTargetTile('-1',STR(UO.GetX()),STR(UO.GetY()),"166")
UO.WaitTargetTile('any',STR(UO.GetX()),STR(UO.GetY()),"166")
no work

UO.LClick
Is my only solution.
:(

Posted: 2008-05-24 17:40:49
by Aldebaran
You may use uo.privategettile(x,y,-1,fromNumber,toNumber) function.

Search for this function in forum, to see a few examples.

Hope it helps you!