Jump to content

Droidz

Administrators
  • Posts

    12587
  • Joined

  • Last visited

Everything posted by Droidz

  1. Hello, Me.IsSitting is not in WRobot api, you cannot detect if your character is sit or not. Correct plugin code seem more like (not work) : using System.Threading; using wManager.Plugin; using wManager.Wow.Helpers; public class Main : IPlugin { public void Initialize() { while (Conditions.ProductIsStarted) { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (robotManager.Helpful.Logging.Status == "Regeneration") { if (!wManager.Wow.ObjectManager.ObjectManager.Me.IsSitting) { wManager.Wow.Helpers.Move.SitStandOrDescend(); Thread.Sleep(1000); } } } Thread.Sleep(500); } } public void Dispose() { } public void Settings() { } } Try this: using System.ComponentModel; using System.Threading; using robotManager.FiniteStateMachine; using wManager.Wow.Helpers; public class Main : wManager.Plugin.IPlugin { public void Initialize() { robotManager.Events.FiniteStateMachineEvents.OnRunState += delegate(Engine engine, State state, CancelEventArgs cancelable) { if (state.DisplayName == "Regeneration") { Move.SitStandOrDescend(); Thread.Sleep(1000); } }; } public void Dispose() { } public void Settings() { } }
  2. https://wrobot.eu/forums/topic/9777-sitting-during-regeneration/
  3. Hello, it is normally automatic, do you use wow addons? if yes try to disable all.
  4. Hello, https://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=13088
  5. Droidz

    Vanila Set Target in code

    Hello, use Me.Target (instead Me.Focus)
  6. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  7. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  8. Droidz

    求帮助

    Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  9. Hello, can you read this: https://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 If you problem is not resolved, can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  10. Hello, this is sample code with defaut condition: GoToTask.ToPosition(Vector3.Zero, 3.5f, false, context => Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !Conditions.IsAttackedAndCannotIgnore);
  11. GetDistance is good it is distance from the center of player to the center of the unit. I use PositionWithoutType to avoid useless step (check if fly or swimming) (for performance, but that does not change the result). I'll add: public float GeHitBoxtDistance { get { try { var d = PositionWithoutType.DistanceTo(ObjectManager.Me.PositionWithoutType) - CombatReach - ObjectManager.Me.CombatReach; if (d < 0) d = 0; return d; } catch (Exception e) { Logging.WriteError("WoWUnit > GeHitBoxtDistance: " + e); return 0; } } } Current, for spell.isgooddistance I use: public bool IsDistanceGood { get { try { if (ObjectManager.ObjectManager.Target.IsValid) { float combatReach = 0; if (wManagerSetting.CurrentSetting.CalcuCombatRange) combatReach = ObjectManager.ObjectManager.Target.CombatReach; if (ObjectManager.ObjectManager.Target.GetDistance <= MaxRange + combatReach && (ObjectManager.ObjectManager.Target.GetDistance >= MinRange - combatReach)) { return true; } } return false; } catch (Exception exception) { Logging.WriteError("Spell > IsDistanceGood: " + exception); return true; } } } And to get player combat range (from fightcalss settings): public static float GetRange { get { try { if (_instanceFromOtherAssembly != null) { float range; if (_instanceFromOtherAssembly.Range < 6.5f) { range = 2.7f; if (wManagerSetting.CurrentSetting.CalcuCombatRange && ObjectManager.ObjectManager.Target.IsValid) { range += ObjectManager.ObjectManager.Target.CombatReach; } if (range < 3.5) range = 3.5f; } else { range = _instanceFromOtherAssembly.Range; if (wManagerSetting.CurrentSetting.CalcuCombatRange && ObjectManager.ObjectManager.Target.IsValid) { range += ObjectManager.ObjectManager.Target.CombatReach - 1; } } return range; } return 4.5f; } catch (Exception exception) { Logging.WriteError("CustomClass > GetRange: " + exception); return 5.0f; } } } I will check that (GetRange and isgooddistance), I take note
  12. Changed Status to Confirmed Changed Version to All
  13. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  14. Hello, you get this problem only with this food item?
  15. Hello, I don"t found problem in your log
  16. Hello, GetDistance retourn "PositionWithoutType.DistanceTo(ObjectManager.Me.PositionWithoutType);" You want than I add method to return "Position.DistanceTo(ObjectManager.Me.Position) - this.CombatReach - ObjectManager.Me.CombatReach"?
  17. Droidz

    [TBC] Memory leak?

    This problem is only in TBC, I ignore if it is server or client bug, and I ignore how to fix that
  18. Droidz

    Relogger pause function

    Hello, you can do this to wait: https://wrobot.eu/forums/topic/9656-cant-run-10-sessions/?do=findComment&amp;comment=45078
  19. Droidz

    Relogger pause function

    Changed Status to Confirmed Changed Version to All
  20. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  21. Try to follow this guide: https://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966
  22. I found why. Edit file "WRobot\Settings\RobotManagerGlobalSetting.xml" and use same "ArgsEnvironmentVariables" in all WRobot installs
  23. Hello, can you read this: https://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966 If you problem is not resolved, can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  24. Hello, Fightclass thread is in pause when you cast spell, remove condition "'Me In Cast = true"
  25. Droidz

    [TBC] Memory leak?

    Change continent (dead? logout?) seem to clean objectmanager. Can you try with the new update and tell me if this change something about CPU usage.
×
×
  • Create New...