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.

2 demande de conseils

Featured Replies

Bonjour

 

Je reviens ici pour demander 2 conseils car je planche un peu :

1/  Comment verifierait tu combien de monstres et combien de joueurs ciblent un allié ? Il existe bien IsTargetingMe mais si on s'interresse a un allié ?

2/  Comment verifierait tu combien de charges d'un sort on Dispose ? Comme par exemple "Force de la nature - 102693" ou le nombre de charges de "Thé de Mana" ou de charges d "Elusive brew" un monk dispose ?

Merci beaucoup d'avance :)

 

Salut, désolé pour le retard.

1:

        WoWPlayer _allié = new WoWLocalPlayer(0); // met le joueur allié dans cette variable
        int count = 0;
        foreach (var unit in ObjectManager.GetObjectWoWUnit())
        {
            if (unit.IsValid && unit.Target == _allié.Guid) // && unit.InCombat)
                count++;
        }

ou (version courte)

WoWPlayer _allié = new WoWLocalPlayer(0); 
int count = ObjectManager.GetObjectWoWUnit().Count(unit => unit.IsValid && unit.Target == _allié.Guid);

(le nombre de PNJ qui cible l'allié est dans la variable "count")

2:

Tu est sur que tu n'a pas de buff associé au sort?, si tu est des buff utilise ca:

int count = ObjectManager.Me.BuffStack("Nom du buff en anglais");

sinon tu peux utiliser ce code lua ( http://wow.gamepedia.com/API_GetSpellCharges ):

        int spellId = 123456; // Met l'id du sort ici
        int count = Lua.LuaDoString<int>("local currentCharges, maxCharges, cooldownStart, cooldownDuration = GetSpellCharges(" + spellId + "); return currentCharges;");

 

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.