July 24, 20187 yr Hey guys, I've found some old code in the forum and tried to bring it back to life. Unfortunately this is my first experience with lua. var bindLocation = Lua.LuaDoString("hearth=GetBindLocation();", "hearth"); var position = new Vector3(-407.123f, 1633.99f, -4439.37f, 15.43328); int npcEntryId = 6929; while (bindLocation != "Orgrimmar") { wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId); Lua.LuaDoString("GossipTitleButton1:Click();"); Lua.RunMacroText("/click StaticPopup1Button1"); } I get this lua error: http://prntscr.com/kai2uj Probably a simple thing that I am just overlooking. Appreciate any help. Greetings
July 24, 20187 yr https://wrobot.eu/forums/topic/5764-hearthstone-for-multi-language/?page=0#comment-26212
July 24, 20187 yr Author I know this thread already. As I stated. My Lua knowledge is very limited for now. I wanna fix the syntax of the code posted above. Or is it completely wrong and will not work? Thanks for sending the link anyway.
July 24, 20187 yr Just now, Bambo said: I know this thread already. As I stated. My Lua knowledge is very limited for now. I wanna fix the syntax of the code posted above. Or is it completely wrong and will not work? I'm trying to point out where you need to put return at.
July 24, 20187 yr Author 1 minute ago, Zan said: I'm trying to point out where you need to put return at. Will try out, immediately.
July 24, 20187 yr Author Now I dont get the error anymore, ty. Still doesn't work at all though xD just skips to next pulse var bindLocation = Lua.LuaDoString("hearth=GetBindLocation(); return bindLocation;", "hearth"); var position = new Vector3(-407.123f, 1633.99f, -4439.37f, 15.43328); int npcEntryId = 6929; while (bindLocation != "Orgrimmar") { wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId); Lua.LuaDoString("GossipTitleButton1:Click();"); Lua.RunMacroText("/click StaticPopup1Button1"); } Thanks alot for the help.
Create an account or sign in to comment