Ask for scripts here
Moderators: Murderator+ , Murderator
Injectioner
Posts: 25 Joined: 2005-07-28 20:31:08
Post
by Injectioner » 2008-02-17 16:10:41
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
I'm
Expert!
Posts: 1396 Joined: 2004-10-15 22:38:04
Location: Moscow City.
Contact:
Post
by I'm » 2008-02-17 17:42:07
Code: Select all
uo.waittargettile( lasttile_OR_tilenum, x, y, z)
The End.
Injectioner
Posts: 25 Joined: 2005-07-28 20:31:08
Post
by Injectioner » 2008-02-17 18:29:12
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
Nmy
Expert!
Posts: 2152 Joined: 2005-09-14 15:31:58
Location: Latvia
Post
by Nmy » 2008-02-17 18:42:22
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))
Injectioner
Posts: 25 Joined: 2005-07-28 20:31:08
Post
by Injectioner » 2008-02-18 01:09:58
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
Destruction
Junior Expert
Posts: 3221 Joined: 2004-06-24 22:08:56
Post
by Destruction » 2008-02-18 03:15:50
Incorrect example.. rofl. Use my example:
Code: Select all
uo.waittargettile( "0", str( uo.getX() + 1 ), str( uo.getY() -1 ), str( uo.getZ() ) )
Injectioner
Posts: 25 Joined: 2005-07-28 20:31:08
Post
by Injectioner » 2008-02-18 04:01:47
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