Ändern Bezirk hat ein Bot

01/12/2010 14:40 waffer2000#16
ja, ich mit einem Basis-GWCA-raptor


Yes, I use a base GWCA_raptor
01/12/2010 15:35 Garry goes Sheep#17
Quote:
Originally Posted by waffer2000 View Post
ja, ich mit einem Basis-GWCA-raptor
Ask somebody to translate for you in English.
01/23/2010 08:01 kolondes#18
bei diesen zusatz script wechselt er nach jeden Run den distrikt.

Code:
;#####
$dist = 1
;#####

$cbType = 'int'

	Cmd($CA_ChangeDistrict, $dist, 1)
	$cbVar[0] = -1
	While $cbVar[0] <> 2
		Sleep(100)
		CmdCB($CA_GetMapLoading)
	WEnd
	While $cbVar[0] <> 0
		Sleep(100)
		CmdCB($CA_GetMapLoading)
	
WEnd
wenn ich dir helfen konnte bitte einmal thx :)
01/23/2010 16:49 in MIND#19
das funktioniert?
ich hab da iwie meine zweifel dran
01/23/2010 17:05 kolondes#20
test es einfach und urteile dannn..
01/24/2010 00:55 waffer2000#21
does not work. Korean is Asian region 1 and does not move
01/24/2010 09:42 kolondes#22
You have put down Dan it at the wrong place. in your script.
Here an example where it is functioned to 100%.

Code:
; ----------------
; GWCA Chest Bot
; Started Feb 26th
; ----------------
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include "GWCAConstants.au3"

Global $cGUI = GUICreate("GWCA")
Global $runs = 0 ;Variable for number of runs completed
Global $chests = 0 ;Variable for number of chests opened
Global $maxChests = 35 ;Number of chests to run, -1 = infinity !!!!!!!!!!!!!

Global $SLOT_DWARVENSTABILITY = 1
Global $SLOT_DASH = 2
Global $SLOT_SHROUD_OF_DISTRISS = 4

GUIRegisterMsg(0x500, "WndCallback")

; ---
; BOT
; ---
$cbType = "int"
CmdCB($CA_GETMAPID)
If $cbVar[0] <> 675 Then
	Debug("Not in Boreal Station! Exiting...")
	Exit
EndIf


While 1
	If $chests = $maxChests Then
		ConsoleWrite("> Reached maximum number of chests to open! Exiting..."&@CRLF)
		Exit
	EndIf

	Debug("Commencing new run...")
	$tTimer = TimerInit()
	$iRet = BotLoop()

	Cmd($CA_ZONEMAP, 675)
	Debug("Zoning back to Boreal Station, 675")
	Do
		Sleep(500)
		CmdCB($CA_GETMAPLOADING)
	Until $cbVar[0] = 0
	Debug("Loaded into outpost")
	Sleep(Random(1000,1300))

	$tTimer = TimerDiff($tTimer)
	Debug("Run completed!")
[COLOR="Magenta"][COLOR="Red"];#####
$dist = 1
;#####

$cbType = 'int'

	Cmd($CA_ChangeDistrict, $dist, 1)
	$cbVar[0] = -1
	While $cbVar[0] <> 2
		Sleep(100)
		CmdCB($CA_GetMapLoading)
	WEnd
	While $cbVar[0] <> 0
		Sleep(100)
		CmdCB($CA_GetMapLoading)
	
WEnd[/COLOR][/COLOR]



	$runs += 1
	If $iRet Then $chests += 1
	ConsoleWrite("+ CHESTBOT :: Last run time: "&Round($tTimer/1000,2)&"s, Runs = "&$runs&", Chests = "&$chests&@CRLF)

	Sleep(Random(1000,1300))
WEnd
01/24/2010 12:03 waffer2000#23
remains in District 1

District 1 = Asian Korean
District 2 = Europe
District 3 = Asia Chimois
District 4 = Asian Japanese

Cmd ($ CA_ChangeDistrict, 2, X) 2 = region, X language

X language? . I seek the array reference X