Page 1 of 1

Question about WaitTargetTile

Posted: 12.05.2019 6:24
by fdesu
Hi there,
I'm trying to mine, but i can't do it, im using WaitTargetTile to target the ground, someone have a similar problem?

Code: Select all

WaitTargetTile(1, GetX(200), GetY(200), GetZ(200))
Thanks

Regards!

Re: Question about WaitTargetTile

Posted: 12.05.2019 11:26
by GeeZeR
what is "200"? http://stealth.od.ua/Doc:Api/G#GetX
you must put a valid tile index into WaitTargetTile http://stealth.od.ua/Doc:Manual/Reference/Tile

Re: Question about WaitTargetTile

Posted: 12.05.2019 19:02
by fdesu
GeeZeR wrote:what is "200"? http://stealth.od.ua/Doc:Api/G#GetX
you must put a valid tile index into WaitTargetTile http://stealth.od.ua/Doc:Manual/Reference/Tile
Hi GeeZer,
Thanks for your reply!!

200 is the number ID player to get the X,Z,Y. Is not real is an example.

Code: Select all

WaitTargetTile(1, GetX(Self()), GetY(Self()), GetZ(Self()))
I'm trying to understand the tiles system. thanks!

Re: Question about WaitTargetTile

Posted: 12.05.2019 21:09
by GeeZeR
You can use any functions or expressions returning coordinates: GetX(Self), GetX(Self)+1 etc.
Also you must put a valid tile index into WaitTargetTile or TargetToTile comands. Nice example is here: http://stealth.od.ua/forum/viewtopic.php?p=8910#8910

Re: Question about WaitTargetTile

Posted: 12.05.2019 21:54
by fdesu
GeeZeR wrote:You can use any functions or expressions returning coordinates: GetX(Self), GetX(Self)+1 etc.
Also you must put a valid tile index into WaitTargetTile or TargetToTile comands. Nice example is here: http://stealth.od.ua/forum/viewtopic.php?p=8910#8910
Hundred Thanks!! Is Working!!!!