Jump to content

Droidz

Administrators
  • Posts

    12442
  • Joined

  • Last visited

Posts posted by Droidz

  1. Yes, sorry, my answer was wrong. Poly_avoid blacklists the area at the same time (but paths made in this area will probably be inconsistent).

    The solution is to directly use

    PathFinder.ReportArea(Position, Radius, TypeArea);

    But, this list is cleared when the bot changes continent.

  2. An easy way that comes to my mind is:

    - Force the bot to ignore attacks with a RunCode step  https://wrobot.eu/forums/topic/2681-snippets-codes-for-quest-profiles/?do=findComment&comment=13088&_rid=1 

    wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = true;

    - Add a step to go to the position where you want the bot to resume the fight (with a FollowPath quest or other).

    - Reactivate the fight with a RunCode step:

    wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = false;

     

    Repeat these steps until the end of the dungeon.

  3. Hi,

    I just added the possibility to execute code when starting the bot (code executed after connecting to the authentication server).

    The file must be named 'autorun.cs' and be in the 'Plugins' folder. The static method 'Main.Autorun()' is called after compilation.

    using System.Windows.Forms;
    
    public class Main
    {
        public static void Autorun()
        {
            MessageBox.Show("Hello World!");
        }
    }

     

    autorun.cs

  4. Hello,

    With the Gatherer profile you can (in the product settings) force the bot to return to the previous profile position.

    But, to make a more complete profile it is necessary to use the quester (or a custom profile). But it requires very good knowledge of WRobot, Lua and C#.

  5. 9 hours ago, lynx9999 said:

    Hello Droidz

     

    I'm farming Hellfire Ramparts, I set 3 rounds for 1 loop and then start totown sequence. But I found the totown command doesn't work. Maybe my syntax is not correct?

     <Vector3 X="---" Y="----" Z="---" Action="totown" />

    Can you show me how to make it work>?

    Hello,

    Do you have information in the log? Do you have any sellers in your 'NPC DB' (or in the profile)? Are the settings correct?

  6. 8 hours ago, Sjd6795 said:

    This is just throwing an error CS1525 and CS1002
    Invalid expression term ','

    Use code without "return" and the ";"

    ObjectManager.GetObjectWoWUnit().Count(u => u.IsAlive && u.MaxHealth > 500 && ((ObjectManager.Me.TargetObject.Position.DistanceTo2D(u.Position) - ObjectManager.Me.TargetObject.CombatReach) <= 15) && u.IsAttackable && !TraceLine.TraceLineGo(u.Position))

     

  7. Hello, you can should look like that :

    using System.Threading;
    using wManager.Plugin;
    
    public class Main : IPlugin
    {
        private bool _isLaunched;
    
        public void Initialize()
        {
            _isLaunched = true;
            robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log)
            {
                if (log != null)
                {
                    if (log.Text.Contains("[MovementManager] Think we are stuck"))
                    {
                        robotManager.Products.Products.InPause = true;
                        
                        // new thread to unpause after 5 seconds
                        new Thread(t =>
                        {
                            Thread.Sleep(5000);
                            if (_isLaunched)
                                robotManager.Products.Products.InPause = false;
                        }).Start();
                    }
                }
            }; 
        }
    
        public void Dispose()
        {
            _isLaunched = false;
        }
    
        public void Settings()
        {
        }
    }

     

×
×
  • Create New...