error calling CastSpellByID menu

User Tag List

Results 1 to 7 of 7
  1. #1
    NightlyBlooD's Avatar Member
    Reputation
    2
    Join Date
    Sep 2012
    Posts
    26
    Thanks G/R
    6/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    error calling CastSpellByID

    Hi guys, help pls. I get a wow crash when I try to call the CastSpellbyName () function
    Code:
    string[] code = new string[]
                    {
                        "fs mov eax, [0x2C]",
                        "mov eax, [eax]",
                        "add eax, 8", 
                        "mov dword [eax], " +(uint)curMgr,                 
                        "push 0",
                        "push 0",
                        "push 0",
                        "push "+ id,
                        "call "+ (uint)Offsets.CastSpellByID,                                             //0x0053E060 wow 3.3.5a(12340)
                        "add esp,16",
                        "retn"
    
                    };
    Based on the code from here here (Screenshot Thread)
    Last edited by NightlyBlooD; 03-23-2019 at 08:53 AM.

    error calling CastSpellByID
  2. #2
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NightlyBlooD View Post
    Hi guys, help pls. I get a wow crash when I try to call the CastSpellbyName () function
    Code:
    string[] code = new string[]
                    {
                        "fs mov eax, [0x2C]",
                        "mov eax, [eax]",
                        "add eax, 8", 
                        "mov dword [eax], " +(uint)curMgr,                 
                        "push 0",
                        "push 0",
                        "push 0",
                        "push "+ id,
                        "call "+ (uint)Offsets.CastSpellByID,                                             //0x0053E060 wow 3.3.5a(12340)
                        "add esp,16",
                        "retn"
    
                    };
    Based on the code from here here (Screenshot Thread)
    I might be wrong but I dont believe you can call an lua script like that, //0x0053E060 wow 3.3.5a(12340) is an lua function I believe you would need to find the function that this lua function calls and call that instead.


  3. #3
    NightlyBlooD's Avatar Member
    Reputation
    2
    Join Date
    Sep 2012
    Posts
    26
    Thanks G/R
    6/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Icesythe7 View Post
    I might be wrong but I dont believe you can call an lua script like that, //0x0053E060 wow 3.3.5a(12340) is an lua function I believe you would need to find the function that this lua function calls and call that instead.
    Could you tell us what offset is needed then, I'm already confused with this assembler

  4. #4
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NightlyBlooD View Post
    Could you tell us what offset is needed then, I'm already confused with this assembler
    All the offsets are in the 3.3.5 section, you can just call framescript_execute instead and use the lua function as normal

  5. #5
    NightlyBlooD's Avatar Member
    Reputation
    2
    Join Date
    Sep 2012
    Posts
    26
    Thanks G/R
    6/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Icesythe7 View Post
    All the offsets are in the 3.3.5 section, you can just call framescript_execute instead and use the lua function as normal
    offset "0x0053E060 Script_CastSpellByID" i took here (3.3.5a 12340 Offsets)
    frame execute is not exactly what I need

  6. #6
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NightlyBlooD View Post
    offset "0x0053E060 Script_CastSpellByID" i took here (3.3.5a 12340 Offsets)
    frame execute is not exactly what I need
    I don't think you understand, this is an lua function to call it you need to use framescript execute, or you can look at the function in ida and see what function this function calls and call that instead.

  7. #7
    NightlyBlooD's Avatar Member
    Reputation
    2
    Join Date
    Sep 2012
    Posts
    26
    Thanks G/R
    6/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved the problem, the offset was not correct.
    Icesythe7 thank you!

Similar Threads

  1. Call Lua callback in DLL cause some Error
    By rafaelcn in forum WoW Memory Editing
    Replies: 3
    Last Post: 08-04-2010, 03:32 AM
  2. ASM BlackMagic, Object->Interact(); Calling Errors.
    By fusspawn in forum WoW Memory Editing
    Replies: 3
    Last Post: 02-25-2010, 04:17 PM
  3. CastSpellByID Error
    By Jackedy129 in forum WoW Memory Editing
    Replies: 8
    Last Post: 05-21-2009, 08:40 AM
  4. Weird issues calling CastSpellByID
    By hypnodok in forum WoW Memory Editing
    Replies: 17
    Last Post: 12-13-2008, 08:35 PM
  5. Ok question about registration error config or w.e u wana call it.
    By whatshisface in forum WoW EMU Questions & Requests
    Replies: 14
    Last Post: 09-20-2008, 01:28 PM
All times are GMT -5. The time now is 11:23 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