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 comment
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 comment
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
 Share

×
×
  • Create New...