camelot10 155 Posted March 1, 2017 Share Posted March 1, 2017 here doc about WoWUnit.InteractSpellId http://docs.honorbuddy.com/html/2eaf5da1-b631-2fd7-26f0-9e135ee5bb12.htm is there anything similar for wrobot? Link to comment Share on other sites More sharing options...
iMod 99 Posted March 1, 2017 Share Posted March 1, 2017 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 Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 1, 2017 Author Share Posted March 1, 2017 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 Link to comment Share on other sites More sharing options...
iMod 99 Posted March 2, 2017 Share Posted March 2, 2017 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? Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 2, 2017 Author Share Posted March 2, 2017 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 Link to comment Share on other sites More sharing options...
iMod 99 Posted March 2, 2017 Share Posted March 2, 2017 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. Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 2, 2017 Author Share Posted March 2, 2017 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 Link to comment Share on other sites More sharing options...
iMod 99 Posted March 2, 2017 Share Posted March 2, 2017 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. Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 2, 2017 Author Share Posted March 2, 2017 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). Link to comment Share on other sites More sharing options...
iMod 99 Posted March 2, 2017 Share Posted March 2, 2017 Ah got it, watched at youtube. You could check the unit fields in the ddl if it contains InteractSpellID or something similar. Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 2, 2017 Author Share Posted March 2, 2017 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 Link to comment Share on other sites More sharing options...
Droidz 2734 Posted March 3, 2017 Share Posted March 3, 2017 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); Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 3, 2017 Author Share Posted March 3, 2017 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 Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 3, 2017 Author Share Posted March 3, 2017 quest still active on EU, you can check by yourself Link to comment Share on other sites More sharing options...
Droidz 2734 Posted March 3, 2017 Share Posted March 3, 2017 Sorry, I have fixed code http://wrobot.eu/forums/topic/5264-whats-wrobot-equivalent-wowunitinteractspellid-from-hb/?do=findComment&comment=24326 (replace "DisplayID" by "InteractSpellID") Link to comment Share on other sites More sharing options...
camelot10 155 Posted March 9, 2017 Author Share Posted March 9, 2017 On 04.03.2017 at 0:24 AM, Droidz said: Sorry, I have fixed code http://wrobot.eu/forums/topic/5264-whats-wrobot-equivalent-wowunitinteractspellid-from-hb/?do=findComment&comment=24326 (replace "DisplayID" by "InteractSpellID") thanks. this works Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now