Lua_doString (WoW 3.1.1) menu

User Tag List

Results 1 to 4 of 4
  1. #1
    jockel's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua_doString (WoW 3.1.1)

    Heya,

    I'm currently having huge problems of getting the Lua function doString to run.
    I'm using C# and the fasm_managed library to inject asm code into the WoW process.

    Here is the code I was using pre 3.1.1 which was working without any problems:

    Code:
            void doString(string luaString)
            {
                    int nSize = 0x100 + luaString.Length;
                    uint cave = AllocateMemory(nSize);
                    Writer.String(cave + 0x100, luaString);
    
                    fasm.Clear();
                    UpdateObjectManager();
                    fasm.AddLine("push 0");
                    fasm.AddLine("mov eax, " + (cave + 0x100));
                    fasm.AddLine("push eax");
                    fasm.AddLine("push eax");
                    fasm.AddLine("call 0x0049AE70");
                    fasm.AddLine("add esp, 0xC");
                    fasm.AddLine("retn");
                  
                    SuspendThread();
                    fasm.InjectAndExecute(codeCave);
                    ResumeThread();
            }
    Sadly since 3.1.1 it seems to be broken, I updated all offsets (lua_doString and the objectManager one).

    Am I missing something?
    Would be great to receive some hints...

    Lua_doString (WoW 3.1.1)
  2. #2
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to update the TLS in the thread. Just add it to the top of your code and it should be working.

  3. #3
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TLS moved from 0x8 to 0x10 (just from my memory, I could be wrong)

  4. #4
    jockel's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ding... stupid me
    That was it 0x8 to 0x10, didn't recognized that this offset changed in IDA
    Thanks.

Similar Threads

  1. [WoW] [3.0.9] [C#] Results of lua_dostring
    By SKU in forum WoW Memory Editing
    Replies: 21
    Last Post: 04-21-2009, 03:37 PM
  2. Get your first mount in WoW easily
    By Matt in forum World of Warcraft Guides
    Replies: 3
    Last Post: 11-03-2006, 09:46 PM
  3. World of Warcraft WoW!Bot (GetALifeBot) 0.61 for WoW 1.9.4 + FishBot
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 43
    Last Post: 04-18-2006, 04:55 AM
  4. Free WoW Glider 0.5.3 Loader
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 03-12-2006, 01:00 PM
All times are GMT -5. The time now is 07:53 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