Hello,
for some reason GetLocalizedText doesnt work on the AccountLoginUI or char screen, i am able to read ingame but not outside of game. any idea's?
Code:
public static string GetLocalizedText(string Command)
{
uint Lua_GetLocalizedText_Space = Main.myHook.Memory.AllocateMemory(Encoding.UTF8.GetBytes(Command).Length + 1);
Main.myHook.Memory.WriteBytes(Lua_GetLocalizedText_Space, Encoding.UTF8.GetBytes(Command));
String[] asm = new String[]
{
"call " + Offsets.GetActivePlayerObject,
"mov ecx, eax",
"push -1",
"mov edx, " + Lua_GetLocalizedText_Space + "",
"push edx",
"call " + Offsets.GetLocalizedText,
"retn",
};
string Variable = Encoding.ASCII.GetString(Main.myHook.InjectAndExecute(Randomizer.RandomizeASM(asm)));
Main.myHook.Memory.FreeMemory(Lua_GetLocalizedText_Space);
return Variable;
}