Starting out menu

Shout-Out

User Tag List

Thread: Starting out

Results 1 to 3 of 3
  1. #1
    bykte's Avatar Active Member
    Reputation
    24
    Join Date
    Oct 2007
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Starting out

    Hello,

    This is my first post in WoW Memory Editing. I am very interested in learning how to interact with WoW via code. I have started out by reading some of the posts by others and have learn how to read strings from memory using BlackMagic. Starting out with basics, such as health, mana etc. However, what I have done is basically copy pasting. I've some experience in C# but there are certain terms used here which I do not understand. Calling simple functions like GetMiniZoneText is simple enough. Just getting the offset to it. With regards to retrieve mana/health,

    uint playerBase = WoW.ReadUInt(WoW.ReadUInt(WoW.ReadUInt(0x00CF7C00) + 0x34) + 0x24);
    uint mana = WoW.ReadUInt(WoW.ReadUInt(playerBase + 0x + (0x18 * 4));
    uint health = WoW.ReadUInt(WoW.ReadUInt(playerBase + 0x + (0x17 * 4))
    Will anyone be willing to explain why the need to add 0x34/0x24/0x8 or multiply 0x18 by 4?

    What about complex functions that are not as straightforward as
    string minimapZoneText = SMemory.ReadASCIIString(WoW.ProcessHandle, SMemory.ReadUInt(WoW.ProcessHandle, 0x00CB9FAC), 30);
    from

    mov eax, dword_B6854C
    Even the code from UnitHealth

    text:005A4F80 push ebp
    .text:005A4F81 mov ebp, esp
    .text:005A4F83 sub esp, 14h
    .text:005A4F86 push ebx
    .text:005A4F87 mov ebx, [ebp+arg_0]
    .text:005A4F8A push 1
    .text:005A4F8C push ebx
    .text:005A4F8D call sub_826A10
    .text:005A4F92 add esp, 8
    .text:005A4F95 test eax, eax
    .text:005A4F97 jnz short loc_5A4FAE
    .text:005A4F99 push offset aUsageUnithealt ; "Usage: UnitHealth(\"unit\")"
    .text:005A4F9E push ebx
    .text:005A4F9F call sub_827D30
    .text:005A4FA4 add esp, 8
    .text:005A4FA7 xor eax, eax
    .text:005A4FA9 pop ebx
    .text:005A4FAA mov esp, ebp
    .text:005A4FAC pop ebp
    .text:005A4FAD retn
    seems a little too much for me to understand at this point of time.


    Thanks in advance. I accept both constructive comments and criticism as it gives me the motivation to learn.
    Last edited by bykte; 01-03-2010 at 07:49 AM.

    Starting out
  2. #2
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    uint playerBase = WoW.ReadUInt(WoW.ReadUInt(WoW.ReadUInt(0x00CF7C00) + 0x34) + 0x24);

    WoW.ReadUInt(0x00CF7C00) -> at this address we always find a pointer to a struct
    + 0x34 -> in this struct are alot of variables/pointers, at 0x34 (which means variable number 0x34/4=0xD=13) is a pointer to another struct
    + 0x24 -> in this other struct at position 0x24 (which means variable number 9) we find a pointer to the playerbase

  3. #3
    Ellesar1's Avatar Member
    Reputation
    20
    Join Date
    Feb 2009
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or multiply 0x18 by 4?
    the * 4 is most of the time when you have an array of pointers.

    a pointer is 32-bits long, which equals 4 bytes. If you want to access for example the 19th element in an array, you take the arraybase and add 18 * 4 bytes to it, since every element is sizeof (pointer) big.

Similar Threads

  1. [Request] SQL Query for starting out with all spells/skills
    By w21froster in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 05-28-2008, 09:36 AM
  2. [Help] Start out with FULL T6 all 8 pieces my SQL!
    By MisterEMU in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-07-2008, 11:51 AM
  3. [GUIDE] Start out with Any Items
    By Dryice in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 01-22-2008, 01:35 AM
  4. Start out as 70 with all spells learned
    By Tankotron in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 12-03-2007, 01:05 PM
  5. Help Me Start Out With Glider Please!
    By sneaky12313 in forum World of Warcraft General
    Replies: 9
    Last Post: 03-12-2007, 07:52 AM
All times are GMT -5. The time now is 09:20 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