Yoko
http://forum.yoko.com.ua/

Is there a way to check if a player or gm arrived
http://forum.yoko.com.ua/viewtopic.php?f=3&t=3933
Page 1 of 1

Author:  Gautman [ 2005-05-07 01:40:27 ]
Post subject:  Is there a way to check if a player or gm arrived

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

Author:  Destruction [ 2005-05-07 01:54:10 ]
Post subject: 

Sorry for my clusmy English.

May be:
Code:
uo.playwav(wavfilename)

?

for example:
Code:
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.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/