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.

[HELP] Affected by certain spell

Featured Replies

So, I'm trying to make my bot react using OnFightLoop when I get hit but certain spell but I cannot find a way.

Currently, for the debuffs I use:

ObjectManager.Me.HaveBuff

Which it works well, but is there a way to know if the bot is affected by certain spell that doesn't apply a debuff?

  • Author
2 hours ago, Droidz said:

Hello,

The better is to use lua for that

Hello, thanks for your answer, could you give me a small example?

And can this be combined with CSharp?

  • Author

Let's say the character has been afected by certain AOE spell, then I want to move to stop receiving damage. I'm doing it currently for spells like Blizzard, but again, with AOE spells that dont have a debuff I don't really know how to do it.

I couldn't give a code that works, people here are more specialized in that. But I think you should look at the lua event side (wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaStringWithArgs)

Run this code to dump lua event in wrobot log:

wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaStringWithArgs += delegate(string eventid, List<string> args)
{
    try
    {
        //if (eventid != "COMBAT_LOG_EVENT_UNFILTERED" && eventid != "COMBAT_LOG_EVENT")
        //    return;

        var argsString = new System.Text.StringBuilder();
        var first = true;
        foreach (var a in args)
        {
            if (first)
                first = false;
            else
                argsString.Append(" , ");
            argsString.Append(a);

        }
        robotManager.Helpful.Logging.Write("[L] " + eventid + " > " + argsString.ToString());
    }
    catch { }
};

 

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.