Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • Code doesnt stop fighting complete.


    The Smokie.
    • Product: WRobot General Type: Bug Status: Unconfirmed

    Hello @Droidz

    while i am making a fightclasses and using a EscapeProtocol, i found that this code doesnt completely stop the fight. it will still fight if attacked. i cant seem to get it to stop attack when attacked for a fightclass C#

    wManager.Wow.Helpers.Fight.StopFight();

     




    User Feedback

    Recommended Comments

    Hello, this stop fight, but bot probably try to attack again target, to skip all combat you need to use code like:

            wManager.Events.FightEvents.OnFightStart += delegate(WoWUnit unit, CancelEventArgs cancelable)
                {
                    cancelable.Cancel = true;
                    if (unit.IsValid)
                        ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(unit.Guid, DateTime.Now + TimeSpan.FromMinutes(10));
                };

     

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...