Jump to content

disable pet in fightclass thru C#


Recommended Posts

Hello, the more easy way is to dispose fightclass:

wManager.Wow.Helpers.CustomClass.DisposeCustomClass();

wManager.Wow.Helpers.CustomClass.LoadCustomClass();

You can also try to cancel spell state (but this will works only with xml fightclasses): 

        robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += delegate (robotManager.FiniteStateMachine.Engine engine, robotManager.FiniteStateMachine.State state, System.ComponentModel.CancelEventArgs cancelable)
        {
            try
            {
                var s = state as wManager.Wow.Bot.States.SpellState;
                if (s != null)
                {
                    if (s.Spell.Name.StartsWith("Call Pet"))
                        cancelable.Cancel = true;
                }
            } catch { }
        };

 

Link to post
Share on other sites
3 hours ago, Droidz said:

Hello, the more easy way is to dispose fightclass:

wManager.Wow.Helpers.CustomClass.DisposeCustomClass();

wManager.Wow.Helpers.CustomClass.LoadCustomClass();

You can also try to cancel spell state (but this will works only with xml fightclasses): 

        robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += delegate (robotManager.FiniteStateMachine.Engine engine, robotManager.FiniteStateMachine.State state, System.ComponentModel.CancelEventArgs cancelable)
        {
            try
            {
                var s = state as wManager.Wow.Bot.States.SpellState;
                if (s != null)
                {
                    if (s.Spell.Name.StartsWith("Call Pet"))
                        cancelable.Cancel = true;
                }
            } catch { }
        };

 

main problem is there is mob in void who can agro your character and required fightclass. if load fc on fightstart then it start summoning pet, void kill pet, repeat summoning pet.

wManager.Wow.Helpers.CustomClass.LoadCustomClass();

 

 

 

Link to post
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
Reply to this topic...

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