Hello all, here is a snippet of the code in which section the occurring error is found.
Code:
#Region LDoA2_10 - quest management
Func LDoACheck_QuestCompleted() ;Checks if Charr at the Door is completed (Returns True or False) based on number of mobs remaining in explorable zone
If (GetCountInRangeOfAgent($lMe, $DistanceSpirit, $UnitTypeEnemy, $TypeUnit) < 1) Then
;~ logFile("")
logFile("All charrs have been killed.")
LDoA_GoGetQuest()
Return False
Else
Return True
EndIf
EndFunc
Func _LDoACheck_QuestCompleted() ; Check if "Charr at the Gate"(46) quest is at reward state (Returns True if yes, else returns False)
Local $lMessage = False
;~ logFile("LoggedIn: "&GetLoggedIn())
;~ logFile("LoggedIn Address: 0x"&Hex(GetScannedAddress('ScanLoggedIn', 0x6FE3),8))
;~ logFile("$mLoggedIn: "&$mLoggedIn)
While GetLoggedIn() <> 1
If $lMessage = False Then
;~ logFile("")
logFile("Waiting, we don't seem to LoggedIn")
$lMessage = True
EndIf
Sleep(1000)
WEnd
While GetMapLoading() == 2
PingSleep(1000)
WEnd
Local $lQuestState = DllStructGetData(GetQuestByID($QUEST_ID_Charr_at_the_Gate), 'LogState')
;~ logFile("Quest State: "&$lQuestState)
Does anything initially seem wrong? I have Charr At The Gate and is not completed.
Code:
[21:38] Playing Status: online.
[21:38] Starting Run.
[21:38] Waiting, we don't seem to LoggedIn
The bot is recognizing that I am online, but then says not logged in. I'm kind of confused what it is trying to tell me and why, since it mentioning online status.
Could this be a GWA2 file problem? When I swap the files for this bot, it tends to stop working. Thank you for any help!