I'm trying to make a script that, when i change target by uo macro NEXTTARGET, it make my pg say the name of the targetted player
and say nothing is it's a npc.
i tried this but does not work if there are several players
thanks
sub TARGET()
if ( uo.GetNotoriety('laststatus') <> 2 && uo.GetGraphic('laststatus') == '0x0190' && uo.GetName('laststatus') <> "[invulnerable] " && uo.GetName('laststatus') <> "[frozen] " && uo.GetName('laststatus') <> "[frozen] [invulnerable] ") then
if ( uo.GetNotoriety('laststatus') == 5 ) then
uo.fontcolor(0x0013)
UO.Say( "-->"+ uo.GetName('laststatus') +"<-- " )
else
uo.fontcolor(0x003a)
UO.Say( uo.GetName('laststatus'))
endif
endif
end sub
last target name
Moderators: Murderator+, Murderator
-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact: