Yoko
http://forum.yoko.com.ua/

[targeting] status && target
http://forum.yoko.com.ua/viewtopic.php?f=1&t=6959
Page 1 of 1

Author:  dafee [ 2006-03-13 19:20:30 ]
Post subject:  [targeting] status && target

.
.
.
I have an object called "my_target" which contains the ID of my human target.

Actually to cast on it, I'm using
uo.waittobjecttype("target")
uo.cast("xxx")

But BEFORE i wanna cast, and THEN eventually drop the target on my enemy.

the only, and not so good way, I found is this: using targetnext of my client :?
while CONDITION
new=uo.getserial("laststatus")
if new==my_target then
goto x
CONDITION=0
else
uo.press(49)#TARGETNEXT_client
endif
wait(100)
wend
x:
uo.press(48 ) #LASTTARGET_client

Author:  Scripts Writer [ 2006-03-13 19:49:06 ]
Post subject: 

sorrym but- what do u want? ) don't understood your question

Author:  dafee [ 2006-03-13 19:55:43 ]
Post subject: 

step 1: cast and get the target of the spell I selected (I did it)

step 2: launch a function that drops the magery on the target using the object "my_target" that contains the id of my enemy

how about step 2 ?

Author:  Grin [ 2006-03-13 20:00:52 ]
Post subject: 

Is my_target target from 1 step? or it is alone?

Author:  dafee [ 2006-03-13 20:19:08 ]
Post subject: 

it's an object that contains the ID of my "human" uol's target

Author:  dafee [ 2006-03-13 20:22:28 ]
Post subject: 

i'm looking about an injection function like the targetnext of my uol's client.

Cause with uo.waittargetobject when i cast it drops the target automatically on the object (a human).
With targetnext and lasttarget of my uol's client i can cast
wait
and when I want, I can press lasttarget to drop the spell on my target in the right moment

Author:  Yoko [ 2006-03-16 14:20:42 ]
Post subject: 

it is a problem way to act for injection, because it can operate only with network protocol, not some actions you do in client.

you can do some work with command ,target
but you must know, there is many caveeats on this way, many warnings generated in server log etc.

better do not use injection for delayed targeting, unless you absolutely need it

Author:  dafee [ 2006-03-20 22:20:01 ]
Post subject: 

tnx a lot
I'm going to try it on my local poll

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/