Yoko

All sides of Injection
It is currently 2025-12-23 05:56:55

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-05-07 01:40:27 
Offline

Joined: 2005-05-07 01:34:07
Posts: 6
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


Top
   
 Post subject:
PostPosted: 2005-05-07 01:54:10 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.

_________________
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.
Skype: d119060


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited