Some one can make me an example fot UO.Target or ,target command
I never undestand the syntax
Tnx
UO.target or ,targe
Moderators: Murderator+, Murderator
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.
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.
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.