Browse Source

Initial version

Alex 3 months ago
parent
commit
f4df7b2f56
1 changed files with 3 additions and 4 deletions
  1. 3 4
      Scripts/acousticAlarms.py

+ 3 - 4
Scripts/acousticAlarms.py

@@ -63,12 +63,11 @@ def start():
     while Player.Connected:    
         Journal.Clear()
         # check for AFK in Gump 
-        if ALERT_ON_AFK and Gumps.LastGumpTextExist("AFK"):
-            print("there is an AFK check!")
+        if ALERT_ON_AFK and Gumps.LastGumpTextExist(AFK_GUMP_SEARCH):
             winsound.Beep(2800, 1000) 
             
         # check for low life 
-        if ALERT_ON_LOW_LIFE and Player.Hits < 100:
+        if ALERT_ON_LOW_LIFE and Player.Hits < HITPOINTS_ALERT_VALUE:
             winsound.Beep(1800, 1000)
             
         # check for dura
@@ -94,7 +93,7 @@ def start():
 
         # lastly, we check the journal for AFK messages
         if ALERT_ON_AFK:
-            if Journal.Search('You cannot fight while being afk checked.'):
+            if Journal.Search(AFK_JOURNAL_SEARCH):
                 winsound.Beep(2800, 1000)