[targeting] status && target

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
dafee
Posts: 9
Joined: 2006-03-12 12:41:55
Contact:

[targeting] status && target

Post 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
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

sorrym but- what do u want? ) don't understood your question
dafee
Posts: 9
Joined: 2006-03-12 12:41:55
Contact:

Post 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 ?
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

Is my_target target from 1 step? or it is alone?
dafee
Posts: 9
Joined: 2006-03-12 12:41:55
Contact:

Post by dafee »

it's an object that contains the ID of my "human" uol's target
dafee
Posts: 9
Joined: 2006-03-12 12:41:55
Contact:

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post 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
dafee
Posts: 9
Joined: 2006-03-12 12:41:55
Contact:

Post by dafee »

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