Jump to content

Droidz

Administrators
  • Posts

    12508
  • Joined

  • Last visited

Everything posted by Droidz

  1. Droidz

    SellItem error

    Hello, wait next update
  2. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  3. Hello, I don't sell and don't use your personal informations, I request these because I am obliged to have invoices of my sales (for my company, I need to keep these informations 5 years, it's the laws of my country).
  4. 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() { } }
  5. https://wrobot.eu/forums/topic/9777-sitting-during-regeneration/
  6. Hello, it is normally automatic, do you use wow addons? if yes try to disable all.
  7. Hello, https://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=13088
  8. Droidz

    Vanila Set Target in code

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

    求帮助

    Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  12. 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/ ).
  13. Hello, this is sample code with defaut condition: GoToTask.ToPosition(Vector3.Zero, 3.5f, false, context => Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !Conditions.IsAttackedAndCannotIgnore);
  14. 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
  15. Changed Status to Confirmed Changed Version to All
  16. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  17. Hello, you get this problem only with this food item?
  18. Hello, I don"t found problem in your log
  19. 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"?
  20. 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
  21. 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
  22. Droidz

    Relogger pause function

    Changed Status to Confirmed Changed Version to All
  23. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  24. Try to follow this guide: https://wrobot.eu/forums/topic/1381-repairinstall-wrobot/#comment-966
  25. I found why. Edit file "WRobot\Settings\RobotManagerGlobalSetting.xml" and use same "ArgsEnvironmentVariables" in all WRobot installs
×
×
  • Create New...