Habe mal grade nochmal ne frage habe jetzt ein bischen rumgespielt und mal so andere bots angeguckt wo 1-2 memory sachen mit bei sind^^
Habe nun das eingebaut zum checken
Quote:
#include<nomadmemory.au3>
Call("_test")
Global $CheckMap, $PID, $hprocess, $CurrentPosX, $CurrentPosY, $PosX, $PosY
$PosX = 0xa04468
$PosY = 0xa0446c
$CheckMap = 0x00D27598
$Town = 0
$Area = 1
$Ladescreen = 2
$PID = WinGetProcess("Guild Wars")
$mem = _MemoryOpen($PID)
Func _Check()
$CurrentPosX = _MemoryRead($PosX, $mem)
$CurrentPosY = _MemoryRead($PosY, $mem)
EndFunc
Func _test()
_Check()
Select
Case ($CurrentPosX <= 1183929477) And ($CurrentPosX >= 1183885897) And ($CurrentPosY <= 3330436829) And ($CurrentPosY >= 3330411274)
_funkst()
case else
$rndnumber = Random(200, 400)
Sleep($rndnumber)
_error()
EndSelect
EndFunc
Func _funkst()
MsgBox(2,@ScriptName,"klappt",10)
EndFunc
Func _error()
MsgBox(2,@ScriptName,"klappt",10)
EndFunc
|
Quote:
|
also das mit klappt und error ist halt nur zum testen^^
|
auf jeden fall kommt immer dieser Error
Quote:
: ==> Variable used without being declared.:
$CurrentPosX = _MemoryRead($PosX, $mem)
$CurrentPosX = _MemoryRead(^ ERROR
->12:49:31 AutoIT3.exe ended.rc:1
|
Woran liegt das nun schon wieder