Jump to content

TheSmokie

Banned
  • Posts

    1215
  • Joined

Bug Report Comments posted by TheSmokie

  1. @Matenia still doesnt work,

     

    var Mash = new List<OffMeshConnection>
            {
                new OffMeshConnection(new List<Vector3>
                {
                   new Vector3(-9019.261f, 888.1429f, 29.62084f),
                   new Vector3(-9020.968f, 890.6682f, 29.62069f)
                }, (int)ContinentId.Azeroth, OffMeshConnectionType.Bidirectional, true),
            };
            OffMeshConnections.MeshConnection.AddRange(Mash);

     

  2. @Droidz

    Here a idea on how to get it working for aiming, i hope it helps.

    public static class Vehicle
    	{
    		
    		public static bool UseButton(int num = 1)
    		{
    			//PetActionButton1
    			Lua.RunMacroText("/click [overridebar][vehicleui][possessbar,@vehicle,exists]OverrideActionBarButton" + num + ";ActionButton" + num);
    			return true;
    		}
    		public static void Aim(WoWUnit unit, float precision = 0.5f, float agleDelta = 0f)
    		{
    			ClickToMove.CGPlayer_C__ClickToMove(unit.Position.X, unit.Position.Y, unit.Position.Z, unit.Guid, (int)ClickToMoveType.Move, precision);
    			Thread.Sleep(Usefuls.Latency * 2);
    
    			var dist = ObjectManager.Me.Position.DistanceTo2D(unit.Position);
    			var height = unit.Position.Z - ObjectManager.Me.Position.Z;
    			var angle = robotManager.Helpful.Math.GetAngle(dist, height);
    			var radians = robotManager.Helpful.Math.DegreeToRadian(angle + agleDelta);
    			AimAngle(radians);
    		}
    		static void AimAngle(float radians)
    		{
    			var minDelta = 0.035f; //~5 degree
    			var delta = radians - CurrentAngle;
    			int timeMs = 30;
    			var timer = new robotManager.Helpful.Timer(5 * 1000);
    			var delta2 = 0f;
    			do
    			{
    				if (delta > 0)
    					wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.PITCHUP, timeMs);
    				else if (delta < 0)
    					wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.PITCHDOWN, timeMs);
    
    				delta2 = radians - CurrentAngle;
    				if (System.Math.Abs(delta2) < minDelta)
    					return;
    
    				if (delta < 0 && delta2 >= 0)
    					return;
    
    				if (delta > 0 && delta2 <= 0)
    					return;
    			}
    			while (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && ObjectManager.Me.PlayerUsingVehicle && !timer.IsReady);
    		}
    		public static float CurrentAngle
    		{
    			get
    			{
    				return Lua.LuaDoString<float>("return VehicleAimGetAngle()");
    			}
    		}
    	}

     

  3. On 3/19/2020 at 2:44 PM, Droidz said:

    I changed it in last update

    I've noticed while using a grinder that some time the bot doesnt click onto the mob. idk if its because of the cleartarget or not. just something i found interesting .

     

  4. @Droidz Any advice on why my abort isnt working? trying to work on it so i can post it in the code snips as a call for using c# but i am gonna try to add a data base for flying, also if there a method to check if player is flying to?

        public class fly
        {
            public static void flying()
            {
                var zone = Lua.LuaDoString<string>("return GetZoneText()");
                Thread flying = new Thread(() =>
                {
                    Logging.Write("[Flight]: Has initialized");
    
                    while (Conditions.ProductIsStarted && zone != "Orgrimmar")
                    {
                        var position = new Vector3(-6810.2f, 841.704f, 49.66529f);
                        int npcEntryId = 15178;
                        var Zon= Lua.LuaDoString<string>("return GetZoneText()");
    
                        if (!ObjectManager.Me.IsOnTaxi && Zon != "Orgrimmar")
                        {
                            if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(position, npcEntryId))
                            {
                                int node;
                                Usefuls.SelectGossipOption(GossipOptionsType.taxi);
    
                                node = wManager.Wow.Helpers.Lua.LuaDoString<int>("for i=0,30 do if string.find(TaxiNodeName(i),'Orgrimmar') then return i end end");
    
                                wManager.Wow.Helpers.Lua.LuaDoString("TakeTaxiNode(" + node + ")");
                            }
                        }
                        Thread.Sleep(1000);
                        
                    }
                    
                });
                if (zone != "Orgrimmar")
                {
                    flying.Start();
                }
                else
                if (zone == "Orgrimmar")
                {
                    Logging.Write("[Flight]: has disposed");
                    flying.Abort();
                }
    
            }
        }

     

  5. On 5/1/2019 at 9:28 AM, Droidz said:

    Hello, this stop fight, but bot probably try to attack again target, to skip all combat you need to use code like:

    
            wManager.Events.FightEvents.OnFightStart += delegate(WoWUnit unit, CancelEventArgs cancelable)
                {
                    cancelable.Cancel = true;
                    if (unit.IsValid)
                        ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(unit.Guid, DateTime.Now + TimeSpan.FromMinutes(10));
                };

     

    i know this is gonna sound like a stupid question but can you give some advice or some help with my code i am working on for my quester? i am trying to black list all mobs in a area for 5 mins

    Thread Water = new Thread(() =>
                {
                    
                    Logging.Write("[Water]: Water Search Initialized");
                    List<WoWUnit> attackers = ObjectManager.GetUnitAttackPlayer();
                    while (Conditions.ProductIsStarted || Conditions.ProductInPause)
                    {
                        var unit = ObjectManager.GetWoWUnitAttackables().Where(x => x.Position.DistanceTo(ObjectManager.Me.Position) <= 30);
                           
                        if (ObjectManager.Me.BreathTimerLeft <= 2000)
                        {
                            ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(unit.ToArray(WoWUnit), DateTime.Now + TimeSpan.FromMinutes(5));
                            wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.JUMP, 5000);
                            
                        }
                        Thread.Sleep(12000);
                    } 
                    Logging.Write("[Water]: Water Search Disposed");
                });
                Water.Start();

     

×
×
  • Create New...