Jump to content

Recommended Posts

56 minutes ago, camelot10 said:

here doc about WoWUnit.InteractSpellId

http://docs.honorbuddy.com/html/2eaf5da1-b631-2fd7-26f0-9e135ee5bb12.htm

is there anything similar for wrobot?

WoWUnit.CastingSpellId

If you are looking for the spell id the unit is using

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?

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.

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

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.

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).

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

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.InteractSpellID) == 230877);

 

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

 

On 04.03.2017 at 0:24 AM, Droidz said:

thanks. this works

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...