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

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Gautman
Posts: 6
Joined: 2005-05-07 01:34:07

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

Post 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
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post 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.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Post Reply