[quote="jabst1922";p="61324"]4/10/2005 11:09:19 PM: ** Leaving VerifyChatLog()
4/10/2005 11:09:19 PM: TimerCheck(locTimer) Timer: 1.0 CurTimer: 3.3 TimerUp=True
4/10/2005 11:09:19 PM: Reset Timer(locTimer) SET: 1.0 seconds
4/10/2005 11:09:19 PM: SetMasterFunctionKeys()
4/10/2005 11:09:19 PM: Checking for MASTER on Function Key 1
4/10/2005 11:09:19 PM: SendEscape()
4/10/2005 11:09:19 PM: SendKey() '112'
4/10/2005 11:09:20 PM: FOUND i am so great it hurts on Function Key 1
4/10/2005 11:09:20 PM: Checking for MASTER PET on Function Key 1
4/10/2005 11:09:20 PM: SendEscape()
4/10/2005 11:09:20 PM: SendShiftKey() '112'
4/10/2005 11:09:20 PM: No Pet found on this char
4/10/2005 11:09:20 PM: Checking for MASTER on Function Key 2
4/10/2005 11:09:20 PM: SendEscape()
4/10/2005 11:09:20 PM: SendKey() '113'
4/10/2005 11:09:21 PM: FOUND XXXXXXXX on Function Key 2
4/10/2005 11:09:21 PM: Checking for MASTER PET on Function Key 2
4/10/2005 11:09:21 PM: SendEscape()
4/10/2005 11:09:21 PM: SendShiftKey() '113'
4/10/2005 11:09:21 PM: No Pet found on this char
4/10/2005 11:09:21 PM: Checking for MASTER on Function Key 3
4/10/2005 11:09:21 PM: SendEscape()
4/10/2005 11:09:21 PM: SendKey() '114'
4/10/2005 11:09:22 PM: EXITING - SetMasterFunctionKeys()
4/10/2005 11:09:22 PM: ** Here we go! **
4/10/2005 11:09:43 PM: CheckForRequest() - Found Match: 57. Matched Value: [XXXXXXXX\/a tells you,"with me"]
4/10/2005 11:09:43 PM: Matched - with me
4/10/2005 11:09:43 PM: ** IGNORING Request because not a VALID MASTER!! **
4/10/2005 11:09:43 PM: Matched - tells you,"
4/10/2005 11:09:43 PM: Someone is sending us something - let's check it out
4/10/2005 11:09:43 PM: PlayWave(C:\Documents and Settings\Justin\My Documents\Xunleashed\Scripts\EQ2MegaBot\TalkingToYou.wav)
4/10/2005 11:09:43 PM: WARNING: Not a Valid Master talking to us, so let's start the PeopleAround Timer!
4/10/2005 11:09:43 PM: Setting Wait for People Around Timer to 4 mins
4/10/2005 11:09:43 PM: PlayWave(C:\Documents and Settings\Justin\My Documents\Xunleashed\Scripts\EQ2MegaBot\TalkingToYou.wav)
4/10/2005 11:09:43 PM: TakeScreenShot()
it's not seeing me as a master[/quote]
jabst1922, I have no insight into wether it is the List or your name from the tell messing up the match, so replace the function CheckForValidMasterNew() in the file EQ2MEGABot_MainFunctions_v23.vbs with the following code, then email me the log or PM it to me w/o modifying it and I should have some more insight.
Rich
Code: Select all
' This version uses the already cleaned up RegExpression, which just has the command in it
Function CheckForValidMasterNew(txt)
Dim TmpMaster, i
txt=LCase(txt)
CheckForValidMasterNew=FALSE
objDebug.Print "CheckForValidMasterNew(" & txt & ")", 0
TmpMaster = TextBeforeToken(txt, "")
TmpMaster = Trim(TmpMaster)
objDebug.Print "TmpMaster FINAL = <" & TmpMaster & ">", 0
' Now we find out if we have a command from a valid master
for i = 1 to UBound(ValidMasterStrings)
objDebug.Print "(" & i & ")[" & LCase(ValidMasterStrings(i)) & "] [" & TmpMaster & "]", 0
if (LCase(ValidMasterStrings(i)) = TmpMaster) then
' Have to use the non lower case version of the name since it is case sensitive in a /target in EQ2
gMaster = ValidMasterStrings(i)
objDebug.Print "Valid Master Found: " & gMaster, 0
' Quick Function key to choose master (better than /target)
gMasterKey=ValidMasterKeys(i)
StatusBar2("Master [" & gMaster & "] is talking to you")
'validMaster=TRUE
CheckForValidMasterNew=TRUE
exit for
end if
next
end Function