last target name

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
thor_odt
Posts: 1
Joined: 2007-08-08 15:04:59

last target name

Post by thor_odt »

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
Ururu
Posts: 479
Joined: 2007-02-21 20:15:57

Post by Ururu »

http://forum.yoko.com.ua/viewtopic.php?p=45313#45313

З.Ы. учите русский...
Шард Антарес
Ururu
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

Ururu wrote:http://forum.yoko.com.ua/viewtopic.php?p=45313#45313

З.Ы. учите русский...


Учи английский.

Человек пишет что когда он переводит прицел командой таргет некст ему надо чтобы ник на кого попал таргет он произносил в клиенте.
Post Reply