CastSpellByID Error menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    Jackedy129's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CastSpellByID Error

    Im currently using

    Code:
    public bool CastSpellByID(uint id)
            {
                Console.WriteLine("Castspell");
                uint codeCave = wow.AllocateMemory();
                const uint CastSpellID = 0x007735F0;
    
                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}", CurMgr);
    
                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}", CastSpellID);
                wow.Asm.AddLine("add esp,16");
                wow.Asm.AddLine("retn");
    
                wow.Asm.InjectAndExecute(codeCave); //<-- This line makes the error
                wow.FreeMemory(codeCave);
                return true;
            }
    yet it keeps springing the error, could not inject for some reason, does any one have any info that could help?

    CastSpellByID Error
  2. #2
    testout's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Has you ever got your bot to work? Or have you just decided to start botting?

  3. #3
    Jackedy129's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the first time im implementing this, i took the code from an example here which claimed to work

  4. #4
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jackedy129 View Post
    Im currently using

    Code:
    public bool CastSpellByID(uint id)
            {
                Console.WriteLine("Castspell");
                uint codeCave = wow.AllocateMemory();
                const uint CastSpellID = 0x007735F0;
    
                wow.Asm.Clear();
                wow.Asm.AddLine("fs mov eax, [0x2C]");
                wow.Asm.AddLine("mov eax, [eax]");
                wow.Asm.AddLine("add eax, 0x10");
                wow.Asm.AddLine("mov dword [eax], {0}", CurMgr);
    
                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}", CastSpellID);
                wow.Asm.AddLine("add esp,16");
                wow.Asm.AddLine("retn");
    
                wow.Asm.InjectAndExecute(codeCave); //<-- This line makes the error
                wow.FreeMemory(codeCave);
                return true;
            }
    yet it keeps springing the error, could not inject for some reason, does any one have any info that could help?
    Code:
    007BDD53                |.  64:8B0D 2C000000  MOV ECX,DWORD PTR FS:[2C]
    007BDD5A                |.  A1 FCD93501       MOV EAX,DWORD PTR DS:[135D9FC]
    007BDD5F                |.  8B1481            MOV EDX,DWORD PTR DS:[ECX+EAX*4]                                 ;  ntdll.7C91DCBA
    007BDD62                |.  8B8A 10000000     MOV ECX,DWORD PTR DS:[EDX+10]

  5. #5
    Jackedy129's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SKU View Post
    Code:
    007BDD53                |.  64:8B0D 2C000000  MOV ECX,DWORD PTR FS:[2C]
    007BDD5A                |.  A1 FCD93501       MOV EAX,DWORD PTR DS:[135D9FC]
    007BDD5F                |.  8B1481            MOV EDX,DWORD PTR DS:[ECX+EAX*4]                                 ;  ntdll.7C91DCBA
    007BDD62                |.  8B8A 10000000     MOV ECX,DWORD PTR DS:[EDX+10]

    sorry im new to ASM, how does this help? :P

  6. #6
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    wow.Asm.AddLine("add eax, 8");
    Code:
    wow.Asm.AddLine("add eax, 0x10");

  7. #7
    Jackedy129's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Nesox View Post
    Code:
    wow.Asm.AddLine("add eax, 8");
    Code:
    wow.Asm.AddLine("add eax, 0x10");
    oh sorry, i didnt see a change made :/ thank you both

  8. #8
    Jackedy129's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i updated the code as specified yet im still getting the error :/

  9. #9
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jackedy129 View Post
    this is the first time im implementing this, i took the code from an example here which claimed to work
    Here is your problem. Learn the basics first, copy&pasting won't help for outdated WoW versions. 0x007735F0 is the middle of a function.

    Code:
    007735E7                |.  890D 94472A01     MOV DWORD PTR DS:[12A4794],ECX
    007735ED                |.  73 21             JNB SHORT Wow.00773610
    007735EF                |.  EB 06             JMP SHORT Wow.007735F7
    007735F1                |>  8B15 C0472A01     /MOV EDX,DWORD PTR DS:[12A47C0]
    007735F7                |>  8B7482 04          MOV ESI,DWORD PTR DS:[EDX+EAX*4+4]
    007735FB                |.  8B3C82            |MOV EDI,DWORD PTR DS:[EDX+EAX*4]
    Are you sure you have the required access privileges? Because even though you're using an outdated address, it should execute it and then crash. How are you getting CurMgr? Did you comment some (asm) lines to see what caused the error?

Similar Threads

  1. Error In glider
    By hidebr in forum World of Warcraft General
    Replies: 4
    Last Post: 07-21-2006, 08:50 PM
  2. glider error :(
    By Ced in forum World of Warcraft General
    Replies: 2
    Last Post: 07-13-2006, 01:02 PM
  3. WoW Emu error
    By bezike in forum World of Warcraft General
    Replies: 1
    Last Post: 06-28-2006, 03:18 PM
  4. Site Error?
    By Amedis in forum Community Chat
    Replies: 8
    Last Post: 06-21-2006, 08:31 AM
  5. Error in checking WoW.exe CRC code hack?
    By Trichelieu in forum World of Warcraft General
    Replies: 0
    Last Post: 06-11-2006, 02:24 PM
All times are GMT -5. The time now is 05:30 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