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.

[Solved] Equip Thrown

Featured Replies

Hey,

I would like to check if Thrown is quiped and if not, equip it.

I have this but need help with the equip function:

private void EquipThrown()
	{
		if (player.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED) = 0)
		{
			foreach (WoWItem item in Bag.GetBagItem())
			{
				if(item.GetItemInfo.ItemName == "Heavy Throwing Dagger")
				{
					EQUIP THE ITEM
				}
				if (player.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED) != 0)
				{
					break;
				}
			}
		}
		return;
	}

Also, is there a way so i can avoid hardcoding the thrown name? Sth like isItemUsable && itemIsRanged

Thx

  • Author

Figured it out. Apparently you can use items to equip them. At least in this case. It's wonky but it works:

private void EquipThrown()
	{
		if (ObjectManager.Me.GetEquipedItemBySlot(wManager.Wow.Enums.InventorySlot.INVSLOT_RANGED) == 0) // if player doesn't have a ranged weapon equipped
		{
			if (ItemsManager.HasItemById(3108))
			{
				ItemsManager.UseItem(3108);
			}
		}
		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.