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.

Gestion du focus ?

Featured Replies

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

	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;

 

  • Author
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 ?

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.

  • 1 year later...

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.