|
You last visited: Today at 21:42
Advertisement
Pointer auf Energie Wert in Guild Wars
Discussion on Pointer auf Energie Wert in Guild Wars within the Guild Wars forum part of the MMORPGs category.
03/25/2009, 15:34
|
#31
|
elite*gold: 0
Join Date: Jan 2009
Posts: 19
Received Thanks: 1
|
Ich habe noch eine Frage:
Bei einem Update ändert sich nur die Adresse oder auch die Offsets?
|
|
|
03/25/2009, 19:35
|
#32
|
elite*gold: 0
Join Date: Jan 2009
Posts: 19
Received Thanks: 1
|
Ich hätte doch noch eine Frage:
@hEDDA Wie kommst du bei den Helden auf - Offsets.
Wenn ich nach den Adressen suche und dann auf What accesses this address dann kommen bei mir nur positive Offsets
|
|
|
03/27/2009, 10:41
|
#33
|
elite*gold: 0
Join Date: Apr 2006
Posts: 1,722
Received Thanks: 476
|
Quote:
Originally Posted by hEDDA
gab ja mal son plugin für die g15 (gibts glaub ich immernoch aber mittlerweile ohne hp und energie anzeige) und auf der page davon hab ich das vor ewigkeiten mal im forum gelesen glaub ich (also von selbst bin ich da nich drauf gekommen :P)
Offsets die ich eben noch gefundn hab(also anstatt der +14 bzw +28, der rest bleibt gleich):
Hero 1 HP = "-c" (ja ein MINUS und selbstverständlich alle Werte in Hex ^^)
Hero 1 Energy = "-20"
Hero 2 HP = "-40"
Hero 2 Energy = "-54"
Hero 3 HP = "-74"
Hero 3 Energy = "-88"
|
Eben getestet, die Helden sind zugleich deine 3 Mitspieler 
*EDIT: Wer als erstes im Kampfgebiet ist, ist der Hauptspieler. Also kann es durchaus sein, dass wenn Spieler 3 als erstes im Kampfgebiet ist, dass er auch als Chef gilt .. .
|
|
|
03/27/2009, 13:03
|
#34
|
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
|
Quote:
Originally Posted by blauwiggle
Eben getestet, die Helden sind zugleich deine 3 Mitspieler 
*EDIT: Wer als erstes im Kampfgebiet ist, ist der Hauptspieler. Also kann es durchaus sein, dass wenn Spieler 3 als erstes im Kampfgebiet ist, dass er auch als Chef gilt .. .
*EDIT2: Ich scheitere am AU3 Syntax. Wie geht der Syntax bei 2 oder mehr Offsets?
|
Kannst du die nicht auch zwischenspeichern wir bei C++ ?
Also
$adresse1 = 0x0611
$adresse2
Dann mit memory read adresse1 auslesen und in adresse2 schreiben.
Dann adresse2 = adresse2 + offset
dann adresse2 auslesen und das ist dann der wert.
Kp, nie mit autoit wirklich gearbeitet  aber unter c++ ist das kein problem :P
|
|
|
03/27/2009, 18:07
|
#35
|
elite*gold: 0
Join Date: Jan 2009
Posts: 19
Received Thanks: 1
|
PHP Code:
Ich denke du musst die weiteren Offsets in das Array für die Offsets schreiben
also:[
Offsetarray[0] = 0
Offsetarray[1] = 1 ;<- Offset Nr. 1
Offsetarray[2] = 2 ;<- Offset Nr. 2
usw.
Edit: Für Pointer würde ich die UDF nutzen:
AutoIt Quelltext:
#include-once
#region _Memory
;=================================================================================================
; AutoIt Version: 3.1.127 (beta)
; Language: English
; Platform: All Windows
; Author: Nomad
; Requirements: These functions will only work with beta.
;=================================================================================================
; Credits: wOuter - These functions are based on his original _Mem() functions. But they are
; easier to comprehend and more reliable. These functions are in no way a direct copy
; of his functions. His functions only provided a foundation from which these evolved.
;=================================================================================================
;
; Functions:
;
;=================================================================================================
; Function: _MemoryOpen($iv_Pid[, $iv_DesiredAccess[, $iv_InheritHandle]])
; Description: Opens a process and enables all possible access rights to the process. The
; Process ID of the process is used to specify which process to open. You must
; call this function before calling _MemoryClose(), _MemoryRead(), or _MemoryWrite().
; Parameter(s): $iv_Pid - The Process ID of the program you want to open.
; $iv_DesiredAccess - (optional) Set to 0x1F0FFF by default, which enables all
; possible access rights to the process specified by the
; Process ID.
; $if_InheritHandle - (optional) If this value is TRUE, all processes created by
; this process will inherit the access handle. Set to TRUE
; (1) by default. Set to 0 if you want it to be FALSE.
; Requirement(s): A valid process ID.
; Return Value(s): On Success - Returns an array containing the Dll handle and an open handle to
; the specified process.
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $iv_Pid.
; 2 = Failed to open Kernel32.dll.
; 3 = Failed to open the specified process.
; Author(s): Nomad
; Note(s):
;=================================================================================================
Func _MemoryOpen($iv_Pid, $iv_DesiredAccess = 0x1F0FFF, $if_InheritHandle = 1)
If Not ProcessExists($iv_Pid) Then
SetError(1)
Return 0
EndIf
Local $ah_Handle[2] = [DllOpen('kernel32.dll')]
If @Error Then
SetError(2)
Return 0
EndIf
Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', $iv_DesiredAccess, 'int', $if_InheritHandle, 'int', $iv_Pid)
If @Error Then
DllClose($ah_Handle[0])
SetError(3)
Return 0
EndIf
$ah_Handle[1] = $av_OpenProcess[0]
Return $ah_Handle
EndFunc
;=================================================================================================
; Function: _MemoryRead($iv_Address, $ah_Handle[, $sv_Type])
; Description: Reads the value located in the memory address specified.
; Parameter(s): $iv_Address - The memory address you want to read from. It must be in hex
; format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $sv_Type - (optional) The "Type" of value you intend to read. This is set to
; 'dword'(32bit(4byte) signed integer) by default. See the help file
; for DllStructCreate for all types.
; An example: If you want to read a word that is 15 characters in
; length, you would use 'char[16]'.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns the value located at the specified address.
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = $sv_Type was not a string.
; 3 = $sv_Type is an unknown data type.
; 4 = Failed to allocate the memory needed for the DllStructure.
; 5 = Error allocating memory for $sv_Type.
; 6 = Failed to read from the specified process.
; Author(s): Nomad
; Note(s): Values returned are in Decimal format, unless specified as a 'char' type, then
; they are returned in ASCII format. Also note that size ('char[size]') for all
; 'char' types should be 1 greater than the actual size.
;=================================================================================================
Func _MemoryRead($iv_Address, $ah_Handle, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Local $v_Value = DllStructGetData($v_Buffer, 1)
Return $v_Value
Else
SetError(6)
Return 0
EndIf
EndFunc
;=================================================================================================
; Function: _MemoryWrite($iv_Address, $ah_Handle, $v_Data[, $sv_Type])
; Description: Writes data to the specified memory address.
; Parameter(s): $iv_Address - The memory address you want to write to. It must be in hex
; format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $v_Data - The data to be written.
; $sv_Type - (optional) The "Type" of value you intend to write. This is set to
; 'dword'(32bit(4byte) signed integer) by default. See the help file
; for DllStructCreate for all types.
; An example: If you want to write a word that is 15 characters in
; length, you would use 'char[16]'.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = $sv_Type was not a string.
; 3 = $sv_Type is an unknown data type.
; 4 = Failed to allocate the memory needed for the DllStructure.
; 5 = Error allocating memory for $sv_Type.
; 6 = $v_Data is not in the proper format to be used with the "Type"
; selected for $sv_Type, or it is out of range.
; 7 = Failed to write to the specified process.
; Author(s): Nomad
; Note(s): Values sent must be in Decimal format, unless specified as a 'char' type, then
; they must be in ASCII format. Also note that size ('char[size]') for all
; 'char' types should be 1 greater than the actual size.
;=================================================================================================
Func _MemoryWrite($iv_Address, $ah_Handle, $v_Data, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
Else
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(6)
Return 0
EndIf
EndIf
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Return 1
Else
SetError(7)
Return 0
EndIf
EndFunc
;=================================================================================================
; Function: _MemoryClose($ah_Handle)
; Description: Closes the process handle opened by using _MemoryOpen().
; Parameter(s): $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = Unable to close the process handle.
; Author(s): Nomad
; Note(s):
;=================================================================================================
Func _MemoryClose($ah_Handle)
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
If Not @Error Then
DllClose($ah_Handle[0])
Return 1
Else
DllClose($ah_Handle[0])
SetError(2)
Return 0
EndIf
EndFunc
;=================================================================================================
; Function: _MemoryPointerRead ($iv_Address, $ah_Handle, $av_Offset[, $sv_Type])
; Description: Reads a chain of pointers and returns an array containing the destination
; address and the data at the address.
; Parameter(s): $iv_Address - The static memory address you want to start at. It must be in
; hex format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $av_Offset - An array of offsets for the pointers. Each pointer must have an
; offset. If there is no offset for a pointer, enter 0 for that
; array dimension.
; $sv_Type - (optional) The "Type" of data you intend to read at the destination
; address. This is set to 'dword'(32bit(4byte) signed integer) by
; default. See the help file for DllStructCreate for all types.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns an array containing the destination address and the value
; located at the address.
; On Failure - Returns 0
; @Error - 0 = No error.
; 1 = $av_Offset is not an array.
; 2 = Invalid $ah_Handle.
; 3 = $sv_Type is not a string.
; 4 = $sv_Type is an unknown data type.
; 5 = Failed to allocate the memory needed for the DllStructure.
; 6 = Error allocating memory for $sv_Type.
; 7 = Failed to read from the specified process.
; Author(s): Nomad
; Note(s): Values returned are in Decimal format, unless a 'char' type is selected.
; Set $av_Offset like this:
; $av_Offset[0] = NULL (not used)
; $av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
; $av_Offset[2] = Offset for pointer 2
; etc...
; (The number of array dimensions determines the number of pointers)
;=================================================================================================
Func _MemoryPointerRead ($iv_Address, $ah_Handle, $av_Offset, $sv_Type = 'dword')
If IsArray($av_Offset) Then
If IsArray($ah_Handle) Then
Local $iv_PointerCount = UBound($av_Offset) - 1
Else
SetError(2)
Return 0
EndIf
Else
SetError(1)
Return 0
EndIf
Local $iv_Data[2], $i
Local $v_Buffer = DllStructCreate('dword')
For $i = 0 to $iv_PointerCount
If $i = $iv_PointerCount Then
$v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 2)
Return 0
EndIf
$iv_Address = '0x' & hex($iv_Data[1] + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(7)
Return 0
EndIf
$iv_Data[1] = DllStructGetData($v_Buffer, 1)
ElseIf $i = 0 Then
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(7)
Return 0
EndIf
$iv_Data[1] = DllStructGetData($v_Buffer, 1)
Else
$iv_Address = '0x' & hex($iv_Data[1] + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(7)
Return 0
EndIf
$iv_Data[1] = DllStructGetData($v_Buffer, 1)
EndIf
Next
$iv_Data[0] = $iv_Address
Return $iv_Data
EndFunc
;=================================================================================================
; Function: _MemoryPointerWrite ($iv_Address, $ah_Handle, $av_Offset, $v_Data[, $sv_Type])
; Description: Reads a chain of pointers and writes the data to the destination address.
; Parameter(s): $iv_Address - The static memory address you want to start at. It must be in
; hex format (0x00000000).
; $ah_Handle - An array containing the Dll handle and the handle of the open
; process as returned by _MemoryOpen().
; $av_Offset - An array of offsets for the pointers. Each pointer must have an
; offset. If there is no offset for a pointer, enter 0 for that
; array dimension.
; $v_Data - The data to be written.
; $sv_Type - (optional) The "Type" of data you intend to write at the destination
; address. This is set to 'dword'(32bit(4byte) signed integer) by
; default. See the help file for DllStructCreate for all types.
; Requirement(s): The $ah_Handle returned from _MemoryOpen.
; Return Value(s): On Success - Returns the destination address.
; On Failure - Returns 0.
; @Error - 0 = No error.
; 1 = $av_Offset is not an array.
; 2 = Invalid $ah_Handle.
; 3 = Failed to read from the specified process.
; 4 = $sv_Type is not a string.
; 5 = $sv_Type is an unknown data type.
; 6 = Failed to allocate the memory needed for the DllStructure.
; 7 = Error allocating memory for $sv_Type.
; 8 = $v_Data is not in the proper format to be used with the
; "Type" selected for $sv_Type, or it is out of range.
; 9 = Failed to write to the specified process.
; Author(s): Nomad
; Note(s): Data written is in Decimal format, unless a 'char' type is selected.
; Set $av_Offset like this:
; $av_Offset[0] = NULL (not used, doesn't matter what's entered)
; $av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
; $av_Offset[2] = Offset for pointer 2
; etc...
; (The number of array dimensions determines the number of pointers)
;=================================================================================================
Func _MemoryPointerWrite ($iv_Address, $ah_Handle, $av_Offset, $v_Data, $sv_Type = 'dword')
If IsArray($av_Offset) Then
If IsArray($ah_Handle) Then
Local $iv_PointerCount = UBound($av_Offset) - 1
Else
SetError(2)
Return 0
EndIf
Else
SetError(1)
Return 0
EndIf
Local $iv_StructData, $i
Local $v_Buffer = DllStructCreate('dword')
For $i = 0 to $iv_PointerCount
If $i = $iv_PointerCount Then
$v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 3)
Return 0
EndIf
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(8)
Return 0
EndIf
$iv_Address = '0x' & hex($iv_StructData + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(9)
Return 0
Else
Return $iv_Address
EndIf
ElseIf $i = 0 Then
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(3)
Return 0
EndIf
$iv_StructData = DllStructGetData($v_Buffer, 1)
Else
$iv_Address = '0x' & hex($iv_StructData + $av_Offset[$i])
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If @Error Then
SetError(3)
Return 0
EndIf
$iv_StructData = DllStructGetData($v_Buffer, 1)
EndIf
Next
EndFunc
#endregion
|
|
|
03/27/2009, 18:20
|
#36
|
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
|
Benutz doch mal bitte Code oder PHP tags. Danke!
|
|
|
03/28/2009, 00:13
|
#37
|
elite*gold: 0
Join Date: Feb 2008
Posts: 147
Received Thanks: 184
|
nur falls wen interessiert, die jeweiligen aktuellen max werte als dword liegen genau ein dword weiter also +4
max hp = hp +4
max en = en +4
mfg
|
|
|
03/30/2009, 17:15
|
#38
|
elite*gold: 0
Join Date: Nov 2008
Posts: 576
Received Thanks: 191
|
hey hedda.. bei mir stimmen irgendwie deine offsets für die HP/E der gefolgsleute nicht. hätte da irgendwer die richtigen?
|
|
|
03/30/2009, 19:36
|
#39
|
elite*gold: 0
Join Date: Jan 2009
Posts: 19
Received Thanks: 1
|
Ich kann dir Adressen für HP sagen:
Spieler2
hp=00D28A70+104+-c
Spieler3
hp=00D28A70+104+-40
Spieler4
hp=00D28A70+104+-74
Spieler5
hp=00D286B0+5C+28
Spieler6
hp=00D286B0+60+28
Spieler7
hp=00D286B0+64+28
Spieler8
hp=00D286B0+68+28
PS: Das erste is die Adresse nach dem ersten + das 1. Offset und dann das zweite Offset.
Und ich hätte noch eine Frage @wadim:
Du hast ja eine Addresse (NPC_ID_SELECT). Und der Wert verändert sich je nach Gebiet. Wenn ich jetzt z.B. Spieler 4 auswähle und dann den Wert speichere und in ein anderes Gebiet gehe und die Addresse auf den gespeicherten Wert zurücksetzte ist nicht mehr der gleiche Spieler ausgewählt.
Kann ich irgendwie Spieler 4 auswählen über diese Addresse?
|
|
|
03/30/2009, 19:50
|
#40
|
elite*gold: 0
Join Date: Nov 2008
Posts: 576
Received Thanks: 191
|
nein leider nicht  , aber es gibt doch eine funktion in gw die die einzelnen gruppenmitglieder auswählen kann.. bei der standarteinstellung sind die werte nicht gesetzt.
|
|
|
03/30/2009, 20:17
|
#41
|
elite*gold: 0
Join Date: Nov 2008
Posts: 576
Received Thanks: 191
|
noch ne frage. wie genau werden die adressen in kampf (RA/TA) den einzelnen spielern zugewiesen? welche adresse steht für welchen spieler, gibts da irgend eine bestimmte reihenfolge?
|
|
|
03/31/2009, 15:32
|
#42
|
elite*gold: 0
Join Date: Apr 2006
Posts: 1,722
Received Thanks: 476
|
Quote:
Originally Posted by __wadim
noch ne frage. wie genau werden die adressen in kampf (RA/TA) den einzelnen spielern zugewiesen? welche adresse steht für welchen spieler, gibts da irgend eine bestimmte reihenfolge?
|
Wer als erstes im Spiel ist, gilt als Spieler 1, auch wenn er eigentlich Spieler 4 in der Gruppe ist.
|
|
|
03/31/2009, 18:00
|
#43
|
elite*gold: 0
Join Date: Jan 2009
Posts: 19
Received Thanks: 1
|
Die Addressen haben sich mit dem neuen Update heude verändert!
|
|
|
04/02/2009, 13:44
|
#44
|
elite*gold: 0
Join Date: Mar 2008
Posts: 68
Received Thanks: 20
|
Quote:
Originally Posted by Yakumo500
Ich hätte doch noch eine Frage:
@hEDDA Wie kommst du bei den Helden auf - Offsets.
Wenn ich nach den Adressen suche und dann auf What accesses this address dann kommen bei mir nur positive Offsets
|
Huhu bin in den letzten Tagen bisl unterwegs und sitz jetz nur an meim lapi und nich zuhause am desktop...
so wie du denkst hab ichs nich gemacht ich hab einfach nur nach der aktuellen (nicht statische) addresse der helden gesucht und festgestellt dass diese eigentlich ganz in der nähe der eigenen hp/energy gespeichert werden, jetzt hab ich mir einfach den offset selbst ausgerechnet und siehe da, es hat bis dato in jedem gebiet und nach jedem neustart noch gestimmt, deswegen gehe ich davon aus, dass das in zukunft auch so sein könnte...
das problem ist nämlich dass wenn man die addressen der helden wie üblich zurückverfolgt, bekommt man ne kette von 4 oder 5 offsets, und da find ichs mit 2 offsets doch etwas bequemer
gruß
|
|
|
04/02/2009, 14:41
|
#45
|
elite*gold: 0
Join Date: Jan 2009
Posts: 388
Received Thanks: 113
|
ich komm mit dem Code von Yakumo nicht klar:
Also sprich wie das ganze aussehen muss, wäre nett wenn mir das wer erklären könnte.
|
|
|
Similar Threads
|
Guild Wars Pointer nur lesen nicht verändern!
01/11/2009 - General Coding - 4 Replies
Hi,
Ich suche wie viele zuvor auch Pointer oder statische Adressen in Guild Wars. Diese möchte ich nicht verändern ich möchte sie jediglich auslesen.
Eigendlich benötige ich nur die Position und eventuel die Energie
Kann mir jmd helfen?
|
Guild Wars Pointer finden?!
07/06/2008 - Guild Wars - 18 Replies
Hey, wollte mal fragen ob wer ahnung hat mit der CE und Pointern...finde bei GW keinen einzigen Pointer damit..
Brauceh einen Pointer meiner Lebenspunkte, und die von meinen Gruppenmitgliedern.. inkl. de Energie.. kann mir da wer weiterhelfen? :)
|
All times are GMT +1. The time now is 21:46.
|
|