Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can not get LUA Hearthstone to work

Featured Replies

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

 

  • 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.

 

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.