PHP Code:
#include <tt6.au3>
#include <NomadMemory.au3>
Global $MapPos, $CurrentPosX, $CurrentPosY, $PosX, $PosY, $PID, $hprocess, $CheckMap, $CourseStat, $Death, $dll, $Map, $GTime
$hwnd = "gw.exe"
$PID = ProcessExists("Gw.exe")
$hprocess = _MemoryOpen($PID)
$MEMORYX = IniRead(@ScriptDir & "\update.ini", "SECTION 9-A", "POSX","")
$MEMORYY = IniRead(@ScriptDir & "\update.ini", "SECTION 9-A", "POSY","")
$CURRENTPOSX = _MEMORYREAD($MEMORYX, $HPROCESS)
$CURRENTPOSY = _MEMORYREAD($MEMORYY, $HPROCESS)
;MsgBox(0,"",$MEMORYX)
Main()
Func Main()
WayOut()
EndFunc
Func WayOut()
$CURRENTPOSX = _MEMORYREAD($MEMORYX, $HPROCESS)
$CURRENTPOSY = _MEMORYREAD($MEMORYY, $HPROCESS)
If ($CurrentPosX <= 1182570389) And ($CurrentPosX >= 1182876370) And ($CurrentPosY <= 1184258748) And ($CurrentPosY >= 1184419151) Then
PrepMoveTo()
MoveTo (1,16941.2, 18821.5)
MoveTo (1,17334.8, 18220.8)
MoveTo (1,17860.6, 17398.7)
MoveTo (1,18136.7, 16917.3)
MoveTo (1,18954.2, 16863.5)
MoveTo (1,19901.9, 16868)
StopMoveTo()
;ElseIf ($CurrentPosX <= 1183430992) And ($CurrentPosX >= 1183582399) And ($CurrentPosY <= 1180681594) And ($CurrentPosY >= 1181048957) Then
;ElseIf ($CurrentPosX <= 1180757327) And ($CurrentPosX >= 1180778848) And ($CurrentPosY <= 1181067117) And ($CurrentPosY >= 1181518592) Then
EndIf
EndFunc