Wo muss ich denn das course+4a nehmen? Muss ich das in der update.ini oder in der tt6.au3 verändern, bzw wo genau und wie?
Ich kenn mich damit echt ned aus :D
Ich kenn mich damit echt ned aus :D
Ich kann mit sowas allem nix anfangen^^Quote:
OMQ_Q. Ich hatte doch noch geschrieben das Luzifer eine Funktion für einen Binary Pattern Scan hier gepostet hat.
#include <NomadMemory.au3>
$ah_Handle = _MemoryOpen(ProcessExists ("gw.exe"))
$pattern="558BEC83 EC1056.. ........ ....8B08 890D.... ....8BCF 8B50.... ........ ......8B 400889.."
$timer=TimerInit()
$find=_MemoryScan($ah_Handle, $pattern, true)
$timer=TimerDiff($timer)
$N_SECTION_D_POSX = _MemoryRead($find, $ah_Handle)
$POSX = Round(_MemoryRead($N_SECTION_D_POSX, $ah_Handle, "float"), 0)
msgbox(0, "Found", "Found: " & $find & " in " & Round($timer,0) & "ms." & @LF & "Address: " & Hex($N_SECTION_D_POSX) & " Value: " & $POSX)
;==================================================================================
; Function: _MemoryScan($ah_Handle, $pattern [, $after[, $iv_addrStart, [$iv_addrEnd]]])
; Description: Finds the address of the first occurance of a pattern in a process.
; Parameter(s): $ah_Handle - An array containing the Dll handle and the handle
; of the open process as returned by _MemoryOpen().
; $pattern - The pattern you want to find. Provide the pattern
; as a String of hex values. You may use the '.' as wildcard.
; Any other character as '0123456789ABCDEFabcdef.' is ignored.
; Example: "55 8B .. 83"
; $after - (optional) Set to FALSE by default.
; If set to TRUE, the method will return the address
; after the pattern, else the method returns the address
; of the pattern itself.
; $iv_addrStart - (optional) Set to 0x00400000 by default.
; This is the address where the method begins to scan
; for the pattern. It must be in hex format (0x00000000).
; $iv_addrEnd - (optional) Set to 0X00FFFFFF by default.
; This is the address where the method stops to scan
; for the pattern. It must be in hex format (0x00000000).
; Requirement(s): None.
; Return Value(s): On Success - Returns the address of the first occurance of the pattern
; ($after = FALSE) or the address after the first occurance
; of the pattern ($after = TRUE). The address is in
; hexadecimal format.
; On Failure - Returns -1
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = Invalid $pattern.
; Author(s): Luzifer42
; Note(s): The default scan range will be completed in less than one second.
;==================================================================================
Func _MemoryScan($ah_Handle, $pattern, $after=false, $iv_addrStart=0x00400000, $iv_addrEnd=0X00FFFFFF, $step=51200)
If Not IsArray($ah_Handle) Then
SetError(1)
Return -1
EndIf
$pattern=StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "")
IF StringLen($pattern)=0 Then
SetError(2)
Return -1
EndIf
For $addr=$iv_addrStart To $iv_addrEnd Step $step-(StringLen($pattern)/2)
StringRegExp(_MemoryRead($addr, $ah_Handle, "byte[" & $step & "]"), $pattern, 1, 2)
If Not @Error Then
If $after Then
return StringFormat("0x%.8X", $addr+((@Extended-2)/2))
Else
return StringFormat("0x%.8X", $addr+((@Extended-StringLen($pattern)-2)/2))
EndIf
EndIf
Next
Return -1
EndFunc
ist nicht für course..Quote:
$pattern="558BEC83 EC1056.. ........ ....8B08 890D.... ....8BCF 8B50.... ........ ......8B 400889.."
; update.ini [Gw.exe] - __wadim ; 6.3.2009 - 7:18 [SECTION 9-A] AX = 0xa05710 AY = 0xa05714 TOWN_OUT_ID = 0xa06558 NO_NPC = 0xa072f4 DEATH = 0xa05794 MOUSE_COORDX = 0xa05da0 MOUSE_COORDY = 0xa05da4 [B][u]CAMCOURSE = 0x00A05638[/u][/B] EX_AREA_ID = 0xa03038 EXPANDERA = 0xa05643 EXPANDERB = 0xa05642 LVL = 0xa03078 PVP_PVE = 0xa03084 PING = 0xa0049c INTERFACE = 0xa01af0 LOGIN = 0xa057b0 EMAIL = 0xa01af4 MOVETO_TARGET = 0xa05d84 MAPPLAYER = 0xa05d8c MAPTIME = 0xa05678 PNAME = 0xa004e8 STORAGE = 0xa02064 SELLBAGX = 0xa01fe8 MOUSEACTION = 0xa13100 MESSAGE = 0xa05de7 ; +4=y, +8=sizex, +12=sizey INVENTAR = 0xa02554 HERO = 0xa024c8 MMAP = 0xa025a4 PARTY = 0xa0261c CHEST = 0xa02568 ALLBAG = 0xa0257c GUILD = 0xa02534 SKILL = 0xa024f0 TRADE = 0xa02770 PARTYSEARCH = 0xa02638 MERCHANT = 0xa02798 MOVECHAR = 0xa05d6c ;+4=back, +8=left, +C=right, +10=tleft, +14=tright [SECTION D] POSX = 0xd28d1c POSY = 0xd28d20 CHECK_MAP = 0xd289b8 NPC_ID_NEAR = 0xd285c8 NPC_ID_SELECT = 0xd285a8 NPC_ID_MOUSE_SELECT = 0xd285b4 CLIENTPATH = 0xd29590
[SECTION D] POSX = 0xd28d1c POSY = 0xd28d20 CHECK_MAP = 0xd289b8 NPC_ID_NEAR = 0xd285c8 NPC_ID_SELECT = 0xd285a8 NPC_ID_MOUSE_SELECT = 0xd285b4