Catch Target

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Feanor
Posts: 3
Joined: 2004-08-19 17:37:42
Location: Italy
Contact:

Catch Target

Post by Feanor »

hi, i am trying to make a script which catch a target after have found it with finditem

i need only one instruction

imagine a script like this:

Code: Select all

Uo.Ignore("self")
Uo.FindType("0x0190","-1","ground")
if Uo.FindCount() then
   ..........................................
   Uo.Ignore("finditem")
else
   Uo.FindType("0x0191","-1","ground")
   if Uo.FindCount() then
      ........................................
      Uo.Ignore("finditem")
   else
      Uo.IgnoreReset()
   end if
end if
end sub



this "catches" the serial of the men and women on the screen and stores this serial in finditem.

where you see the "........................" is the place where i need an instruction who set the last target on the finditem or at least laststatus on finditem if last target is not possible

i tried with function uo.target but i seem to fail something, i tried also the uo.attack but i need a script that set last target, not one which attacks

i tried uo.set("lasttarget","finditem") but it doesn't work


i already know that targetnext do exactly this and stores the target in laststatus but if i can make a script like this i can create a targetnext customized for notoriety and distance

any ideas?
The Curse of Fëanor Runs Long
Feanor
Posts: 3
Joined: 2004-08-19 17:37:42
Location: Italy
Contact:

Post by Feanor »

i tried using uo.target, but the last target of client still points to the last mobile manually targeted

using uo.getstatus("finditem") i can get the laststatus of finditem

but i can't convert laststatus to lasttarget or more simply i can't find a method that works as uo.click("pippo") but which makes the last target of client to point to pippo


is possible to create (if it doesn't exist) a method which make points the last target of client to an object having his serial?
The Curse of Fëanor Runs Long
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

No. Client inside values are not accessible. Use EasyUO for this. You may create macro wich will cooperate both Injection and EasyUO possibilities.
Feanor
Posts: 3
Joined: 2004-08-19 17:37:42
Location: Italy
Contact:

Post by Feanor »

what version of easy uo shall i use? with 1.36 (the only i found for client 4.0.0c) is old and i can't use most of the new functions of easy uo

is there a way to use one of the new version of easy uo with 4.0.0c?
The Curse of Fëanor Runs Long
Post Reply