Quote:
Originally Posted by Destructopuppy
Hey guys,
Sorry if I'm being really stupid but I've been messing with the bots and my client for hours and can't get the Seitung farmer bot to work. It says it can't find the client with my character name even after I add the names into the Config file.
I've tried using the base client and multilaunch patched and unpatched and neither seems to be detected. I've even tried a full reinstall with new copies to no avail. Not really sure what to do at this point. I'd even just remove the name confirmation from the script at this point if it fixed the problem.
Thanks in advance for any help!
|
Try changing a few of these things:
Original:
Code:
$txtName = GUICtrlCreateCombo($strName, 60, 330 - 90 - 45, 150, 20)
$Config = IniReadSection("Name.ini", "Name")
For $i = 1 To $Config[0][0]
GUICtrlSetData($txtName, $Config[$i][1] )
Next
New:
Code:
$txtName = GUICtrlCreateCombo("", 60, 330 - 90 -45, 150, 20)
GUICtrlSetData(-1, GetLoggedCharNames())
You also either need to make sure these 2 functions are in the GWA2 file your using (They are not in the Feather Farm GWA2 file so you would have to add them) or just use one of the newer GWA2 files such as the one I posted in the other working bots thread with my Darkwing script.
Code:
Func GetLoggedCharNames()
Local $array = ScanGW()
If $array[0] <= 0 Then Return ''
Local $ret = $array[1]
For $i=2 To $array[0]
$ret &= "|"
$ret &= $array[$i]
Next
Return $ret
EndFunc
;~ Description: Returns an array of logged characters of gw windows (at pos 0 there is the size of the array)
Func ScanGW()
Local $lWinList = WinList("Guild Wars")
Local $lReturnArray[1] = [0]
Local $lPid
For $i = 1 To $lWinList[0][0]
$mGWHwnd = $lWinList[$i][1]
$lPid = WinGetProcess($mGWHwnd)
If __ProcessGetName($lPid) <> "gw.exe" Then ContinueLoop
MemoryOpen(WinGetProcess($mGWHwnd))
If $mGWProcHandle Then
$lReturnArray[0] += 1
ReDim $lReturnArray[$lReturnArray[0] + 1]
$lReturnArray[$lReturnArray[0]] = ScanForCharname()
EndIf
MemoryClose()
$mGWProcHandle = 0
Next
Return $lReturnArray
EndFunc ;==>ScanGW
However you might have to do some more work to get the bot working again if you just use a different GWA2 file - there are many floating about and can cause lots of conflicts.