Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stopping move with SteadyShot.Launch(false);

Featured Replies

Hi all

 

I have a problem

 

Usually this command  :

 

public void FocusBuild()
    {
        SteadyShot.Launch(false);
    }
 
Never stop the bot during launch
 
But in the last release, the bot always stop moving to launch it
 
I think the library was modified and a bug is present now
 
Can you confirm, and fix it pls ?
 
Thank you very much :
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;
        }
    }
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.