Hi guys,
I hope anyone will be able (and will want) to help me. Since the last patch, I'm screwed. I used an open source radar to create a simple BG bot. Sadly, I don't have the name of the author in his readme, but he gives credit to the mmowned community for the memoryReader.dll.
I consider myself as a good learning coder but I can't get my bot to read any infos from wow now.
Here's the "connection" code I got ... in VB.net
Code:
Public firstObjectAddress As UInt32 = 0 'First Object's .BaseAddress In the ObjMgr
'Which is calculated in the LoadObjMgr() Function, at run-time, it's NOT static.
Public memReader As New MemoryReader.Memory()
Private StaticClientConnection As UInt32 = &H12705B0
Private ObjectManagerOffset As UInt32 = &H2D8C ' 3.1.1 0x2c24
Private ClientConnection As UInt32 = 0
Private ObjectManager As UInt32 = 0
Private FirstObjectOffset As UInt32 = &HAC
Private LocalGuidOffset As UInt32 = &HC0
Code:
Public Function LoadObjMgr() As Boolean
If memReader.SetProcess("wow", "Read") = True Then
DoOutput("Memory_READ: OK")
Else
DoOutput("Unable to READ wow's memory...STOPPING.")
Return False
End If
'if we get here...we attached to wow.ram successfully :)
Try
ClientConnection = memReader.ReadUInt32(New IntPtr(StaticClientConnection))
ObjectManager = memReader.ReadUInt32(New IntPtr(ClientConnection + ObjectManagerOffset))
firstObjectAddress = memReader.ReadUInt32(New IntPtr(ObjectManager + FirstObjectOffset))
Dim tempLocalPlayerGuid As UInt64
tempLocalPlayerGuid = memReader.ReadUInt64(New IntPtr(ObjectManager + LocalGuidOffset))
Dim tempBaseAddr As UInt32 = 0
tempBaseAddr = wowBasicObject.GetObjectBaseByGuid(tempLocalPlayerGuid)
LocalPlayer = New wowLocalPlayer(tempBaseAddr)
DoOutput("Found Local Character: OK")
Catch ex As Exception
DoOutput("ERROR Loading Object Manager! CRITICAL FAIL!")
Return False
End Try
DoOutput("OBJMGR FOUND 100% OK")
Return True
End Function
I hope everything is clear enough.
Thanks