How to make target next?

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
lofrank
Posts: 7
Joined: 2005-10-03 00:34:31

How to make target next?

Post by lofrank »

hi all.
i would like to know hjow to make a kind of target next but except my friends..

thanx
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

As i know, you there aren't any command to make you questions in script
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post 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
lofrank
Posts: 7
Joined: 2005-10-03 00:34:31

Post by lofrank »

interesting, now how to attack or target that with a spell?

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