Hello,
Start > robotManager.Events.FiniteStateMachineEvents.OnRunState
Loop > robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState (you need to wait next update)
End > robotManager.Events.FiniteStateMachineEvents.OnAfterRunState
robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancel) =>
{
if (state.DisplayName == "Regeneration")
{
// ...
}
};
// OR
robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancel) =>
{
if (state is wManager.Wow.Bot.States.Regeneration)
{
// ...
}
};
// I also add OnCustomEvent, you can create your own event like that robotManager.Events.Events.CustomEventCancelable("Event Name", new object[] { "arg1", "arg2" });
robotManager.Events.Events.OnCustomEvent += (name, args, cancelable) =>
{
if (name == "ItemsManager.UseItem")
{
var itemName = (string)args[0];
}
else if (name == "SpellManager.CastSpellByNameLUA")
{
var spellName = (string)args[0];
}
// ...
};
Hi, I have verified, 3D secure is supported by Stripe. Try to contact your bank or Stripe. I will add you a key with a few days of subscription until the problem is solved.
Hi.
Don't use enum "LuaEventsId" it is obsolete, use string like that:
EventsLua.AttachEventLua("LFG_PROPOSAL_SHOW", m => Lua.LuaDoString("AcceptProposal();"));
You can dump all events and check event called when you get this popup, run this code one time when product is started:
wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaStringWithArgs += (eventid, args) =>
{
Logging.WriteDebug("[EVENT] " + eventid);
};
I fixed it in new update, now the bot compiles all the steps at start (in one time) and the calls from the cache. For that this works, must be no error in the C # codes used in profile "steps" (a lot of profiles have bad code, you have an error log when profile is loaded if error and the steps codes are compiled 1 by 1 as before)
Hey, I use only lua api I don't know why this move your cursor:
public static void GoUnderWater()
{
Lua.LuaDoString("MoveViewUpStart()");
Thread.Sleep(1000);
Lua.LuaDoString("MoveViewUpStop() MoveAndSteerStart() MoveAndSteerStop()");
}
I fixed it in new update, now the bot compiles all the steps at start (in one time) and the calls from the cache. For that this works, must be no error in the C # codes used in profile "steps" (a lot of profiles have bad code, you have an error log when profile is loaded if error and the steps codes are compiled 1 by 1 as before)
I fixed it in new update, now the bot compiles all the steps at start (in one time) and the calls from the cache. For that this works, must be no error in the C # codes used in profile "steps" (a lot of profiles have bad code, you have an error log when profile is loaded if error and the steps codes are compiled 1 by 1 as before)
Thanks like always... was my fault. You can close this bug request.
1. GetBuff(spellName: "") => Works, I took the ingame name but the english name was requiered.
2. HaveBuff works now for some reasons... no clue may I was testing at a dummy.
The ObjectManager.Target works way better, thanks for that hint.
Hi,
Logging.Write("===================");
var t = System.Diagnostics.Stopwatch.StartNew();
uint id = 8326;
var n = "Ghost";
var s = System.Diagnostics.Stopwatch.StartNew();
Logging.Write("TargetObject.HaveBuff(id) > " + wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.HaveBuff(id) + " > " + s.ElapsedMilliseconds);
s.Restart();
Logging.Write("TargetObject.GetBuff(n) > " + wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.GetBuff(n) + " > " + s.ElapsedMilliseconds);
s.Restart();
Logging.Write("Target.HaveBuff(id) > " + wManager.Wow.ObjectManager.ObjectManager.Target.HaveBuff(id) + " > " + s.ElapsedMilliseconds);
s.Restart();
Logging.Write("Target.GetBuff(n) > " + wManager.Wow.ObjectManager.ObjectManager.Target.GetBuff(n) + " > " + s.ElapsedMilliseconds);
Logging.Write(t.ElapsedMilliseconds + " ms ========");
I can't reproduce problem, if you can code that I can run for that.
But it is better to use objectmanager.target to get character target (it is more safe and bot cache result)
Hi,
Anyone else is getting this problem? I don't think I can do much, the best would be to optimize your profile to avoid loading too much (maybe create loader profile)
Hi, I'm sorry I wouldn't add this possibility, it will be complicated to add with the current implementation. But you can try to start and end with a "Wait" task.