PierreDeRosette 13 Posted March 8, 2016 Share Posted March 8, 2016 Bonjour J'ai une nouvelle question concernant cette mine a merveilles qu'est Wrobot. Je voulais en savoir un peu plus concernant la gestion des focus. Est-t-il possible d'envoyer un sort sur une cible qu on a en focus a la façon des macros du style /cast [@focus] Intimidating Shout Ceci façon csharp car j'imagine qu'en fightclass creator c'est pas possible. De meme est-il possible de controler son etat a savoir HaveBuff ou IsCast. Merci encore :) Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/ Share on other sites More sharing options...
Syna 0 Posted March 8, 2016 Share Posted March 8, 2016 wManager.Wow.Helpers.Lua.RunMacroText("/cast [@focus] Intimidating Shout"); comme ça ? bool testBuff = wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff("spellname"); bool cast = wManager.Wow.ObjectManager.ObjectManager.Me.IsCast; Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-12826 Share on other sites More sharing options...
PierreDeRosette 13 Posted March 8, 2016 Author Share Posted March 8, 2016 1 hour ago, Syna said: wManager.Wow.Helpers.Lua.RunMacroText("/cast [@focus] Intimidating Shout"); Ok ca marche :) (Je l'utilisais deja comme ca mais je pensais qu'il y avait une ecriture en C sharp) 1 hour ago, Syna said: bool testBuff = wManager.Wow.ObjectManager.ObjectManager.Me.HaveBuff("spellname"); bool cast = wManager.Wow.ObjectManager.ObjectManager.Me.IsCast; Mais c'est pour tester mon etat, pas celui du focus ? Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-12829 Share on other sites More sharing options...
Syna 0 Posted March 9, 2016 Share Posted March 9, 2016 oui du coup je pense qu'il faut passer par du lua peut être, utiliser : http://wow.gamepedia.com/API_UnitAura en indiquant "focus" comme unitid http://wow.gamepedia.com/UnitId je peux me tromper j'viens de débarquer sur wrobot je connais pas toutes les ficelles ;) mais avec le lua tu peux avoir tes résultats RunMacroText("/run local............. return ..............) Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-12839 Share on other sites More sharing options...
Droidz 2738 Posted March 15, 2016 Share Posted March 15, 2016 Pour lancer un sort sur les focus: // lua id: http://wow.gamepedia.com/UnitId var intimidatingShout = new Spell("Intimidating Shout"); if (intimidatingShout.KnownSpell && intimidatingShout.IsSpellUsable)//... { intimidatingShout.Launch(intimidatingShout.CastTime > 0, true, false, "focus"); // Si vous voulez gérer manuellement le lancement utiliser: SpellManager.CastSpellByNameOn(intimidatingShout.NameInGame, "focus"); } Pour obtenir le focus (en objet "WowUnit"), ajouter cette methode dans votre code: static WoWUnit GetFocus() { uint offsetFocus = 0xEAEF10; // offset wow 6.2.3.20886 var unit = new WoWUnit(0); try { var focusGuid = wManager.Wow.Memory.WowMemory.Memory.ReadInt128(wManager.Wow.Memory.WowMemory.Memory.RebaseAddress(offsetFocus)); if (focusGuid.IsNotZero()) { var obj = ObjectManager.GetObjectByGuid(focusGuid); if (obj.Type == WoWObjectType.Player || obj.Type == WoWObjectType.Unit) unit = new WoWUnit(obj.GetBaseAddress); } } catch (Exception e) { } return unit; } Et vous pouvez utiliser le code comme ca par exemple: var focus = GetFocus(); if (focus.IsValid) { var intimidatingShout = new Spell("Intimidating Shout"); if (intimidatingShout.KnownSpell && intimidatingShout.IsSpellUsable && focus.GetDistance < intimidatingShout.MaxRange + focus.CombatReach && !focus.HaveBuff("Intimidating Shout")) { intimidatingShout.Launch(intimidatingShout.CastTime > 0, true, false, "focus"); } } PS: Je vais rajouter le focus directement dans WRobot dans les prochaines maj. PierreDeRosette 1 Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-12933 Share on other sites More sharing options...
PierreDeRosette 13 Posted March 15, 2016 Author Share Posted March 15, 2016 Wonderfull wonderfull wonderfull wonderfull !!!!! Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-12934 Share on other sites More sharing options...
Droidz 2738 Posted March 23, 2016 Share Posted March 23, 2016 uint offsetFocus = 0xDA59F8; // offset wow 6.2.4.21348 Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-13045 Share on other sites More sharing options...
Droidz 2738 Posted March 25, 2016 Share Posted March 25, 2016 Je viens de l'ajouter à l'API (attendre la prochaine mise à jour). var guid = wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid; var wowUnitObj = wManager.Wow.ObjectManager.ObjectManager.Me.FocusObj; Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-13076 Share on other sites More sharing options...
PierreDeRosette 13 Posted November 21, 2017 Author Share Posted November 21, 2017 Du coup l'Offset il change a chaque Mise a jour... :( Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-35508 Share on other sites More sharing options...
Droidz 2738 Posted November 21, 2017 Share Posted November 21, 2017 23 minutes ago, PierreDeRosette said: Du coup l'Offset il change a chaque Mise a jour... :( Salut, oui mais tu en as plus besoin https://wrobot.eu/forums/topic/2804-gestion-du-focus/?do=findComment&comment=13076 Link to comment https://wrobot.eu/forums/topic/2804-gestion-du-focus/#findComment-35511 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