[3.3.5] C++ Few questions menu

User Tag List

Results 1 to 3 of 3
  1. #1
    serbus's Avatar Member
    Reputation
    1
    Join Date
    Mar 2015
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [3.3.5] C++ Few questions

    Hi there, i'm new to bot dev/mem editing. I really strove not to ask a lot.. Sorry
    So, i learned how to read wow memory, the next step is calling function. So:
    1. In screenshot thread i found
    Code:
    private static void call_CastSpellById(int id)
            {
                uint codeCave = wow.AllocateMemory();
    
                wow.Asm.Clear();
    
                wow.Asm.AddLine("fs mov eax, [0x2C]");
                wow.Asm.AddLine("mov eax, [eax]");
                wow.Asm.AddLine("add eax, 8");
                wow.Asm.AddLine("mov dword [eax], {0}", objectManager);
    
                wow.Asm.AddLine("push 0");
                wow.Asm.AddLine("push 0");
                wow.Asm.AddLine("push 0");
                wow.Asm.AddLine("push {0}", id);
                wow.Asm.AddLine("call {0}", CASTSPELLBYID);
                wow.Asm.AddLine("add esp,16");
                wow.Asm.AddLine("retn");
    
                wow.Asm.InjectAndExecute(codeCave);
                wow.FreeMemory(codeCave);
            }
    I need to put this to gcc, i'm using qt creator.. i put it in this way,
    Code:
    __asm ("movl %eax, 0x2C");
    __asm ("movl %eax, %eax");
    __asm ("add %eax, 8");
    __asm ("movl %eax, om");
    
    __asm ("push 0");
    __asm ("push 0");
    __asm ("push 0");
    __asm ("push id");
    __asm ("call 0x00773400");
    __asm ("add %esp, 16");
    __asm ("retn");
    id, om - variables. I know, this is wrong, how should i proceed with variables ? All ASM code includes i found are on C#, sorry again for asking.


    2. in offsets thread there was this kind of offset
    00708C20 UseItem
    How to send func like these? Like in the 1st example? Is there "0x" in the beginning missed ?

    [3.3.5] C++ Few questions
  2. #2
    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)
    if you want to use asm { } then you need to inject yourself into WoW process.

  3. #3
    serbus's Avatar Member
    Reputation
    1
    Join Date
    Mar 2015
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm aware of it, I've already made a Inject func, that allocate memory in wow process. I'me having problems with gcc ASM syntax. Also i don't understand the algorythm of injecting any other function - i don't think you just should use the same ASM Include, just put your function offset instead of CALLSPELLBYID.

Similar Threads

  1. few questions =D
    By xxxcoolxxx in forum World of Warcraft General
    Replies: 2
    Last Post: 01-22-2007, 11:15 AM
  2. A few questions about model editing
    By Kelindel in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-01-2007, 11:23 PM
  3. A few questions about model editing
    By Kelindel in forum World of Warcraft General
    Replies: 0
    Last Post: 01-01-2007, 08:57 PM
  4. A few questions
    By jimmy2222 in forum World of Warcraft General
    Replies: 2
    Last Post: 12-23-2006, 10:36 AM
  5. A few questions about WoW
    By colm in forum World of Warcraft General
    Replies: 2
    Last Post: 08-23-2006, 12:04 PM
All times are GMT -5. The time now is 07:44 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