Page 1 of 1

UO.target or ,targe

Posted: 2005-07-16 22:05:25
by yogurt
Some one can make me an example fot UO.Target or ,target command

I never undestand the syntax

Tnx

Posted: 2005-07-16 22:43:19
by Grin
it's very dangerous to use it

Posted: 2005-07-17 14:59:48
by Beyonder
The only dangerous thing in it is unhandlable currently. Everything in it works just fine, but this: to send the traget, client makes this steps:
1) Request a target
2) Analyze target
3) Send reply with own target (aim)
If you cancel target in client any way injection supports, it gets this way:
1) Request a target
2) Analyze target
3) Cancel target (ESC or CancelTarget)
But if you try to use Target command, this is what you get:
1) Request target
2) Analyze target
3) UO.Target
4) Cancel target in client. This one sends Canceltarget package to the server, that is directed to anavailable target that is already used bu UO.Target. This causes message in Sphere logs.
So obviously there is no way to use it yet.

Posted: 2005-07-17 19:59:23
by yogurt
but a simple example ???

IO.Target("XXXXXXXXXXXXXXXXXX")

for example I have an object called dummy how to target after view-finder appear

Posted: 2005-07-18 06:53:04
by Beyonder

Code: Select all

sub MakeShaft()
var Logs
UO.FindType('0x1BDD')
Logs=UO.GetSerial('finditem')
UO.UseObject('dagger')
while not UO.Targeting()
wait(50)
wend
UO.WaitMenu('What','shaft')
UO.Target('0x000001EC',Logs,'0','0x1BDD')
end sub


First parameter is unique target type ID. It can be found this way:

Code: Select all

sub Test()
UO.Print(UO.GetSerial('lasttargetkey'))
end sub

Second parameter is the ID of item to target.
Third parameter is the 1-statics or 0-object.
And last parameter is the type of item to target.