[HELP] C# ASM H00k get Func !? menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Mc-fly's Avatar Sergeant
    Reputation
    14
    Join Date
    Dec 2009
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok forget all the drama pls. Im very sorry.
    I got a script for GetlocalizedText, it only returns a "," -..-

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using aHook;
    using Magic;
    
    namespace TestaHook
    {
        class Program
        {
    
            static void Main(string[] args)
            {
                BlackMagic wow = new BlackMagic();
                wow.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft"));
    
                Hook EndScene = new Hook(aProcess.GetProcessIdByName("Wow"));
    
                UInt32 pDevicePtr = EndScene.BlackMagic.ReadUInt(0x00C5DF88);
                pDevicePtr = EndScene.BlackMagic.ReadUInt(pDevicePtr + 0x397C);
    
                UInt32 EndSceneAddr = EndScene.BlackMagic.ReadUInt(pDevicePtr);
                EndSceneAddr = EndScene.BlackMagic.ReadUInt(EndSceneAddr + 0xA8);
    
                Console.WriteLine(EndScene.Hook_Install(EndSceneAddr).ToString());
    
                String Command = "GetAccountExpansionLevel()";
    
                uint DoString = EndScene.BlackMagic.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);
                EndScene.BlackMagic.WriteBytes(DoString, Encoding.UTF8.GetBytes(Command));
    
                EndScene.Hook_AsmAddLine("mov eax, " + DoString_space);
                EndScene.Hook_AsmAddLine("push 0");
                EndScene.Hook_AsmAddLine("push eax");
                EndScene.Hook_AsmAddLine("push eax");
                EndScene.Hook_AsmAddLine("mov eax, 0x00819210");
                EndScene.Hook_AsmAddLine("call eax");
                EndScene.Hook_AsmAddLine("add esp, 0xC");
                EndScene.Hook_AsmAddLine("retn");
    
                uint inject = EndScene.Hook_AsmInject();
    
                String injectr = "null";
                if (inject != 0)
                {
                    injectr = wow.ReadASCIIString(inject, 20);
                }
    
                EndScene.BlackMagic.FreeMemory(DoString_space);
                EndScene.Hook_Remove();
    
                Console.WriteLine(sResult);
                Console.ReadLine();
    
            }
        }
    }

    [HELP] C# ASM H00k get Func !?
  2. #17
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Did you update the offset?

    Lua_GetLocalizedText = 0x007225E0, // 3.3.5a 12340

    Credit goes to JuJuBoSc

    http://www.mmowned.com/forums/world-...mp-thread.html


    Could you link your code to the post you found it in?
    Last edited by DarkLinux; 07-27-2010 at 12:56 PM.

  3. #18
    Mc-fly's Avatar Sergeant
    Reputation
    14
    Join Date
    Dec 2009
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, still not work

  4. #19
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Are you running wow as admin and your bot as admin?

    And Again, please link the source of your code.

  5. #20
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Correct me if im wrong, but all these functions are working on the lua-stack and return the number of arguments they pushed on the stack, or not?

  6. #21
    streppel's Avatar Active Member
    Reputation
    78
    Join Date
    Mar 2007
    Posts
    196
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the code you posted is for lua_dostring,not getlocalizedtext,those are 2 things

    you are out of process, but trying to hook endscene,did i get this right? if you are out of process you could also update the objmgr yourself and forget about the endscenehook this way.
    if you are inprocess you can simply,once hooked endscene, create a delegate for DoString and simply use this as it is easier to maintain,more readable etc(asm is cool but e.g. not my fav language)
    then you can run Lua_DoString("DoEmote(\"dance\")); and then GetLocalizedText(or GetText) to get the returnvalue(if the function returns anything at all)
    Last edited by streppel; 07-28-2010 at 02:24 AM.

  7. #22
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by streppel View Post
    the code you posted is for lua_dostring,not getlocalizedtext,those are 2 things

    you are out of process, but trying to hook endscene,did i get this right? if you are out of process you could also update the objmgr yourself and forget about the endscenehook this way.
    if you are inprocess you can simply,once hooked endscene, create a delegate for DoString and simply use this as it is easier to maintain,more readable etc(asm is cool but e.g. not my fav language)
    then you can run Lua_DoString("GetLocalizedText(DoEmote(\"dance\")"); and then GetLocalizedText(or GetText) to get the returnvalue(if the function returns anything at all)
    What are you talking about?

    1. You can use GetLocalizedText to return the value of a lua global, you need a wrapper if you want to read results off the stack
    2. You call GetLocalizedText as a function, not in lua...

  8. #23
    streppel's Avatar Active Member
    Reputation
    78
    Join Date
    Mar 2007
    Posts
    196
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Scorpiona View Post
    What are you talking about?

    1. You can use GetLocalizedText to return the value of a lua global, you need a wrapper if you want to read results off the stack
    2. You call GetLocalizedText as a function, not in lua...
    sorry,ofc you are right...what i wrote was the way i tryed it first which didn't work

    Code:
                    Lua.DoString("LuaVarYouWantToSet = GetHonorCurrency();");
                    LuaReturnValue = Onyx.WoW.Lua.GetLocalizedText("LuaVarYouWantToSet");

Page 2 of 2 FirstFirst 12

Similar Threads

  1. <HELP> how do i get rid of facialhair on femals?
    By calderon in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 03-21-2008, 10:08 AM
  2. Plz help me/u can get stuff out of it
    By C-Death in forum Community Chat
    Replies: 1
    Last Post: 12-23-2007, 04:01 AM
  3. [Help] How do i get Cenarion War Hippogryph into my server?
    By orcishmailbox in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-10-2007, 10:01 AM
  4. Help! I can't get my accounts Prechached. (Ascent)
    By Losheau in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 09-27-2007, 07:51 PM
  5. Help! I can't get my server started anymore (Antrix)
    By Losheau in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 09-17-2007, 07:17 PM
All times are GMT -5. The time now is 05:56 PM. 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