Jump to content

Droidz

Administrators
  • Posts

    12577
  • Joined

  • Last visited

Everything posted by Droidz

  1. Sample to use shortcut to activate/deactivate spells (look "_hookKeybindingsSpells"): Before WoD using System; using System.Threading; using System.Windows.Forms; using robotManager.Helpful; using robotManager.Products; using wManager.Wow.Class; using wManager.Wow.Enums; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using Timer = robotManager.Helpful.Timer; public class Main : ICustomClass { public float Range { get { return 20; } } private bool _isLaunched; private ulong _lastTarget; readonly KeyboardHook _hookKeybindingsSpells = new KeyboardHook(); private bool _spellsActivated = false; public void Initialize() // When product started, initialize and launch Fightclass { _isLaunched = true; _hookKeybindingsSpells.KeyPressed += HookSpellsKeyPressed; _hookKeybindingsSpells.RegisterHotKey(ModifierKeys.Alt, Keys.Q); Logging.Write("[My fightclass] Is initialized."); Rotation(); } private void HookSpellsKeyPressed(object sender, KeyPressedEventArgs e) { _spellsActivated = !_spellsActivated; if (_spellsActivated) Logging.Write("[My fightclass] Spells is activated."); else Logging.Write("[My fightclass] Spells is desactivated."); } public void Dispose() // When product stopped { _isLaunched = false; _hookKeybindingsSpells.Dispose(); Logging.Write("[My fightclass] Stop in progress."); } public void ShowConfiguration() // When use click on Fight class settings { MessageBox.Show("[My fightclass] No setting for this Fight Class."); } // SPELLS: public Spell SteadyShot = new Spell("Steady Shot"); // or "Arcane Shot" internal void Rotation() { if (!SteadyShot.KnownSpell) SteadyShot = new Spell("Arcane Shot"); Logging.Write("[My fightclass] Is started."); while (_isLaunched) { try { if (!Products.InPause) { if (!ObjectManager.Me.IsDeadMe) { BuffRotation(); if (Fight.InFight && ObjectManager.Me.Target > 0) { Pull(); CombatRotation(); } } } } catch (Exception e) { Logging.WriteError("[My fightclass] ERROR: " + e); } Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage. } Logging.Write("[My fightclass] Is now stopped."); } internal void BuffRotation() { if (ObjectManager.Me.IsMounted) return; } internal void Pull() { if (ObjectManager.Me.Target == _lastTarget) return; if (ObjectManager.Target.Target != ObjectManager.Me.Guid) { _lastTarget = ObjectManager.Me.Target; } } internal void CombatRotation() { // Steady Shot or Arcane Shot if (_spellsActivated) // Alt-Q { if (SteadyShot.IsSpellUsable && SteadyShot.IsDistanceGood && SteadyShot.KnownSpell) { SteadyShot.Launch(false); return; } } } } Since WoD: using System; using System.Threading; using System.Windows.Forms; using MemoryRobot; using robotManager.Helpful; using robotManager.Products; using wManager.Wow.Class; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : ICustomClass { public float Range { get { return 20; } } private bool _isLaunched; private Int128 _lastTarget; readonly KeyboardHook _hookKeybindingsSpells = new KeyboardHook(); private bool _spellsActivated = false; public void Initialize() // When product started, initialize and launch Fightclass { _isLaunched = true; _hookKeybindingsSpells.KeyPressed += HookSpellsKeyPressed; _hookKeybindingsSpells.RegisterHotKey(ModifierKeys.Alt, Keys.Q); Logging.Write("[My fightclass] Is initialized."); Rotation(); } private void HookSpellsKeyPressed(object sender, KeyPressedEventArgs e) { _spellsActivated = !_spellsActivated; if (_spellsActivated) Logging.Write("[My fightclass] Spells is activated."); else Logging.Write("[My fightclass] Spells is desactivated."); } public void Dispose() // When product stopped { _isLaunched = false; _hookKeybindingsSpells.Dispose(); Logging.Write("[My fightclass] Stop in progress."); } public void ShowConfiguration() // When use click on Fight class settings { MessageBox.Show("[My fightclass] No setting for this Fight Class."); } // SPELLS: public Spell SteadyShot = new Spell("Steady Shot"); // or "Arcane Shot" internal void Rotation() { if (!SteadyShot.KnownSpell) SteadyShot = new Spell("Arcane Shot"); Logging.Write("[My fightclass] Is started."); while (_isLaunched) { try { if (!Products.InPause) { if (!ObjectManager.Me.IsDeadMe) { BuffRotation(); if (Fight.InFight && ObjectManager.Me.Target.IsNotZero()) { Pull(); CombatRotation(); } } } } catch (Exception e) { Logging.WriteError("[My fightclass] ERROR: " + e); } Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage. } Logging.Write("[My fightclass] Is now stopped."); } internal void BuffRotation() { if (ObjectManager.Me.IsMounted) return; } internal void Pull() { if (ObjectManager.Me.Target == _lastTarget) return; if (ObjectManager.Target.Target != ObjectManager.Me.Guid) { _lastTarget = ObjectManager.Me.Target; } } internal void CombatRotation() { // Steady Shot or Arcane Shot if (_spellsActivated) // Alt-Q { if (SteadyShot.IsSpellUsable && SteadyShot.IsDistanceGood && SteadyShot.KnownSpell) { SteadyShot.Launch(false); return; } } } }
  2. If move your thread to good forum.
  3. Hello, I have looked library code and all seem good, I have try and works fine, can you test this code and tell me if this works: using System; using System.Threading; using System.Windows.Forms; using robotManager.Helpful; using robotManager.Products; using wManager.Wow.Class; using wManager.Wow.Enums; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using Timer = robotManager.Helpful.Timer; public class Main : ICustomClass { public float Range { get { return 20; } } private bool _isLaunched; private ulong _lastTarget; public void Initialize() // When product started, initialize and launch Fightclass { _isLaunched = true; Logging.Write("[My fightclass] Is initialized."); Rotation(); } public void Dispose() // When product stopped { _isLaunched = false; Logging.Write("[My fightclass] Stop in progress."); } public void ShowConfiguration() // When use click on Fight class settings { MessageBox.Show("[My fightclass] No setting for this Fight Class."); } // SPELLS: public Spell SteadyShot = new Spell("Steady Shot"); // or "Arcane Shot" internal void Rotation() { if (!SteadyShot.KnownSpell) SteadyShot = new Spell("Arcane Shot"); Logging.Write("[My fightclass] Is started."); while (_isLaunched) { try { if (!Products.InPause) { if (!ObjectManager.Me.IsDeadMe) { BuffRotation(); if (Fight.InFight && ObjectManager.Me.Target > 0) { Pull(); CombatRotation(); } } } } catch (Exception e) { Logging.WriteError("[My fightclass] ERROR: " + e); } Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage. } Logging.Write("[My fightclass] Is now stopped."); } internal void BuffRotation() { if (ObjectManager.Me.IsMounted) return; } internal void Pull() { if (ObjectManager.Me.Target == _lastTarget) return; if (ObjectManager.Target.Target != ObjectManager.Me.Guid) { _lastTarget = ObjectManager.Me.Target; } } internal void CombatRotation() { // Steady Shot or Arcane Shot if (SteadyShot.IsSpellUsable && SteadyShot.IsDistanceGood && SteadyShot.KnownSpell) { SteadyShot.Launch(false); return; } } }
  4. Hi, I'll add this feature next week.
  5. Hello, WRobot return to the nearest position + 1 (of your profile), if the nearest position+1 is not in view, wrobot return to nearest position.
  6. Hello, it is not really an tuto, For remote WRobot you can use feature delivred with the bot (Activate option "Remote" in "Main" tab and go to this page). Or, I have create small software to share your screen (with mouse and keyboard control), you can access at your screen only with webbrowser (android, iphone, windows, mac, linux webbrowser) where you want. You can found software here. (you can also use software like teamviewer but you need to install a client to access at the screen).
  7. Bonjour, Les plugins ce trouve ici. Pour les quêtes il faut utiliser un produit (bot), ce produit ce nomme "Quester" et il est livré avec le bot. Vous pouvez sélectionner le bot quête (quester) dans l'onglet "Main" de WRobot.
  8. Hello, I have fixed problem, download again plugin.
  9. Bonjour, Comme répondu par message privé WRobot ne fonctionne pas avec l'authentificator.
  10. Hello, I have forget to post message in this thread but WRobot is now updated, just relaunch WRobot and Accept update.
  11. Hello, This is a wow bug, I can't fix it. The best way is to blacklist wow zone where you have this problem.
  12. Hello, For the moment you can use lua condition with UnitRace. Sample: IsUndead = 0; local race, raceEn = UnitRace("target"); if (raceEn == "Scourge") then IsUndead = 1; end I'll add this condition directly in fightclass creator during next update.
  13. Pouvez vous partager le journal complet. Et pouvez vous désactiver tout vos addon wow si vous en avez. Avez vous essayé de réinstaller WRobot dans un nouveau dossier et de ne pas toucher aux configurations (sauf sélection fightclass et profil)?
  14. I have added support for dead NPCs to pickup/turnin quest, tell me if you have problem with it.
  15. Problem solved. Relaunch WRobot and accept update.
  16. Si vous pouvez me dire si le problème est corrigé avec la prochaine mise à jour
  17. Hello, I'll work on this, wait one or two hours.
  18. Bonjour, Pouvez vous partager le fichier journal d'une session de WRobot ou vous avez rencontré ce problème (vous pouvez trouver le journal dans le dossier "Logs" du bot? Vérifier si dans Wow la touche pour s’asseoir/décentre est bien une lettre (X par défaut).
  19. Merci, je vais corriger ce problème, je reviens vers vous des que le problème est résolu.
  20. Hello, To active pluging: Go to "General Settings" > "Enter advanced settings..." > tab "Plugins" > Select "WhisperScreenshot" > Click on button "Activate/Desactivate selected Plugin" (plugin name is green when is activated).
  21. You can found another's plugin source code here:
  22. Bonjour, Le vendeur de votre monture est bien: http://fr.wowhead.com/npc=32638 ? Et le réparateur est bien: http://fr.wowhead.com/npc=32639 ?
  23. If you can wait next update, I have added more informations in debug spell log, when next update is released, send me debug spell log again please. Thanks.
  24. Hello, If you want fight to loot herbs/mines, in advance generals settings tab "Looting and Farming options" disable option "Ignore fight during farm if druid form". If you want ignore herbs/mines with mobs near, in advance generals settings tab "Looting and Farming options" put 0 at option "Max Units Near".
  25. Hello, You have a privileges problem. Your Windows user (session) is probably not an administrator user. Your error: Get admin rights on your Windows user to resolve problem.
×
×
  • Create New...