Jump to content

Recommended Posts

Is it possible add something like that?

 

I wanna Prowl with my druid after each fight so its not that easy too see that he is a Bot. But the problem is that he use Prowl before looting -.-

I need something like a Delay condition to solve that issue. 

 

Anyone got an idea?

Link to comment
https://wrobot.eu/forums/topic/6073-need-combat-end-since-ms/
Share on other sites

Hello, you could try this as c# code in your fightclass:

        if (wManager.Statistics.RunningTimeInSec() < 2)
        {
            robotManager.Helpful.Logging.Write("Register OnLootSuccessful");
            wManager.Events.LootingEvents.OnLootSuccessful += delegate(WoWUnit unit)
            {
                //task because with thread sleep you would block the thread
                Task.Run(async delegate
                {
                    await System.Threading.Tasks.Task.Delay(2000);//your delay
                    wManager.Wow.Helpers.SpellManager.CastSpellByNameLUA("Prowl");
                });
            };
            System.Threading.Thread.Sleep(2000);//to initialize event only once on startup
        }

So it will cast prowl everytime after you have looted the unit. You can also extend it to do something other after loot if you want.

But i think @eeny's solution would also work with less effort :) just want to show the other possibility.

Link to comment
https://wrobot.eu/forums/topic/6073-need-combat-end-since-ms/#findComment-27604
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...