It seems to work, but what is it with "Sitting out the scenario?" I did see the note about the blizzard bug, but, it has been sitting out 5 times now, is that normal?
The whole profile is wrapped in "<While Condition="true"> ... </While>" it can never be done, because true is never false. The only way to end it is to have HBRelog shut it down or by pressing the stop button. Feel free to look at the source, it is linked in the first post, but I don't know why this happens to very few and select people.
var inv = Lua.GetReturnVal<bool>($"zone, timeLeftMinutes, rewardQuestID = GetInvasionInfo({x}); return not IsQuestFlaggedCompleted(rewardQuestID) and timeLeftMinutes > 0;", 0);
3 Legion Invasion: Northern Barrens
4 Legion Invasion: Westfall
5 Legion Invasion: Tanaris
6 Legion Invasion: Dun Morogh
7 Legion Invasion: Hillsbrad
8 Legion Invasion: Azshara
private bool InvasionInHillsbrad() {
return (invasionMapId == 0 && Math.Abs(0.46500000357628f - mapX) < 0.000001f && Math.Abs(0.41999998688698 - mapY) < 0.000001f);
Logging.Write(System.Windows.Media.Colors.Chocolate, "[Profile Message]: Invasion in Hillsbrad Foothills found.");
}
private bool InvasionInHillsbrad() {
return Lua.GetReturnVal<bool>($"zone, timeLeftMinutes, rewardQuestID = GetInvasionInfo(7); return not IsQuestFlaggedCompleted(rewardQuestID) and timeLeftMinutes > 0;", 0);
Logging.Write(System.Windows.Media.Colors.Chocolate, "[Profile Message]: Invasion in Hillsbrad Foothills found.");
}
I've run into two instances now where it doesn't land and dismount. Once it dismounted me way up in the clouds. the other time it just hovered. What is the desired behavior here?
Restarted the client and it started working, wow is werid with lua sometime...
did you consider using the GetInvasionInfo lua?
I wasn't even aware of that API call. I had a few scenario snippets lying around and slapped them together. I will check that version out tomorrow. Gonna power down now after 16 hours of HB dev today.But thank you very much for pointing that it. Very valuable.
using(StyxWoW.Memory.AcquireFrame())for (var x = 3; x <= 8; x++)
{
var info = Lua.GetReturnValues($"return GetInvasionInfo({x})");
if(info == null || info.Count < 3) continue;
var questCompted = Lua.GetReturnVal<bool>($"return IsQuestFlaggedCompleted({info[2]});", 0);
var inv = Lua.GetReturnVal<bool>($"zone, timeLeftMinutes, rewardQuestID = GetInvasionInfo({x}); return not IsQuestFlaggedCompleted(rewardQuestID) and timeLeftMinutes > 0;", 0);
Log($"Index {x} Name: {info[0]} TimeRemaining: {info[1]}min QuestId {info[2]} QuestCompleted {questCompted} CanDoInvasion {inv}");
}
if you target certain mobs you get extra shards, dont need to dismount just tag them
Just tried and:
MoveTo failed to move to the location: <1767.51, -4306.896, 6.219518>
[Profile Message]: We are not, where we are supposed to be. Attempting to recalculate our journey.
[Travel Studio]: We couldn't reach our goal location after 3 attempts. Aborting now for security reasons.
Bot stopping! Reason: We couldn't reach our goal location after 3 attempts. Aborting now for security reasons.
How do we use the Studio Companion with this? I can't find it in the plug-in at all.
thank you this!!
But I have run into problems after doing a westfall invasion.. it wants to cross the ocean.. and dies.
Am i doing something wrong?
anyone else having this problem?
what about make quests The Legion Returns ?
One more suggestion..
I am noticing other people.. standing almost exactly where I am.
Is it possible to randomize the place?.. or stay further away from other.. bots?