[Question] Lua Error menu

User Tag List

Results 1 to 4 of 4
  1. #1
    kingviper's Avatar Active Member
    Reputation
    24
    Join Date
    Mar 2007
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Lua Error

    hey again thanks for the help so far to all,

    I am asking because I couldn't derive a straight answer from tis post:
    http://www.mmowned.com/forums/world-...-dostring.html



    From what I read there my program is doing the same thing on the code executions

    Im trying to use this:

    Code:
                BlackMagic wow = new BlackMagic(); //Create new function to open wow process
    
                wow.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft")); //This Opens "World of Warcraft" window
    
                string Command = "DefaultServerLogin(" + username + ", " + password + ")";
    
                wow.SuspendThread();
     
    
                // Allocate memory for command
    
                uint DoString_space = wow.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);
    
     
    
                // Write command in the allocated memory
    
                wow.WriteBytes(DoString_space, Encoding.UTF8.GetBytes(Command));
    
                wow.Asm.Clear();
    
                // Write the asm stuff for Lua_DoString
    
                wow.Asm.AddLine("mov eax, " + DoString_space);
    
                wow.Asm.AddLine("push 0");
    
                wow.Asm.AddLine("push eax");
    
                wow.Asm.AddLine("push eax");
    
                wow.Asm.AddLine("mov eax, 0x00819210"); // Lua_DoString for 3.3.5
    
                wow.Asm.AddLine("call eax");
    
                wow.Asm.AddLine("add esp, 0xC");
    
                wow.Asm.AddLine("retn"); 
    
     
    
                // Inject the shit
    
                wow.Asm.InjectAndExecute(DoString_space);
    
               // Free memory allocated for command
    
                wow.FreeMemory(DoString_space);
    
     
    
                wow.ResumeThread();


    Once used WoW shows this message:

    Code:
    [string "?"]: 1:Unexpected symbol near '?'


    of course I'll +rep you again regardless of your answer as long as it is an idea that makes sense, would like it someone could explain why this error occurs and if possible how I would fix it.

    Thanks


    :gtfo2:



    [Question] Lua Error
  2. #2
    caytchen's Avatar Contributor
    Reputation
    138
    Join Date
    Apr 2007
    Posts
    162
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seeing the same code with the same comments and the same mistake every other week makes me sick. Seeing how somebody includes a link to the thread with a very clear and precise solution to his exact problem... thats like infinite recursion into insanity.

  3. #3
    streppel's Avatar Active Member
    Reputation
    77
    Join Date
    Mar 2007
    Posts
    196
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    as written in my thread: you have to update the objmgr yourself when using this method

  4. #4
    kingviper's Avatar Active Member
    Reputation
    24
    Join Date
    Mar 2007
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by caytchen View Post
    Seeing the same code with the same comments and the same mistake every other week makes me sick. Seeing how somebody includes a link to the thread with a very clear and precise solution to his exact problem... thats like infinite recursion into insanity.
    Im glad you posted in my thread, just because I wanted to make a point. Its because of users like you users like me need to make a new thread to ask these question. You complain and other users like you complain and fill post with so much bull**** when users like me search, I can't find anything that actually helps. You want it to stop? Brake the chain and help please. Im trying to learn like any other human. my 2 cent

    Originally Posted by streppel View Post
    as written in my thread: you have to update the objmgr yourself when using this method
    Well thanks, from your thread I read this but im not really clear on how I can do this. thanks tho

    is it objmgr or curmgr?
    Last edited by kingviper; 08-10-2010 at 12:26 AM.


    :gtfo2:



Similar Threads

  1. [Question] LUA problem
    By Peter1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-01-2008, 09:21 AM
  2. Couple questions, lua involved + other?
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-18-2008, 03:42 PM
  3. [Question] Modelchange -> Error?
    By Zami in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-08-2007, 12:55 PM
  4. [Question] Getting errors since the last patch.
    By adonai1 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-13-2007, 03:24 PM
  5. Question : ModelEditFix Error
    By rwaar in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 08-04-2007, 07:43 AM
All times are GMT -5. The time now is 09:44 AM. 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