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.

Node search radius

Featured Replies

Hi! 2 noob questions from me :)

1) How can I check is there any lootable node (felslate for example) in specific radius? Center of the circle is a bot.

2) Can I check a condition when some player put me in target? In other words i need to do some action when i've been selected by another player.

Hello,

1: 

        float radius = 50;
        foreach (var o in ObjectManager.GetObjectWoWGameObject())
        {
            if (o.IsValid && o.GetDistance < radius && o.CanOpen)
            {
                // your code here
            }
        }

2:

        foreach (var o in ObjectManager.GetObjectWoWPlayerTargetMe())
        {
            if (o.IsValid)
            {
                // your code here
            }
        }

or 

        foreach (var o in ObjectManager.GetObjectWoWPlayer())
        {
            if (o.IsValid && o.IsTargetingMe) // o.IsTargetingMeOrMyPet
            {
                // your code here
            }
        }

 

  • Author

Thank you so much! So for felslate it's gonna look something like this:

 float radius = 50;
        foreach (var o in ObjectManager.GetObjectWoWGameObject())
        {
            if (o.IsValid && o.GetDistance < radius && o.CanOpen && o.Name == "Felslate Deposit")
            {
                // your code here
            }
        }

Right?

  • 3 weeks later...
  • Author

One more question. Is there way to detect stuck nodes? Yeah, I know there is an option in wrobot for this, but I need to do it manually in my plugin. Thanks :)

 

update: got it. U have to add following condition

!wManager.wManagerSetting.IsBlackListedAllConditions()

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.