Catch result lua menu

User Tag List

Results 1 to 14 of 14
  1. #1
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Catch result lua

    How to catch a result Lua string? I used search but not that have found.

    Catch result lua
  2. #2
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lua_doString returns nothing.

  3. #3
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know it and so I ask how do I get.

  4. #4
    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)
    Use GetLocalizedText, they are lots of example here

  5. #5
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Me need only get result lua.

  6. #6
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I understand, but has anyone ever been far as decided to use even go want to do look more like?
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  7. #7
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do Lua_DoString("GetRealZoneText()").
    What should I do to get the result?

  8. #8
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Read what JuJuBoSc said.

  9. #9
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    Use GetLocalizedText, they are lots of example here
    That's an awful idea. Not only does it unnecessarily cause global taint, but if you use it in a public bot then it's highly detectable by Warden (not just from a stack trace, but from Warden checking for the globals your bot uses).

  10. #10
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DoString -> GetTop -> ToLString

    Ta Da!

  11. #11
    berserk85's Avatar Member
    Reputation
    8
    Join Date
    Apr 2008
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you use C++

    Programming in Lua : 25.3

    Bye
    Last edited by berserk85; 10-08-2009 at 05:25 AM.

  12. #12
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DoString -> GetTop -> ToString

    How I can understand me need:
    Step 1. Enter (Inject) Lua string in WoW.
    Step 2. Searching an argument with help GetTop method.
    Step 3. Getting result Lua string with help ToString method.

  13. #13
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am writed method for get result lua from WoW, but he doesn't work for me. Where is my error?
    Code:
            public static string GetLocalizedText(BlackMagic w, string szLuaVariable)
            {
                uint g_clientConnection = w.ReadUInt((uint)0x012705B0);
                uint objectManagerBase = w.ReadUInt((uint)(g_clientConnection + 0x00002D94));
                uint localGuid = w.ReadUInt((uint)(objectManagerBase + 0xC0));
                uint lpLuaVariable = 0;
    
                LUA.Synchronize(w);
                 
                lpLuaVariable = w.AllocateMemory();
    
             
    
                w.Asm.Clear();
    
                w.WriteASCIIString(lpLuaVariable + 0x100, szLuaVariable);
    
                w.Asm.AddLine("mov ecx, {0}", localGuid);
                w.Asm.AddLine("push -1");
                w.Asm.AddLine("push {0}", lpLuaVariable);
                w.Asm.AddLine("call {0}", (uint)0x0069ABF0);
                w.Asm.AddLine("retn");
    
    
                w.Asm.InjectAndExecute(lpLuaVariable);
    
                ResumeThread(wowmainthread);
    
                string lpReturnString = w.ReadASCIIString(lpLuaVariable,60);
    
                w.FreeMemory(lpLuaVariable);
    
                return lpReturnString;
    
            }

  14. #14
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It has different reasons.
    Mainreason:

    - You should learn C++-Concepts before trying to work with them on ASM-level. As GetLocalisedText is a this-call it expects an objects address via ecx. For some reason you load a GUID (or better said a part of a GUID, 32bit registers don't really like 8-Byte vars) which will result in memory violations and errors.

    Lulzreason:

    - You call the function and you do NOTHING with its return value. What the **** is your point in calling it then?

Similar Threads

  1. How to execute LUA function and get it's result?
    By piiters in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 06-07-2010, 05:51 AM
  2. Call lua function and get result
    By starfish99 in forum WoW Memory Editing
    Replies: 4
    Last Post: 12-26-2008, 05:15 AM
  3. Try'na catch me 'gliding durty'
    By Innit in forum World of Warcraft General
    Replies: 8
    Last Post: 01-24-2007, 07:48 PM
  4. Did yall catch that?
    By Tenche in forum Community Chat
    Replies: 6
    Last Post: 07-10-2006, 12:42 AM
  5. *sigh* Exam results:
    By janzi9 in forum Community Chat
    Replies: 15
    Last Post: 05-22-2006, 06:36 PM
All times are GMT -5. The time now is 05:40 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