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?