Player movement problems menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Player movement problems

    Hello, I'm sorry to disturb you with my 2nd question but here it is:

    Code:
            private void ClickToMove(float newX, float newY, float newZ)
            {
                BlackMagic wow = new BlackMagic();
                IntPtr BaseWoW = wow.MainModule.BaseAddress;
    
                wow.WriteFloat(0xD02C00 + 0x8C, newX);
                wow.WriteFloat(0xD02C00 + 0x8C + 0x4, newY);
                wow.WriteFloat(0xD02C00 + 0x8C + 0x4 + 0x4, newZ);
                wow.WriteUInt(0xD02C00, 4);
            }
    for some reason this causes an error:
    Code:
    system.nullreferenceexception object reference not set to an instance of an object
    while doing
    Code:
    ClickToMove(-585.155f,-4245.82f,38.3248f);
    This is rather weird and I see no reason for this not working.

    SOLUTION: (Thanks to JuJuBoSc and Yellowspark)
    Code:
            private void ClickToMove(float newX, float newY, float newZ)
            {
                var wowProc = (from Process p in Process.GetProcesses() where p.MainWindowTitle.Contains("World of Warcraft") select p.Id).FirstOrDefault();
                BlackMagic wow = new BlackMagic();
                wow.OpenProcessAndThread(wowProc);
                IntPtr BaseWoW = wow.MainModule.BaseAddress;
                wow.WriteFloat((uint)BaseWoW + 0xD02C00 + 0x8C, newX);
                wow.WriteFloat((uint)BaseWoW + 0xD02C00 + 0x8C + 0x4, newY);
                wow.WriteFloat((uint)BaseWoW + 0xD02C00 + 0x8C + 0x4 + 0x4, newZ);
                wow.WriteInt((uint)BaseWoW + 0xD02C00 + 0x1C, 4);
            }
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    Also if you don't mind answering another question I have a function which I'd like to return a string but it has some problems with doing that:
    Code:
            private void GetCharName()
            {
                BlackMagic wow = new BlackMagic();
                IntPtr BaseWoW = wow.MainModule.BaseAddress;
    
                wow.ReadASCIIString((uint)BaseWoW + 0xEAEAA8, 256);
            }
    Cannot convert 'void' to 'string' is the error.

    SOLUTION: (Thank you Yellowspark)
    Code:
    private string GetCharName()
            {
                var wowProc = (from Process p in Process.GetProcesses() where p.MainWindowTitle.Contains("World of Warcraft") select p.Id).FirstOrDefault();
                BlackMagic wow = new BlackMagic();
                wow.OpenProcessAndThread(wowProc);
                IntPtr BaseWoW = wow.MainModule.BaseAddress;
                return wow.ReadASCIIString((uint)BaseWoW + 0xEAEAA8, 256); 
            }
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    I hope you guys will help me with these small problems, thanks in advance! ^^
    Last edited by mathix; 03-10-2013 at 10:22 AM.

    Player movement problems
  2. #2
    yellowspark's Avatar Contributor
    Reputation
    147
    Join Date
    Feb 2012
    Posts
    165
    Thanks G/R
    0/4
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use
    Code:
    var wowProc = (from Process p in Process.GetProcesses() where p.MainWindowTitle.Contains("World of Warcraft") select p.Id).FirstOrDefault();
    BlackMagic wow = new BlackMagic();
    wow.OpenProcessAndThread(wowProc);
    wow.WriteFloat(0xD02C00 + 0x8C, newX);
    wow.WriteFloat(0xD02C00 + 0x8C + 0x4, newY);
    wow.WriteFloat(0xD02C00 + 0x8C + 0x4 + 0x4, newZ);
    wow.WriteUInt(0xD02C00, 4);
    And for your 2nd question
    Code:
     private string  GetCharName
            {
                var wowProc = (from Process p in Process.GetProcesses() where p.MainWindowTitle.Contains("World of Warcraft") select p.Id).FirstOrDefault();
                BlackMagic wow = new BlackMagic();
                wow.OpenProcessAndThread(wowProc);
                IntPtr BaseWoW = wow.MainModule.BaseAddress;
                get
                {
                return  wow.ReadASCIIString((uint)BaseWoW + 0xEAEAA8, 256);
                }
            }
    Last edited by yellowspark; 03-10-2013 at 06:57 AM.

  3. #3
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by yellowspark View Post
    You need to use
    Code:
    var wowProc = (from Process p in Process.GetProcesses() where p.MainWindowTitle.Contains("World of Warcraft") select p.Id).FirstOrDefault();
    BlackMagic wow = new BlackMagic();
    wow.OpenProcessAndThread(wowProc);
    wow.WriteFloat(0xD02C00 + 0x8C, newX);
    wow.WriteFloat(0xD02C00 + 0x8C + 0x4, newY);
    wow.WriteFloat(0xD02C00 + 0x8C + 0x4 + 0x4, newZ);
    wow.WriteUInt(0xD02C00, 4);
    Thank you for the suggestion but now it does nothing :-P It just stands still, no reaction nor an error. Do you have anything else I should try?

  4. #4
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add base address.

  5. #5
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    Add base address.
    You mean like this:
    Code:
    wow.WriteFloat(BaseWoW + 0xD02C00 + 0x8C, newX);
    Because when I do this I get this error:
    Code:
    The best overload method match for 'Magic.BlackMagic.WriteFloat(uint, float)' has some invalid arguments
    ??

  6. #6
    yellowspark's Avatar Contributor
    Reputation
    147
    Join Date
    Feb 2012
    Posts
    165
    Thanks G/R
    0/4
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to take a big step back and learn what types of variables can you have in C# and how to convert them to other variables,then learn memory,thnx

  7. #7
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by yellowspark View Post
    You need to take a big step back and learn what types of variables can you have in C# and how to convert them to other variables,then learn memory,thnx
    As you're entitled to your own opinion I must say that it's my own choice what I want to do and learn. I am looking for an answer, not nagging, thank you.

    Got the string working by doing this:
    Code:
    private string GetCharName()
            {
                var wowProc = (from Process p in Process.GetProcesses() where p.MainWindowTitle.Contains("World of Warcraft") select p.Id).FirstOrDefault();
                BlackMagic wow = new BlackMagic();
                wow.OpenProcessAndThread(wowProc);
                IntPtr BaseWoW = wow.MainModule.BaseAddress;
                return wow.ReadASCIIString((uint)BaseWoW + 0xEAEAA8, 256); 
            }
    Thank you Yellowspark! :-) +rep!

    Still got problems with the click to move though.
    Last edited by mathix; 03-10-2013 at 08:16 AM.

  8. #8
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So you are creating a new BlackMagic object every time you need to pull some data ? No really, he is right, learn some basic programming guide first.

  9. #9
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it all working, see first post for results.
    Last edited by mathix; 03-10-2013 at 10:24 AM.

Similar Threads

  1. Ik3s AI Player bot problem
    By supreme676 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-31-2014, 10:41 AM
  2. Player server problems
    By RGMaveric in forum Diablo 3 Emulator Servers
    Replies: 0
    Last Post: 04-30-2012, 06:27 PM
  3. [Lua Script] LUA movement problems
    By bendaferi in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-03-2010, 09:52 AM
  4. Player health problems
    By 0_00_0 in forum WoW Memory Editing
    Replies: 12
    Last Post: 08-08-2009, 02:30 AM
  5. PvP problem help! Won't mark players!
    By MuffinVendor in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 09-13-2008, 12:48 PM
All times are GMT -5. The time now is 11:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search