Jump to content

Recommended Posts

I have some compilation errors with my rotation code.

error CS0019 Operator && cannot be used for operand types bool and int

Also one of the following.

wManager.Wow.ObjectManager.ObjectManager does not have definition for ComboPoint

Translated them from finnish best i could.

Here is 0.1v of the rotation code.

                             new SpellState("Rake", 16, context => ObjectManager.Me.HaveBuff(5215) && !ObjectManager.Target.HaveBuff(155722), false, false, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Tiger's Fury", 15, context => ObjectManager.Me.GetPowerByPowerType(wManager.Wow.Enums.PowerType.Energy) <= 30, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Savage Roar", 14, context => Fight.CombatStartSince < 10000 && !ObjectManager.Me.HaveBuff(52610) && ObjectManager.Me.ComboPoint >= 2, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Healing Touch", 13, context => ObjectManager.Me.HaveBuff(69369) && !ObjectManager.Me.HaveBuff(145152) && ObjectManager.Me.ComboPoint = 5 , false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Rip", 12, context => !ObjectManager.Target.HaveBuff(1079) && ObjectManager.Me.ComboPoint = 5 && Fight.CombatStartSince < 12000, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Ashemane's Frenzy", 11, context => ObjectManager.Target.HaveBuff(1079) && ObjectManager.Me.HaveBuff(5217), false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Moonfire", 10, context => Fight.CombatStartSince < 10000 && !ObjectManager.Target.HaveBuff(164812) && ObjectManager.Me.ComboPoint < 5 && ObjectManager.Me.HaveBuff(155580), false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Shred", 9, context => Fight.CombatStartSince < 10000 && ObjectManager.Me.ComboPoint < 5, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Savage Roar", 8, context => ObjectManager.Me.ComboPoint >= 4 && !ObjectManager.Me.HaveBuff(52610), false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Savage Roar", 7, context => ObjectManager.Target.BuffTimeLeft("52610") < 5 && ObjectManager.Me.ComboPoint = 5, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Rake", 6, context => ObjectManager.Target.BuffTimeLeft("155722") < 3 && ObjectManager.Me.ComboPoint < 5, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Rake", 5, context => !ObjectManager.Target.HaveBuff(155722) && ObjectManager.Me.ComboPoint < 5, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Ferocious Bite", 4, context => ObjectManager.Target.HaveBuff(1079) && ObjectManager.Target.HealthPercent < 25, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Ferocious Bite", 3, context => ObjectManager.Target.BuffTimeLeft("1079") > 8 && ObjectManager.Target.BuffTimeLeft("52610") > 8 && ObjectManager.Me.ComboPoint = 5, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Rip", 2, context => ObjectManager.ComboPoint = 5 && !ObjectManager.Target.HaveBuff(1079), false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),
                             new SpellState("Rip", 1, context => ObjectManager.Target.BuffTimeLeft("1079") < 5 && ObjectManager.Me.ComboPoint = 5, false, true, false, false, true, true, true, true, 0, false, false, false, false, false, false, wManager.Wow.Helpers.FightClassCreator.YesNoAuto.Auto, "", "none", true, true, false),

 

 

Just beginner in coding.

Link to comment
https://wrobot.eu/forums/topic/4071-compilation-errors/
Share on other sites

If you are looking for objective relevant properties take a look at
ObjectManager.Me.X or if you want your target take a look at ObjectManager.Me.TargetObject.X

About your error:
 

&& ObjectManager.Me.ComboPoint = 5

should be

&& ObjectManager.Me.ComboPoint == 5

 

Link to comment
https://wrobot.eu/forums/topic/4071-compilation-errors/#findComment-18882
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
×
×
  • Create New...