hmm ich hab nur keine funktion die man callen kann ^^
war in der glint demo nicht mit bei.
MfG
war in der glint demo nicht mit bei.
MfG
mfgQuote:
Hey,
Hab ein kleines Problem und zwar tritt bei mir immer folgender Fehler auf:
Warum kommt der fehler ?Code:F:\Sicherungen\Au3 Scripts\1) Meine Bots\1) Ascalon Tut Bots\Ascalon Bier Farm Bot\data\tt6.au3 (636) : ==> Cannot assign values to constants.: $WM_KEYDOWN = 0x100 ^ ERROR
mfg
Hokler
#include "tt6.au3"
; globals
Global $runs = 0
Global $timer = TimerInit()
;key handler
HotKeySet("{PAUSE}", "TogglePause")
Global $Paused = False
;create status window and thread
Global $win = GUICreate("Status Window", 200, 100, 5, 5)
GUISetState(@SW_SHOW)
Global $label_stat = GUICtrlCreateLabel("Runs: 000 min: 000 sec: 00", 10, 10)
;enable status window thread
AdlibEnable("status",1000)
Func status()
$time = TimerDiff($timer)
$string = StringFormat("Runs: %03u min: %03u sec: %02u", $runs, $time/1000/60, Mod($time/1000,60))
GUICtrlSetData($label_stat, $string)
EndFunc
; pause
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(500)
WEnd
EndFunc
if not WinActivate("Guild Wars") then
winactivate("Guild Wars")
endif
Sleep(5000)
While True
;go to exit
PrepMoveTo()
;north
if CheckArea(1967,1736) Then
MoveTo(1,1671,1619)
MoveTo(1,-543,1611)
MoveTo(1,-1210,2032)
MoveTo(1,-3675,1462)
MoveTo(1,-4451,492)
elseif CheckArea(-900,989) Then
MoveTo(1,-1214,2084)
MoveTo(1,-2107,2188)
MoveTo(1,-3104,1865)
MoveTo(1,-3675,1462)
MoveTo(1,-4451,492)
ElseIf CheckArea(-1993,2549) Then
MoveTo(1,-1214,2084)
MoveTo(1,-2107,2188)
MoveTo(1,-3104,1865)
MoveTo(1,-3675,1462)
MoveTo(1,-4451,492)
EndIf
WEnd
keepMoveTo()
While (_memoryread($memmap,$hprocess)) <> 1
Sleep(500)
WEnd
Sleep(2000)
PrepMoveTo()
MoveTo(1,18841,-3927)
MoveTo(1,17410,-3988)
MoveTo(1,16431,-4588)
MoveTo(1,15812,-5682)
Sleep(200)
stopMoveTo()
[B]0x00A0B7C0 = 1 wenn Chat bereit zu schreiben sonst 0[/B] [U]Sonstiges:[/U] 0x00A01F58 = 1 wenn Chatfenster aufgeklappt sonst 0 0x00A01F5C = 0 -> Alle, 1 -> Bündnis, 2 -> Gilde, 3 -> Team, 4 -> Handel, 5 -> Flüstern
@blauwiggle soll das bedeuten, wenn ich eine andere adlibenable("...") aufrufe das die andere automatisch beendet wird?Quote:
adlibenable("was anderes aufrufen")
adlibenable("cast")
Jo so is es...ich habs so gelöst,dass ich für den fight ne eigene exe laufen lasse und währenddessen in der main exe den deathcheck mitQuote:
@blauwiggle soll das bedeuten, wenn ich eine andere adlibenable("...") aufrufe das die andere automatisch beendet wird?
aber schonmal danke!!!
Greetz
adlibenable("Deathcheck")