hi all.
i would like to know hjow to make a kind of target next but except my friends..
thanx
How to make target next?
Moderators: Murderator+, Murderator
-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
you can make some simulations...
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
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