Page 1 of 1

Is there a way to check if a player or gm arrived

Posted: 2005-05-07 01:40:27
by Gautman
Injection is a great tool, I've made some wonderfull scripts to gain skills, gold, etc.
But I have a problem with gamemasters who are everywere on my shard and don't allow macroing while not in front of screen. So here's my question :
Can I check if someone like a player or a gm appear on my screen, in order to play an alert sound or to show some message?

Thanks to all

Posted: 2005-05-07 01:54:10
by Destruction
Sorry for my clusmy English.

May be:

Code: Select all

uo.playwav(wavfilename)

?

for example:

Code: Select all

repeat
uo.findtype('Human Type',-1,'ground')
if uo.getName('finditem')=='Game Master name' then
uo.playwav(wavfilename)
else
ignore(finditem)
endif
wait(100)
until false

This example find humans on the ground and test names.