Delayed targeting

Ask for help

Moderators: Murderator+, Murderator

Post Reply
hobbit
Posts: 4
Joined: 2004-04-22 13:48:27
Contact:

Delayed targeting

Post by hobbit »

Good morning,
i`m looking how to create this:

uo.usetype('xxxx')
wait(3000)
?select target?

i need to use item, then wait 3000ms an then select target (there is timer between using item and selecting target)

any idea?
Hobbit the Ranger
Trillian the Vampire
... on czech shard Darkparadise
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Use uo.target() if u really need it.

Easy way is:

Code: Select all

wait(3000)
uo.waittarget*()
uo.usetype()


In anyway remember - uo.target() only sends target info to server and dont set cursor to normal state. To cancel cursor targeting in client use:

Code: Select all

uo.say( chr( 27 ) )


UO.Target() syntax:

Code: Select all

Syntax: ,target target_key lasttile/object/ground [ttype type X Y Z]
none uo.target(target_key,lasttile/object/ground,[ttype,type,X,Y,Z])
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
hobbit
Posts: 4
Joined: 2004-04-22 13:48:27
Contact:

Post by hobbit »

Thanks a lot, I know syntax, but here is server-side timer between using item and selecting target. So, if target is selected faster than 3000ms after using item, action isn`t succesful.

=>
uo.waittarget*(<something>)
uo.usetype(<something>)

is not succesful, because target is selected immediately after using item.

What i Need:
a) use item
b) wait 3000ms (yes, i`m really targetting)
c) select target
in order as writen.

This is used for stealing skill on one czech shard

any more idea?
Hobbit the Ranger
Trillian the Vampire
... on czech shard Darkparadise
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

As i above say - use uo.target().
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
Post Reply