Hello, my guys.
I encountered the problem I hope can help me ,
I console input No problem. But in my bot dosting and GetLocalizedText Met Problem
cast Spell no problem;
FrameScriptGetText nor OK。help me.
Hello, my guys.
I encountered the problem I hope can help me ,
I console input No problem. But in my bot dosting and GetLocalizedText Met Problem
cast Spell no problem;
FrameScriptGetText nor OK。help me.
Last edited by redcatH; 10-03-2013 at 03:23 PM.
GetLocalizedText return a pointer to the string, not the string, so read the result with the pointer returned by GetLocalizedText.
And wtf is that ? Why not just run directly mapname = GetZoneText(); ?string str = "RunMacroText(\"/script mapname = GetZoneText();\")";
@JuJuBoSc Thank you very much. Solution![]()
Thanks again JuJuBoSc。
Last edited by redcatH; 10-05-2013 at 03:26 AM.
Thanks again JuJuBoSc。
Last edited by redcatH; 10-05-2013 at 03:26 AM.
Because the " for the RunMacroText call is interrupted by your UnitName call. Lua handles ' in place of " for strings, you can try something such as:
RunMacroText("/run playerName = UnitName('player');")
Or you could simply remove the RunMacroText call, there is no need for it.