Yoko

All sides of Injection
It is currently 2026-05-03 00:19:20

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Delayed targeting
PostPosted: 2008-04-20 09:45:22 
Offline

Joined: 2004-04-22 13:48:27
Posts: 4
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


Top
   
 Post subject:
PostPosted: 2008-04-21 04:10:50 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Use uo.target() if u really need it.

Easy way is:
Code:
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:
uo.say( chr( 27 ) )


UO.Target() syntax:
Code:
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-05-05 19:29:48 
Offline

Joined: 2004-04-22 13:48:27
Posts: 4
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


Top
   
 Post subject:
PostPosted: 2008-05-06 06:04:15 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited