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

  • Allow us to override and SET new target in fightclasses


    Jasabi
    • Version: All Product: Fight Classes Type: Suggestion Status: Not a Bug

    Hi,

    currently its a big issue to switch targets correctly in wrobot with fightclasses, as wrobot always tries to switch back to the original target.

    It would help a lot with development, if you could give us a way to override this or set a new target for the fightloop to use.




    User Feedback

    Recommended Comments

    Hello, not tested:

            wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => {
                var newTarget = new WoWUnit(0); // your code to found new mobs
    
                if (newTarget.IsValid && !newTarget.IsMyTarget)
                {
                    Fight.StartFight(newTarget.Guid);
                    cancelable.Cancel = true;
                }
            };

    or

            wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => {
                var newTarget = new WoWUnit(0); // your code to found new mobs
    
                if (newTarget.IsValid)
                {
                    if (!newTarget.IsMyTarget)
                        Interact.InteractGameObject(newTarget.GetBaseAddress);
                    // your code here ....
                    SpellManager.CastSpellByIdLUA(123);
                }
            };

     

    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...