Jump to content

Droidz

Administrators
  • Posts

    12432
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Droidz got a reaction from Zer0 in Regeneration state events   
    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]; } // ... };  
  2. Like
    Droidz reacted to dvk05tv in Cant login to legion   
    same problem
  3. Like
    Droidz got a reaction from Luking in Store: Purchase [Pay]   
    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.
  4. Sad
    Droidz got a reaction from Luking in Store: Purchase [Pay]   
    Hello, error is all time "insufficient_funds" > https://stripe.com/docs/declines/codes
  5. Like
    Droidz got a reaction from Pudge in LFG_PROPOSAL_SHOW Bugged.   
    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); };  
  6. Like
    Droidz got a reaction from Paultimate in UseItemOn doesn't work because of Item Cooldown   
    Hello, to bypass this problem, before to pulse this quest add step type runcode:
    robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) => { int itemId = 1234; int questId = 1234; if (!wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) return; if (wManager.Wow.Helpers.Conditions.IsAttackedAndCannotIgnore) return; if (state.DisplayName == "Quester") { if (wManager.Wow.Helpers.Quest.HasQuest(questId) && wManager.Wow.Helpers.Lua.LuaDoString<bool>("local start, duration, enable = GetItemCooldown("+ itemId + "); return enable;")) { cancelable.Cancel = true; } } }; (replace spell and item id)
  7. Thanks
    Droidz got a reaction from Pudge in Use food "Healing spell"   
    Hi, thank you wait next update for the fix
  8. Like
    Droidz reacted to Dreamful in Relogger crash at logging in   
    Damn, i am so sorry, i didnt had the .NET 4.8 Framework. Its now working now.
    Thank you Droidz!
  9. Like
    Droidz got a reaction from Pudge in LoadProfile and slow loading of profile steps   
    check all steps with the code "Var.GetVar"
     
  10. Thanks
    Droidz got a reaction from Pudge in LoadProfile and slow loading of profile steps   
    you probably use "Var.GetVar("varname")" instead "Var.GetVar<type>("varname")" ( https://docs.microsoft.com/dotnet/csharp/misc/cs0411 )
  11. Like
    Droidz got a reaction from Pudge in LoadProfile and slow loading of profile steps   
    you have probably error on one of your steps, in this case bot use old method to run steps (you will get again slow problem)
  12. Like
    Droidz got a reaction from Pudge in LoadProfile and slow loading of profile steps   
    I found cause (C# compiler,  more he has compiled code, slower it is) .
    For the moment, I don't know if I'll be able to fix it.
  13. Thanks
    Droidz got a reaction from Pudge in LoadProfile and slow loading of profile steps   
    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)
  14. Like
    Droidz got a reaction from Pudge in MovementManager.GoUnderwater   
    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()"); }  
  15. Thanks
    Droidz got a reaction from Energia in LoadProfile and slow loading of profile steps   
    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)
  16. Like
    Droidz got a reaction from Talamin in LoadProfile and slow loading of profile steps   
    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)
  17. Like
    Droidz reacted to iMod in [WOTLK] Functions seems not to work properly   
    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.
  18. Like
    Droidz got a reaction from iMod in [WOTLK] Functions seems not to work properly   
    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)
  19. Like
    Droidz got a reaction from Sye in LoadProfile and slow loading of profile steps   
    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)
  20. Like
    Droidz got a reaction from Pudge in 3d Search Radius Mobs or Objects   
    Hey, https://wrobot.eu/byme/doc/html/AllMembers.T-wManager.wManagerSetting.htm look 
    MaxZDistanceAttack MaxZDistanceFarm MaxZDistanceIsAttacked  
  21. Like
    Droidz got a reaction from Talamin in Add new step/action field near to selected   
    rightclick on button "+" will add step/quest after select item
  22. Like
    Droidz got a reaction from Pudge in Add offmesh (forced) for Barrens Elevator   
    new PathFinder.OffMeshConnection(new List<Vector3> { new Vector3(-4661.469, -1852.599, 85.31993), new Vector3(-4670.487, -1850.974, 85.44978) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, 85.40948)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-4676.191, -1854.226, -44.17822) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait to leave Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, -43.52628)) < 0.5) break; Thread.Sleep(10); }"}, }, (int)ContinentId.Kalimdor, PathFinder.OffMeshConnectionType.Unidirectional, true), new PathFinder.OffMeshConnection(new List<Vector3> { new Vector3(-4676.191, -1854.226, -44.17822), new Vector3(-4670.487, -1850.974, -44.1039) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, -43.52628)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-4661.469, -1852.599, 85.31993) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait to leave Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, 85.40948)) < 0.5) break; Thread.Sleep(10); }"}, }, (int)ContinentId.Kalimdor, PathFinder.OffMeshConnectionType.Unidirectional, true), new PathFinder.OffMeshConnection(new List<Vector3> { new Vector3(-4661.469, -1852.599, 85.31993), new Vector3(-4670.487, -1850.974, 85.44978) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, 85.40948)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-4676.191, -1854.226, -44.17822) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait to leave Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, -43.52628)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-4698.969, -1859.781, -47.16851), new Vector3(-4700.999, -1823.182, -55.39115), new Vector3(-4780.597, -1785.426, -48.56682), new Vector3(-4850.14, -1824.823, -52.75588), new Vector3(-4954.374, -1754.894, -58.46568), new Vector3(-5032.556, -1765.546, -65.54012), new Vector3(-5057.792, -1785.469, -59.28477), new Vector3(-5009.802, -1892.393, 3.451542), new Vector3(-4908.038, -1879.857, 29.39223), new Vector3(-4892.369, -1838.979, 54.76697), new Vector3(-4805.432, -1854.13, 78.42011), new Vector3(-4791.457, -1850.512, 77.53859), new Vector3(-4769.437, -1860.235, 86.28339), new Vector3(-4788.422, -1883.129, 90.03716), new Vector3(-4889.425, -1972.254, 91.88503), new Vector3(-5027.259, -1938.423, 90.68459), }, (int)ContinentId.Kalimdor, PathFinder.OffMeshConnectionType.Unidirectional, true), new PathFinder.OffMeshConnection(new List<Vector3> { new Vector3(-5027.259, -1938.423, 90.68459), new Vector3(-4889.425, -1972.254, 91.88503), new Vector3(-4788.422, -1883.129, 90.03716), new Vector3(-4769.437, -1860.235, 86.28339), new Vector3(-4791.457, -1850.512, 77.53859), new Vector3(-4805.432, -1854.13, 78.42011), new Vector3(-4892.369, -1838.979, 54.76697), new Vector3(-4908.038, -1879.857, 29.39223), new Vector3(-5009.802, -1892.393, 3.451542), new Vector3(-5057.792, -1785.469, -59.28477), new Vector3(-5032.556, -1765.546, -65.54012), new Vector3(-4954.374, -1754.894, -58.46568), new Vector3(-4850.14, -1824.823, -52.75588), new Vector3(-4780.597, -1785.426, -48.56682), new Vector3(-4700.999, -1823.182, -55.39115), new Vector3(-4698.969, -1859.781, -47.16851), new Vector3(-4676.191, -1854.226, -44.17822), new Vector3(-4670.487, -1850.974, -44.1039) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, -43.52628)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-4661.469, -1852.599, 85.31993) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait to leave Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-4670.77, -1849.61, 85.40948)) < 0.5) break; Thread.Sleep(10); }"}, }, (int)ContinentId.Kalimdor, PathFinder.OffMeshConnectionType.Unidirectional, true), new PathFinder.OffMeshConnection(new List<Vector3> { new Vector3(-5387.5, -2483.334, 88.93), new Vector3(-5383.036, -2488.412, 89.06) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-5382.5, -2489.42, 89.02528)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-5375.26, -2489.24, -40.56239) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait to leave Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-5382.5, -2489.42, -40.5284)) < 0.5) break; Thread.Sleep(10); }"}, }, (int)ContinentId.Kalimdor, PathFinder.OffMeshConnectionType.Unidirectional, true), new PathFinder.OffMeshConnection(new List<Vector3> { new Vector3(-5375.26, -2489.24, -40.56239), new Vector3(-5383.036, -2488.412, -40.48) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-5382.5, -2489.42, -40.5284)) < 0.5) break; Thread.Sleep(10); }"}, new Vector3(-5387.5, -2483.334, 88.93) {Action = "c#: Logging.WriteNavigator(\"[OffMeshConnection] Barrens Elevator > Wait to leave Elevator\"); while (Conditions.InGameAndConnectedAndProductStartedNotInPause) { var elevator = ObjectManager.GetWoWGameObjectByEntry(11899).OrderBy(o => o.GetDistance).FirstOrDefault(); if (elevator != null && elevator.IsValid && elevator.Position.DistanceTo(new Vector3(-5382.5, -2489.42, 89.02528)) < 0.5) break; Thread.Sleep(10); }"}, }, (int)ContinentId.Kalimdor, PathFinder.OffMeshConnectionType.Unidirectional, true), }; //wManager.Wow.Helpers.PathFinder.OffMeshConnections.MeshConnection.Clear(); wManager.Wow.Helpers.PathFinder.OffMeshConnections.AddRange(connections); I'll add it to the server
  23. Sad
    Droidz got a reaction from Pudge in Relogger, random working schedule From and To   
    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.
  24. Thanks
    Droidz got a reaction from Pudge in Add new step/action field near to selected   
    Hi,
    I'll add option like that
  25. Thanks
    Droidz got a reaction from bio33 in BFA wrobot cannot attach to BFA client after wrobot last update   
    Hello, you can try with new update
×
×
  • Create New...