Yoko

All sides of Injection
It is currently 2024-03-28 14:50:21

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2010-06-09 19:15:35 
Offline
User avatar

Joined: 2004-12-19 01:44:11
Posts: 7
Location: Москва
Доброго времени суток. Помогите заставить нормально работать проигрывание звука при появлении гампа.
Выскакивают гампы с двумя айди (рандомно)
Первый 0000040a
Второй 000003f1

Проблема заключается в том , что при входе в игру и первом появлении гампа всё нормуль.Звук проигрался. Но потом он каждые 10 секунд проигрывает этот звук , так как после закрытия он всё равно остаётся lastgump'om.
Вот сам "скрипт" ))
Code:
sub antimacro()
   while not uo.Dead()
      if uo.LastGump('replyed') == 0 and uo.LastGump('gumpid') == '0000040a' or uo.LastGump('gumpid') == '000003f1'  then
      uo.playwav('alarm.wav')
      wait(10000)
     endif
wend
endsub

Подскажите что нужно изменить , что бы скрипт срабатывал на каждое появление 1 раз.

_________________
Жизнь , это затяжонный прыжок из п***ы в могилу.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 20 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited