Jump to content

fatfang

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by fatfang

  1. Well it was originally full copy paste, it didnt work either with that ulong. After i did change the code while trying to fix it.

    Same error.

     

    Below error from direct copy paste of that template. Same error in exactly same row. It might have been working template when he created but it aint anymore :/

    b300ff7ea5.png

  2. I have following compilation error :

    Translated the error best i could.

    Spoiler

    error CS0019: Operator > cannot be use with operand types MemoryRobot.Int128 and int

    Code below :
    internal void Rotation()
        {
            Logging.Write("[My fightclass] Is started.");
            while (_isLaunched)
            {
                try
                {
                    if (!Products.InPause)
                    {
                        if (!ObjectManager.Me.IsDeadMe)
                        {
                            //BuffRotation();

                            if (Fight.InFight && ObjectManager.Me.Target > 0)
                            {
                                Pull();
                                CombatRotation();
                            }
                        }
                    }
                }
                catch (Exception e)
                {
                    Logging.WriteError("[My fightclass] ERROR: " + e);
                }

                Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage.
            }
            Logging.Write("[My fightclass] Is now stopped.");
        }

     

    Also i get compilation errors with following code (error included in the spoiler)

     

    Spoiler
    
    error CS0019 Operator == cannot be used with operand types MemoryRobot.Int128 and ulong
    error CS0029 Class MemoryRobot.Int128 cannot be implicidly transformed to class ulong
    
    internal void Pull()
        {
            if (ObjectManager.Me.Target == _lastTarget)
                return;
     
            // Stealth:
            if (Prowl.IsSpellUsable && !Prowl.HaveBuff && ObjectManager.Target.Target != ObjectManager.Me.Guid)
            {
                Prowl.Launch();
                _lastTarget = ObjectManager.Me.Target;
            }
        }

     

     

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

  4. I have this issue with wRobot that it isnt attacking target dummies.

     

    I do see in log that bot says following.

    [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True).
    

    If its ignoring training dummies, is there way to enable fighting target dummies?

    It would be important on developement of fight class to see if its running rotation properly.

     

    It is attacking those training dummies that attack you.

     

    Thanks, FF

×
×
  • Create New...