uo.waittargettile() [Help]

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Injectioner
Posts: 25
Joined: 2005-07-28 20:31:08

uo.waittargettile() [Help]

Post 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
Image
Image
Image
I'm
Expert!
Posts: 1396
Joined: 2004-10-15 22:38:04
Location: Moscow City.
Contact:

Post by I'm »

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 »

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
Image
Image
Image
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post 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))
Injectioner
Posts: 25
Joined: 2005-07-28 20:31:08

Post 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
Image
Image
Image
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post 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() ) )
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Injectioner
Posts: 25
Joined: 2005-07-28 20:31:08

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