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.

range check plugin issues

Featured Replies

Hi all, I've thrown together a plugin to try and get my hunter to correctly range against targets it's fighting as if it pulls when they're too close it's just stuck in the deadzone. I've whipped this up for vanilla but the get target/get distance doesn't seem to be working. Any advice from you experienced folks here? I can't seem to find an api so it's all ripped from other projects I've read. Thanks

using wManager;
using System;
using System.Threading;
using System.Windows;
using robotManager.Helpful;
using wManager.Wow.Class;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using robotManager.Products;
using System.Collections.Generic;
using System.Linq;

public class Main : wManager.Plugin.IPlugin
{
    private bool _loop;
    
    public void Initialize()
    {
        _loop = true;
        Loop();
    }

    void Loop()
    {
        while (_loop)
        {
            Thread.Sleep(100);
            GetInRange();
            
        }
    }

    public void GetInRange()
    {
            if (Fight.InFight)
            {
                if (ObjectManager.get_Target().get_GetDistance() <= 9f && ObjectManager.get_Target().get_GetDistance() >= 2f)
                {
                    Lua.LuaDoString("MoveBackwardStart()", false);
                }
                if (ObjectManager.get_Target().get_GetDistance() >= 9f)
                {
                    Lua.LuaDoString("MoveBackwardStop()", false);
                }
            }
    }

   
    public void Dispose()
    {
        _loop = false;
      
    }

    public void Settings()
    {
        MessageBox.Show("No settings for this plugin.");
    }
}

 

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.