Jump to content

how do i make quester set hearthstone


retrostalgic
 Share

Recommended Posts

Something like

var bindLocation = Lua.LuaDoString("hearth=GetBindLocation();", "hearth");
while (bindLocation != "Goldshire")
{
	wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(innkeeper.Position, innkeeperEntry);
 	Lua.LuaDoString("SelectGossipOption(1)");	// WRobot has a command for this too, I forgot it
	Lua.RunMacroText("/click StaticPopup1Button1");
}

I can't remember what I did but thats the basic idea.

Link to comment
Share on other sites

2 hours ago, skeletonboy360 said:

Something like

var bindLocation = Lua.LuaDoString("hearth=GetBindLocation();", "hearth");
while (bindLocation != "Goldshire")
{
	wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(innkeeper.Position, innkeeperEntry);
 	Lua.LuaDoString("SelectGossipOption(1)");	// WRobot has a command for this too, I forgot it
	Lua.RunMacroText("/click StaticPopup1Button1");
}

I can't remember what I did but thats the basic idea.

Should add some wait time between commands especially after last command so if there is lag it wont redo same crap

Link to comment
Share on other sites

  • 1 year later...

Old topic. Wanted to leave a post since well fuck it? lol.

Setting your Hearthstone. (This code can be used for many many other situations.) my own making,

// How to set your Hearthstone, the pro way

// Step 1 - Set IF Statment.
IF Statment  IF code in the quest order editor IF (link code below)

Lua.LuaDoString<string>("bindlocation = GetBindLocation(); return bindlocation;") != "Orgrimmar"

// Step 2 - RUNCODE - Change the Location + NPC ID of your new innkeeper (using the helper tools)

var position = new Vector3(1633.99f, -4439.37f, 15.43382f);
int npcEntryId = 6929;
{
	if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId))
	System.Threading.Thread.Sleep(3000 * 2);
 	Lua.LuaDoString("GossipTitleButton1:Click();");
	System.Threading.Thread.Sleep(2000 * 2);
	Lua.LuaDoString("StaticPopup1Button1:Click();");
	System.Threading.Thread.Sleep(3000 * 2);
	Lua.LuaDoString("StaticPopup1Button1:Click();");
	Lua.LuaDoString("CloseMerchant()");
	System.Threading.Thread.Sleep(3000 * 2);
    if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId))
	System.Threading.Thread.Sleep(3000 * 2);
	Lua.LuaDoString("GossipTitleButton2:Click();");
	System.Threading.Thread.Sleep(3000 * 2);
	Lua.LuaDoString("StaticPopup1Button1:Click();");
	System.Threading.Thread.Sleep(3000 * 2);
	Lua.LuaDoString("StaticPopup1Button1:Click();");
	Lua.LuaDoString("CloseMerchant()");
}

// ENDIF -- Add an ENDIF Statment.
//This will force the bot to run to the npc location, it will do each step every 2 seconds (click the bind option) And a 2nd timeincase the bind is on button 2.

 

Link to comment
Share on other sites

  • 1 year later...

I thought id share a better, cleaner way to set HearthStone.

var Stone = Lua.LuaDoString<string>("bindlocation = GetBindLocation(); return bindlocation;");
		if (Stone != "LocationName" && wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(x, y, z), NpcID))
		{
			Usefuls.SelectGossipOption(GossipOptionsType.binder);
			Thread.Sleep(100);
			Lua.LuaDoString("StaticPopup1Button1");
			Lua.LuaDoString("CloseMerchant()");
		}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...