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.

whats wrobot equivalent WoWUnit.InteractSpellId from HB?

Featured Replies

  • Author

nope. its not working. summoning Driodz

@Droidz

i need to convert C# from HB

public WoWUnit Barrel => ObjectManager.GetObjectsOfType<WoWUnit>().FirstOrDefault(u => u.IsValid && u.Entry == 115947 && u.InteractSpellId == 230877);

to wrobot

var barrel = ObjectManager.GetObjectWoWUnit().Where(u => u.IsValid && u.Entry == 115947 && u.CastingSpellId == 230877).FirstOrDefault();

this is not working. need more info

21 hours ago, camelot10 said:

nope. its not working. summoning Driodz

@Droidz

i need to convert C# from HB

public WoWUnit Barrel => ObjectManager.GetObjectsOfType<WoWUnit>().FirstOrDefault(u => u.IsValid && u.Entry == 115947 && u.InteractSpellId == 230877);

to wrobot

var barrel = ObjectManager.GetObjectWoWUnit().Where(u => u.IsValid && u.Entry == 115947 && u.CastingSpellId == 230877).FirstOrDefault();

this is not working. need more info

So what kind of informations does InteractSpellId contains? Is it the id of the currently casting spell?

  • Author

i dont know, 

tryed to decompile HB, but its obsfucated or my knowlegde too low.

i thinks its a spelleffect used when you interact with unit.

didnt found anything similar in wrobot WoWUnit, tryed everything whats return int/uint

need Droidz help, last time im encountered something like that - was AreaTrigger implemented in HB, and Droidz added support to wrobot

46 minutes ago, camelot10 said:

i dont know, 

tryed to decompile HB, but its obsfucated or my knowlegde too low.

i thinks its a spelleffect used when you interact with unit.

didnt found anything similar in wrobot WoWUnit, tryed everything whats return int/uint

need Droidz help, last time im encountered something like that - was AreaTrigger implemented in HB, and Droidz added support to wrobot

Well if you don't know what it does i think no one can help you not even droidz.

2 hours ago, camelot10 said:

according to http://www.wowhead.com/spell=230877/correct-barrel-selected

my suggestion about spell casted when interact with unit is correct

im pretty sure Droidz can impelent it, he seems busy atm

Well may i'm too stupid but could you please describe what you exacly want to do with interactSpell? If you are looking for the mob who is casting 230877 CastingSpellID is the right property but it seems its not the thing you are looking for.

 

Btw:
var barrel = ObjectManager.GetObjectWoWUnit().FirstOrDefault(u => u.IsValid && u.Entry == 115947 && u.CastingSpellId == 230877);
There is no need for the where if you are just looking for one.

  • Author

trying to script quest http://www.wowhead.com/quest=45072/barrels-o-fun

3-5 barrels. one barrel have correct InteractSpellId lead to win. other barrels have bad InteractSpellId lead to lose.

you must rclick (interact) with correct barrel.

tryed everything with wrobot. all barrels same/equal for wrobot (except position).

  • Author
24 minutes ago, iMod said:

Ah got it, watched at youtube. You could check the unit fields in the ddl if it contains InteractSpellID or something similar.

can you explain? didnt understand what to do

  • Author
31 minutes ago, Droidz said:

Hello, try 


var barrel = ObjectManager.GetObjectWoWUnit().FirstOrDefault(u => u.IsValid && u.Entry == 115947 && u.GetDescriptorStartAddress > 0 && wManager.Wow.Memory.WowMemory.Memory.ReadUInt32(u.GetDescriptorStartAddress + (uint)wManager.Wow.Patchables.Descriptors.UnitFields.DisplayID) == 230877);

 

nope. dont work

 

	public override bool Pulse()
	{
		var startPosition = new Vector3(3247.771, 1683.865, 179.7584, "None");
		var questId = 45072;
		if (!Quest.HasQuest(questId) || ObjectManager.Me.Position.DistanceTo(startPosition) > 50)
		{
			Logging.Write("no quest or too far, go to quest area");
			GoToTask.ToPosition(startPosition);
			return true;
		}

		if (Lua.LuaDoString<bool>("return ExtraActionButton1:IsVisible();"))
		{
			Logging.Write("extra button click");
			wManager.Wow.Helpers.Lua.LuaDoString("ExtraActionButton1:Click()");
			Thread.Sleep(Others.Random(300, 600));
		}

		//var barrel = ObjectManager.GetObjectWoWUnit().Where(u => u.IsValid && u.Entry == 115947 && u.CastingSpellId == 230877).FirstOrDefault();
		var barrel = ObjectManager.GetObjectWoWUnit().FirstOrDefault(u => u.IsValid && u.Entry == 115947
			&& u.GetDescriptorStartAddress > 0 && wManager.Wow.Memory.WowMemory.Memory.ReadUInt32(u.GetDescriptorStartAddress + (uint)wManager.Wow.Patchables.Descriptors.UnitFields.DisplayID) == 230877);

		if (barrel == null)
		{
			Logging.Write("no barrel. wait");
			return true;
		}

		while (!barrel.IsGoodInteractDistance)
		{
			Logging.Write("move barrel");
			MovementManager.MoveTo(barrel);
			Thread.Sleep(1 * 1000);
		}

		Logging.Write("interact barrel");
		Interact.InteractGameObject(barrel.GetBaseAddress);
		Thread.Sleep(3 * 1000);
		return true;
	}

 

result:

00:18:03 - extra button click
00:18:03 - no barrel. wait
00:18:03 - no barrel. wait
00:18:03 - no barrel. wait
00:18:03 - no barrel. wait
00:18:04 - no barrel. wait
00:18:04 - no barrel. wait
00:18:04 - no barrel. wait
00:18:04 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:05 - no barrel. wait
00:18:06 - no barrel. wait
00:18:06 - no barrel. wait
00:18:06 - no barrel. wait

 

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.