GetLocalizedText 2.4.3 menu

User Tag List

Results 1 to 3 of 3
  1. #1
    nerexis's Avatar Member CoreCoins Purchaser
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    56
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetLocalizedText 2.4.3

    Is there GetLocalizedText function in 2.4.3? If yes, any suggestions how to find it? Because by simply searching strings in IDA etc. can't find it.

    GetLocalizedText 2.4.3
  2. #2
    Empted's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2011
    Posts
    117
    Thanks G/R
    0/5
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Couldn't find GetLocalizedText (no even such function name listed in .idb). Though as it seemed interesting, I found another function:
    Code:
    int __cdecl FrameScript_GetVariable(char *a1, DWORD* retValue)
    Takes pointer to dword result storage and ASCII variable name (returns some kind of success or not). After execution retValue will have pointer to string within. It's located at 0x305A30 (rebased and 2.4.3 of course). Found by pattern of InitializePlayerName which calls this (gets some UNIT_FONT variable).

    P.S. actually, if you need it for some lua functions returns, then it's probably better to take any return values directly from lua stack.
    P.P.S. working as intended
    PHP Code:
                wow.Asm.AddLine("push {0}"retValuePtr);
                
    wow.Asm.AddLine("push {0}"varName);
                
    wow.Asm.AddLine("call {0}"GetVariablePtr);
                
    wow.Asm.AddLine("add esp, 8");
                
    uint stringPtr=wow.ReadUInt(retValuePtr); 
    Last edited by Empted; 10-30-2012 at 01:59 PM.

  3. #3
    nerexis's Avatar Member CoreCoins Purchaser
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    56
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works! Tyvm, for this info. Here is method i use:

    PHP Code:
    typedef bool (__cdecltFrameScript_C__GetVariable)(const char varNameDWORD outNamePtr);
    tFrameScript_C__GetVariable FrameScript_C__GetVariable reinterpret_cast<tFrameScript_C__GetVariable>(0x00705A30); 

    void Execute(string luaCmd)
        {
            
    Lua(luaCmd); //LuaDoString 
        
    }

        
    template <class T>
        
    T Execute(string luaCmdstring varName)
        {        
        }

        
    template <>
        
    int Execute(string luaCmdstring varName)
        {        
            
    Execute(luaCmd);
            
    DWORD resultPtr 0;
            
    FrameScript_C__GetVariable(varName.c_str(),&resultPtr);
            
    CLog::p()->Debug(_LUA,"Executed with int type, ptr: %.0X",resultPtr);
            
    string resultStr Memory->ReadString(resultPtr);
            
    CLog::p()->Debug(_LUA,"Result = %s",resultStr.c_str());
            return 
    atoi(resultStr.c_str());
        } 
    // use as:
    Wrapper.Execute<int>("INitemCount = GetContainerNumSlots(0);","INitemCount");
    Last edited by nerexis; 10-31-2012 at 06:19 AM.

Similar Threads

  1. i even dont work out my GetLocalizedText code with blackmagic
    By ivyvan29 in forum WoW Memory Editing
    Replies: 2
    Last Post: 12-18-2011, 11:46 AM
  2. how do i getLocalizedText when i am not enter the world
    By ranassa in forum WoW Memory Editing
    Replies: 5
    Last Post: 11-30-2011, 07:57 AM
  3. [AutoIt][3.1.3]DoString/GetLocalizedText Sample
    By satia in forum WoW Memory Editing
    Replies: 11
    Last Post: 03-25-2010, 07:26 AM
  4. GetLocalizedText and C++
    By jockel in forum WoW Memory Editing
    Replies: 31
    Last Post: 07-02-2009, 06:04 PM
  5. GetLocalizedText sometimes crashing Wow
    By peterwurst in forum WoW Memory Editing
    Replies: 4
    Last Post: 06-15-2009, 10:46 AM
All times are GMT -5. The time now is 04:33 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