Jump to content

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.

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

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

 

  • 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()");
		}

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...