Page 1 of 1

[targeting] status && target

Posted: 2006-03-13 19:20:30
by dafee
.
.
.
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

Posted: 2006-03-13 19:49:06
by Scripts Writer
sorrym but- what do u want? ) don't understood your question

Posted: 2006-03-13 19:55:43
by dafee
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 ?

Posted: 2006-03-13 20:00:52
by Grin
Is my_target target from 1 step? or it is alone?

Posted: 2006-03-13 20:19:08
by dafee
it's an object that contains the ID of my "human" uol's target

Posted: 2006-03-13 20:22:28
by dafee
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

Posted: 2006-03-16 14:20:42
by Yoko
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

Posted: 2006-03-20 22:20:01
by dafee
tnx a lot
I'm going to try it on my local poll