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.