|
@@ -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)
|
|
|
|
|
|
|