UO.target or ,targe

Ask for help

Moderators: Murderator+, Murderator

Post Reply
yogurt
Posts: 3
Joined: 2004-12-28 13:49:05

UO.target or ,targe

Post by yogurt »

Some one can make me an example fot UO.Target or ,target command

I never undestand the syntax

Tnx
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

it's very dangerous to use it
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post 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.
yogurt
Posts: 3
Joined: 2004-12-28 13:49:05

Post by yogurt »

but a simple example ???

IO.Target("XXXXXXXXXXXXXXXXXX")

for example I have an object called dummy how to target after view-finder appear
Beyonder
Expert!
Posts: 388
Joined: 2005-04-23 10:19:43
Contact:

Post 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.
Post Reply