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.

Get skinnable mobs

Featured Replies

2 hours ago, burnii said:

Hey, is there a function that returns the number of skinnable mobs around the player?  or sth similar?

int count = ObjectManager.GetWoWUnitHostile().Count(u => u.Type == WoWObjectType.Unit && u.Skinnable && u.GetDistance2D <= 40);

This would return the count of all unit around you in range of 40 yards who are skinnable.

  • Author
18 hours ago, iMod said:

int count = ObjectManager.GetWoWUnitHostile().Count(u => u.Type == WoWObjectType.Unit && u.Skinnable && u.GetDistance2D <= 40);

This would return the count of all unit around you in range of 40 yards who are skinnable.

Okay, first of all thank you for the answer. 
To test the function I wrote an infinite loop and if there are no more skinnable mobs near the bot he should write sth into the log. I positioned the bot next to some skinnable corpses and started the bot. Seems like he doesnt find any skinnable mobs since he just writes the message over and over again into the log, doesnt matter how many skinnable corpses are next to him :/

32 minutes ago, dragonmase said:

I might be wrong, but maybe because the units are dead and are corpses and so doesn't count has hostile mobs for this function?

Hm could be a reason. Replace it with

ObjectManager.GetObjectWoWUnit().Count(u => u.Skinnable && u.GetDistance2D <= 40);

If you just want dead units that are skinnable you need to add "&& u.IsDead"
Hope that helps

  • Author
20 minutes ago, iMod said:

Hm could be a reason. Replace it with


ObjectManager.GetObjectWoWUnit().Count(u => u.Skinnable && u.GetDistance2D <= 40);

If you just want dead units that are skinnable you need to add "&& u.IsDead"
Hope that helps

Works now, thank you !

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.