Bambo 148 Posted July 24, 2018 Share Posted July 24, 2018 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 Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/ Share on other sites More sharing options...
Zan 99 Posted July 24, 2018 Share Posted July 24, 2018 https://wrobot.eu/forums/topic/5764-hearthstone-for-multi-language/?page=0#comment-26212 Bambo 1 Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/#findComment-45961 Share on other sites More sharing options...
Bambo 148 Posted July 24, 2018 Author Share Posted July 24, 2018 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. Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/#findComment-45962 Share on other sites More sharing options...
Zan 99 Posted July 24, 2018 Share Posted July 24, 2018 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. Bambo 1 Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/#findComment-45963 Share on other sites More sharing options...
Bambo 148 Posted July 24, 2018 Author Share Posted July 24, 2018 1 minute ago, Zan said: I'm trying to point out where you need to put return at. Will try out, immediately. Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/#findComment-45964 Share on other sites More sharing options...
Bambo 148 Posted July 24, 2018 Author Share Posted July 24, 2018 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. Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/#findComment-45965 Share on other sites More sharing options...
Zan 99 Posted July 24, 2018 Share Posted July 24, 2018 Delete bindlocation; ", " You need it to be return hearth;" Bambo 1 Link to comment https://wrobot.eu/forums/topic/9836-can-not-get-lua-hearthstone-to-work/#findComment-45966 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now