Page 1 of 1
uo.waittargettile() [Help]
Posted: 2008-02-17 16:10:41
by Injectioner
I will try to explain my Doubt.
I wanna target the floor in myX+1 and myY-1, but I didnt' know how to do that, I was trying like this:
Code: Select all
z = Uo.GetZ("self")
x = Uo.GetX("self")
y = Uo.GetY("self")
j = 1
i = 1
uo.waittargettile('str(x+j),str(y-i),str(z)')
When I used this, it always target onde the floor under me.
Somebody can help me?
Thanks.
[]'s
Posted: 2008-02-17 17:42:07
by I'm
Code: Select all
uo.waittargettile( lasttile_OR_tilenum, x, y, z)
Posted: 2008-02-17 18:29:12
by Injectioner
I'm wrote:Code: Select all
uo.waittargettile( lasttile_OR_tilenum, x, y, z)
I wanna target my tile info + 1.
Ex: I'm on the X:1578 & y: 1675, the floor that I wanna target the X:1579 & Y:1675, this isn't a fixed target, because I will walk, and this tiles will change.
understand?
[]'s
Posted: 2008-02-17 18:42:22
by Nmy
Code: Select all
uo.waittargettile(lasttile/tilenum,[x],[y],[z])
You are missing the 1st variable...
For example:
Code: Select all
uo.waittargettile("400",str(x)+1,str(y),str(z))
Posted: 2008-02-18 01:09:58
by Injectioner
Mr Nmy wrote:Code: Select all
uo.waittargettile(lasttile/tilenum,[x],[y],[z])
You are missing the 1st variable...
For example:
Code: Select all
uo.waittargettile("400",str(x)+1,str(y),str(z))
Qhen I change my uo.waittargettile() to your, the injection doesn't run the script, but when I take off the "+1" the scripts run normaly.
How do I discovery this "tilenum"?
Thanks.
[]'s
Posted: 2008-02-18 03:15:50
by Destruction
Incorrect example.. rofl. Use my example:
Code: Select all
uo.waittargettile( "0", str( uo.getX() + 1 ), str( uo.getY() -1 ), str( uo.getZ() ) )
Posted: 2008-02-18 04:01:47
by Injectioner
Destruction wrote:Incorrect example.. rofl. Use my example:
Code: Select all
uo.waittargettile( "0", str( uo.getX() + 1 ), str( uo.getY() -1 ), str( uo.getZ() ) )
Thanks everybody.
It works fine now. xD
[]'s