waittargettile problem.

Ask for help

Moderators: Murderator+, Murderator

Post Reply
botserver
Posts: 7
Joined: 2004-04-29 06:34:07

waittargettile problem.

Post 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?
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

Try to input '-1' in first argument of this function
Infectous
Posts: 55
Joined: 2004-07-29 16:29:52

Post by Infectous »

& if you need to know the tile# ,infotile
the -1 = 'any' if it works for you
botserver
Posts: 7
Joined: 2004-04-29 06:34:07

Post 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.
:(
Aldebaran
Posts: 24
Joined: 2004-04-11 13:20:44

Post 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!
Post Reply