K this is what i'm doing right now. But the coords don't match with the WoWEmuHacker.
Code:
Public Class Form1
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, _
ByVal IpBaseAdress As Integer, _
ByRef IpBuffer As Integer, _
ByVal nSize As Integer, _
ByVal IpNumberOfBytesWritten As Integer) As Integer
Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, _
ByVal IpBaseAdress As Integer, _
ByRef IpBuffer As Integer, _
ByVal nSize As Integer, _
ByVal IpNumberOfBytesWritten As Integer) As Integer
Private Function GetProcessByName(ByVal Name As String) As Process
For Each proc As Process In Process.GetProcesses
If proc.MainWindowTitle = Name Then
Return proc
End If
Next
Return Nothing
End Function
Private ADRESS As Integer
Private X As Double
Private Y As Double
Private Z As Double
Private iMapID As Integer
Private pLink As Process
Private nub As Integer
'X Coord:
'[00E29D28]+0xBF4
'Y Coord:
'[00E29D28]+0xBF0
'Z Coord:
'[00E29D28]+0xBF8
'Map ID:
'0x00E18DB4
Private Sub cmdGet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGet.Click
ReadProcessMemory(pLink.Handle, &HE29D28, ADRESS, 8, 0)
ReadProcessMemory(pLink.Handle, ADRESS + &HBF4, X, 8, 0)
ReadProcessMemory(pLink.Handle, ADRESS + &HBF0, Y, 8, 0)
ReadProcessMemory(pLink.Handle, ADRESS + &HBF8, Z, 8, 0)
ReadProcessMemory(pLink.Handle, &HE18DB4, iMapID, 4, 0)
txtX.Text = X
txtY.Text = Y
txtZ.Text = Z
txtMapID.Text = iMapID
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
pLink = GetProcessByName("World of Warcraft")
Process.EnterDebugMode()
End Sub
End Class
Am I doing something wrong?