Basic code won't work. menu

User Tag List

Results 1 to 6 of 6
  1. #1
    kaysersoze's Avatar Private
    Reputation
    1
    Join Date
    Dec 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Basic code won't work.

    I'v been trying to get a object manager working now for the last 2 days, (I'v been doing very little besides working on this) and I have come absolutely no where. The code below doesnt work, i get a exception when i try to assign a adress to objMngr saying "ReadUInt failed".

    I have used other values for offset and clientconnection before and avoided the above error but never been able to get any relevant information off the objects. I have been scanning these and other forums for the last 2 days and I just hope one of you spots the prob epic noob misstake I'm doing.

    So what i'm asking what is wrong with the code below? As far as I understand it should work :/ and I should be able to iterate over all the objects and get all kinds of juicy values .

    I'm using C# btw.

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Magic;
    using MemoryLib;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                BlackMagic WoW = new BlackMagic();
                WoW.OpenProcessAndThread(SProcess.GetProcessFromProcessName("wow.exe"));
    
                uint g_clientConnection = WoW.ReadUInt(0x011CB310);
                uint objMngr = WoW.ReadUInt(g_clientConnection + 0x28A4);
                uint cur_obj = WoW.ReadUInt(objMngr+0xAC);
                uint next_obj = WoW.ReadUInt(cur_obj + 0x3C);
            }
        }
    }

    Basic code won't work.
  2. #2
    !@^^@!'s Avatar Active Member
    Reputation
    23
    Join Date
    Feb 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check this guide out: http://www.mmowned.com/forums/wow-me...e-objects.html all you need to do is replace the offsets

  3. #3
    kaysersoze's Avatar Private
    Reputation
    1
    Join Date
    Dec 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by !@^^@! View Post
    check this guide out: http://www.mmowned.com/forums/wow-me...e-objects.html all you need to do is replace the offsets
    I have read that thread several times . Below is the offsets used in that thread and they are the same I'v been trying to use :/.
    Code:
    private const uint staticClientConnection = 0x011CB310, // client connection, same address every boot
    objectManagerOffset = 0x28A4,                                  // offset from the CientConnection to the object manager

  4. #4
    akh's Avatar Member
    Reputation
    4
    Join Date
    Mar 2008
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The offsets you are using are outdated, you should use the current ones which are:
    clientConnection = 0xC923C0
    objMgrOffset = 0x2E04

    The offsets can always be found by looking at the CreateCurMgr function which is currently located at 0x0047E1E0:

    ...
    mov ecx, TlsIndex
    mov edx, large fs:2Ch
    mov esi, [edx+ecx*4]
    mov ecx, dword_C923C0
    mov [ecx+2E04h], eax
    mov edx, dword_C923C0
    mov [esi+8], eax
    mov [eax+0D0h], edx
    call sub_47E170
    mov eax, [esi+8]
    mov [eax+0CCh], edi
    pop edi
    pop esi
    pop ebp
    retn
    ...
    Last edited by akh; 12-27-2009 at 09:09 PM.

  5. #5
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, use System.Diagnostics.Process.EnterDebugMode().

  6. #6
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you can't use search to figure out the basics; don't bother posting.

Similar Threads

  1. [Question] Basic model edits not working
    By LeafyBlade in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 05-02-2009, 04:45 PM
  2. Spirit Healers won't work ;<
    By reconz in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 03-08-2009, 09:17 PM
  3. C++ Script Won't Work, Please Help!
    By guitargod218 in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 06-04-2008, 01:48 PM
  4. [Help] Fire Hunter won't work
    By andrelunde in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 05-07-2008, 08:55 AM
  5. Glitchy patch won't work
    By Tompilot in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 04-21-2008, 04:40 AM
All times are GMT -5. The time now is 02:24 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search