Page 1 of 1

How to make target next?

Posted: 2006-03-25 17:41:25
by lofrank
hi all.
i would like to know hjow to make a kind of target next but except my friends..

thanx

Posted: 2006-03-25 17:55:08
by Scripts Writer
As i know, you there aren't any command to make you questions in script

Posted: 2006-03-25 18:38:44
by Grin
you can make some simulations...

Code: Select all

sub Init()
uo.SetGlobal('lastfind', uo.GetSerial('self'))
end sub

sub TargetNext()
uo.ignore(uo.GetGlobal('lastfind'))
uo.findtype('0x0190', -1, 'ground')
if not uo.findcount() then
uo.SetGlobal('lastfind', uo.GetSerial('self'))
uo.ignorereset()
else
uo.getstatus('finditem')
uo.SetGlobal('lastfind', uo.GetSerial('finditem'))
return uo.GetSerial('finditem')
end if
return 0
end sub


Before useing TargetNext() you must run Init() one time!
TargetNext() work only with male characters, but you easyly can make for both... TargetNext() can be use for retuurn serial of next target(if function return 0? nothing was found

Posted: 2006-03-27 00:57:39
by lofrank
interesting, now how to attack or target that with a spell?

like i do with keyboard targetnext , then "attacklast lasttarget"