camelot10 155 Posted March 28, 2018 Share Posted March 28, 2018 is it possible? coz some quests required no pets at all. as example this quest http://bfa.wowhead.com/quest=47203 kill pet in void and fc keep spamming pet summoning Link to comment https://wrobot.eu/forums/topic/8991-disable-pet-in-fightclass-thru-c/ Share on other sites More sharing options...
Droidz 2738 Posted March 29, 2018 Share Posted March 29, 2018 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 https://wrobot.eu/forums/topic/8991-disable-pet-in-fightclass-thru-c/#findComment-41886 Share on other sites More sharing options...
camelot10 155 Posted March 29, 2018 Author Share Posted March 29, 2018 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 https://wrobot.eu/forums/topic/8991-disable-pet-in-fightclass-thru-c/#findComment-41899 Share on other sites More sharing options...
Droidz 2738 Posted March 30, 2018 Share Posted March 30, 2018 second code don't works? Link to comment https://wrobot.eu/forums/topic/8991-disable-pet-in-fightclass-thru-c/#findComment-41965 Share on other sites More sharing options...
camelot10 155 Posted March 31, 2018 Author Share Posted March 31, 2018 On 3/30/2018 at 5:08 PM, Droidz said: second code don't works? yup. its work Link to comment https://wrobot.eu/forums/topic/8991-disable-pet-in-fightclass-thru-c/#findComment-42011 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now