Jump to content

iMod

Elite user
  • Posts

    581
  • Joined

  • Last visited

Posts posted by iMod

  1. 4 minutes ago, fatfang said:

    Ok, i think i got it now. Thanks :)

     

    It was template by Droidz in here 

     

    Maybe hes template needs also fixing :)

     

    He is not using the WoWUnit object ;) he is using the ulong 

        private ulong _lastTarget;
  2. 10 minutes ago, fatfang said:

    Only thing i have in code is "private WoWUnit _lastTarget;"

    Oh okay that means you are holding the object of the target. If you want to validate it by ID you just need to use the Guid property. I have changed the code above just check it out. You need to take care of the type you are validating. 

    For example:
     

    _lastTarget = ObjectManager.Me.Target;

    You tried to put a ulong into a WoWUnit object and that wont work.

  3. 1 hour ago, fatfang said:

     

      Hide contents

    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.HasTarget)
                            {
                                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.");
        }

    Try  if (Fight.InFight && ObjectManager.Me.HasTarget)

     

      Hide contents
    
    
    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?.Guid)
                return;
     
            // Stealth:
            if (Prowl.IsSpellUsable && !Prowl.HaveBuff && ObjectManager.Target.Target != ObjectManager.Me.Guid)
            {
                Prowl.Launch();
                _lastTarget = ObjectManager.Me.TargetObject;
            }
        }

     

    Make sure that ur property "_lastTarget" is type of ulong and not int

    Hope that helped.

  4. 27 minutes ago, MrBottie said:

    Not entirely sure how to add this in my spellstate list in C#...

    Last time i used Interact.InteractGameObject(unit.GetBaseAddress, true); and this crashed the game :-(

     

    With what kind of error? ;)

    Well you can create a method that targets what you want and use it in the spellstate engine.
    For the automate target you could write a small plugin that targets for you.

  5.                 if (ObjectManager.Me.TargetObject.IsDead && ObjectManager.Me.TargetObject.HaveBuff("Mark For Death") && new Spell("MFD ").IsSpellUsable)
                    {
    		    // Settings
                        int range = 10;
                        WoWObjectType objectType = WoWObjectType.Unit;
    
    		    // Get target
                        WoWUnit unit = ObjectManager.GetWoWUnitHostile().OrderBy(o => o.HealthPercent).FirstOrDefault(u => u.Type == objectType && u.IsAlive && (u.GetDistance <= range) && u.IsAttackable);
    
                        if (unit != null)
                        {
                            Interact.InteractGameObject(unit.GetBaseAddress);
                        }
                    }

    You need to correct the spell names but something like this should work i took it out of my library so maybe something is missing and it is not tested like this. Hope that was something that will answer your question o.O

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

     

  7. 9 hours ago, szazaroth said:

    This told me absolutely nothing.  I am wanting to know about wrobot, please read before you post shit thanks.

    Oh really? Okay i'm so sorry.
    WRobot is a program that allowes you to automate World of Warcraft tasks. You can realize everything you want if you know how.
    The program it self is written in C# and uses WPF as UI. The most stuff is realized through xml to C# converter.

    Good luck dude, i hope this answers your "question".

    ps: "I am wanting to know about wrobot" what the hell you want to know about WRobot? maybe you should think about your "question" before posting "shit". :wub:

  8. Hello and welcome to WRobot,

    Take a look into the download section would be the first thing. if you cant find something that match your needs, you need to write some more informations so may other ppl can help you out. At the end there are just two ways to reach your goal. Create a own fight class or ask someone at the blackmarket.

  9. 28 minutes ago, Hapiguy said:

    Looking for a solid, working Guardian Druid Fight Class...

    Any help would be greatly appreciated.

    You should leave some more infos like what content are you playing?, what it is for? maybe for raids? maybe for farming?
    And also if you need some help you should post some lines about your problem you had on creating a solid fight class.

  10. 2 hours ago, Drwolftech said:

    How do i make the fight class change targets? 

    Like, get the nearest target or get the target with lowest health.

    XML: no clue

    C#:

                // Get unit in range and lowest health
                float distance = 10;
                WoWUnit unit = ObjectManager.GetWoWUnitHostile().OrderBy(u => u.HealthPercent).FirstOrDefault(u => u.GetDistance <= distance);
    
                // Any unit?
                if (unit != null && unit.IsValid)
                {
                    // Interact
                    Interact.InteractGameObject(unit.GetBaseAddress);
                }

    This will target and interact with a target that is in range of 10 and has the lowest health. (untestet)

×
×
  • Create New...