Jump to content

Seminko

Members
  • Posts

    225
  • Joined

  • Last visited

Posts posted by Seminko

  1. 9 hours ago, ellisium said:

    Hi, is there a way to make bot always range pull?

    Would be nice if you can help me with profile, just need c++ code to always use throw for pulling.

    Just increase your range to 30yd and set it so it always start with Throw. It will throw and then try to use other abilities which will not work due to being out of range so the bot will stay in place until the mob comes to melee range.

    Beware of ranged mobs tho, because they will stay in place and so will you = dead you.

  2. I was trying to figure this out for vanilla to optimize my combat rotation. Finally made it work.

    public decimal BuffTimeLeft()
    {
    	var SliceAndDiceTimeLeft = Lua.LuaDoString<decimal>("for i=0,31 do\r\n  local id,cancel = GetPlayerBuff(i,\"HELPFUL|HARMFUL|PASSIVE\");\r\n  if(id > -1) then\r\n    local buffTexture = GetPlayerBuffTexture(id);\r\n    if(strfind(buffTexture,\"Ability_Rogue_SliceDice\")) then\r\n      local timeleft = GetPlayerBuffTimeLeft(id);\r\n      return timeleft;\r\n    end\r\n  end\r\nend");
    	return SliceAndDiceTimeLeft;
    }

    Just change the buff texture from "Ability_Rogue_SliceDice" to the texture name you are checking for.

  3. On 22. 12. 2017 at 10:30 PM, Marshalek said:

    So my bot dies, then walks back to the corpse. Two different problems:

    1. The bot will resurrect on top of the corpse, regardless of whether there is an enemy nearby.
    Please research/review Honorbuddy and copy their behavior - the bot TRIANGULATES between corpse and closest enemies, to find THE BEST LOCATION TO RESS AT. I mean this is so basic I can't even believe I'm here writing this.

    2. The bot will re-engage in griding/fightting BEFORE IT RESTS. PLEASE ENSURE BOT HAS FULL LIFE AND MANA BEFORE RE-ENGAGING, another "DUH" bug.
     

    With the two bugs above, bot will engage into chain-deaths until I stop the bot and move it somewhere safe. These bugs prevent AFK botting, especially for weaker characters at lower levels.

    1. WRobot does that
    2. WRobot does that

    If it doesn't for you, the issue is with your settings / code. You would do yourself more good if you asked what might be causing this or how WRobot handles these scenarios instead of using CAPS and complaining that Wrobot doesn't work the way you are used to.

  4. I do use it in a plugin.

    Spoiler
    
    using System;
    using System.Collections.Generic;
    using System.Threading;
    using System.Windows.Forms;
    using robotManager.Helpful;
    using robotManager.Products;
    using wManager.Plugin;
    using wManager.Wow.Helpers;
    using wManager.Wow.ObjectManager;
    
    public class Main : IPlugin
    {
        private bool isLaunched;
    
    
        public void Initialize()
        {
            isLaunched = true;
    		
            while (isLaunched && Products.IsStarted)
            {
                try
                {
                    foreach (WoWItem item in Bag.GetBagItem())
    				{
    					if (item.GetItemInfo.ItemName == "Big-mouth Clam")
    					{
    						robotManager.Helpful.Keyboard.DownKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey);
    						Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
    						ItemsManager.UseItem(7973);
    						Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
    						robotManager.Helpful.Keyboard.UpKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey);
    						Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
    					}
    					else if (item.GetItemInfo.ItemName == "Sealed Crate")
    					{
    						robotManager.Helpful.Keyboard.DownKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey);
    						Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
    						ItemsManager.UseItem(6357);
    						Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
    						robotManager.Helpful.Keyboard.UpKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey);
    						Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
    					}
    				}
    			}
    
                catch { }
    
                Thread.Sleep(1000 * 3); // Wait 3 sec
    		}
    	}
    
        public void Dispose()
        {
            isLaunched = false;
        }
    
        public void Settings()
        {
            MessageBox.Show("No settings for this plugin.");
        }
    }

     

     

  5. Tried using it in a plugin. Didn't work with blink, both for the event and the while loops

    Spoiler
    
    using wManager.Wow.ObjectManager;
    using wManager.Wow.Bot.Tasks;
    using System;
    using System.Collections.Generic;
    using System.Threading;
    using robotManager.Helpful;
    using robotManager.Products;
    using robotManager.Events;
    using wManager.Plugin;
    using wManager.Wow.Helpers;
    using System.Configuration;
    using System.ComponentModel;
    using System.IO;
    using System.Windows.Forms;
    using wManager.Wow.Enums;
    using System.Linq;
    
    public class Main : wManager.Plugin.IPlugin
    {	
    	
        public void Initialize()
        {
    		robotManager.Events.FiniteStateMachineEvents.OnRunState += 
    		delegate(robotManager.FiniteStateMachine.Engine engine, robotManager.FiniteStateMachine.State state, System.ComponentModel.CancelEventArgs cancelable)
    		{
    			if (state is wManager.Wow.Bot.States.StopBotIf && state.DisplayName == "Security/Stop game")
    			{
    				// sample to disable tp detection:
    				wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;
    				wManager.Wow.Bot.States.StopBotIf.ForcePvpMode = true;
    				wManager.Wow.Bot.States.StopBotIf.LastPos = wManager.Wow.ObjectManager.ObjectManager.Me.Position;
    
    				// how to wrobot check if your char is tp:
    				if (wManager.Wow.Bot.States.StopBotIf.LastPos != null &&
    					wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAlive && 
    					wManager.Wow.ObjectManager.ObjectManager.Me.Position.DistanceTo(wManager.Wow.Bot.States.StopBotIf.LastPos) >= 15)
    				{
    					robotManager.Products.Products.ProductStop();
    				}
    			}
    		};
    		/* while (Conditions.ProductIsStartedNotInPause)
    		{
    			// sample to disable tp detection:
    			wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;
    			wManager.Wow.Bot.States.StopBotIf.ForcePvpMode = true;
    			wManager.Wow.Bot.States.StopBotIf.LastPos = wManager.Wow.ObjectManager.ObjectManager.Me.Position;
    
    			// how to wrobot check if your char is tp:
    			if (wManager.Wow.Bot.States.StopBotIf.LastPos != null &&
    				wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAlive && 
    				wManager.Wow.ObjectManager.ObjectManager.Me.Position.DistanceTo(wManager.Wow.Bot.States.StopBotIf.LastPos) >= 15)
    			{
    				robotManager.Products.Products.ProductStop();
    			}
    			Thread.Sleep(5);
    		} */
        }
    
        public void Dispose()
        {
        }
    	
    	public void Settings()
        {
        }
    }

     

     

  6. On 19. 11. 2017 at 12:02 PM, Droidz said:

    Hello, I am not sure to understand what you want but:

    
    robotManager.Events.FiniteStateMachineEvents.OnRunState += 
    delegate(robotManager.FiniteStateMachine.Engine engine, robotManager.FiniteStateMachine.State state, System.ComponentModel.CancelEventArgs cancelable)
    {
        if (state is wManager.Wow.Bot.States.StopBotIf && state.DisplayName == "Security/Stop game")
        {
            // sample to disable tp detection:
            wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;
            wManager.Wow.Bot.States.StopBotIf.ForcePvpMode = true;
            wManager.Wow.Bot.States.StopBotIf.LastPos = wManager.Wow.ObjectManager.ObjectManager.Me.Position;
    
            // how to wrobot check if your char is tp:
            if (wManager.Wow.Bot.States.StopBotIf.LastPos != null &&
                wManager.Wow.Helpers.Conditions.InGameAndConnectedAndAlive && 
                wManager.Wow.ObjectManager.ObjectManager.Me.Position.DistanceTo(wManager.Wow.Bot.States.StopBotIf.LastPos) >= 450)
            {
                // close bot...
            }
        }
    };

     

    BTW, what does wManager.Wow.Bot.States.StopBotIf.ForcePvpMode = true; do?

    EDIT: any idea how to test it? Tried with using HS but that apparently didn't work.

×
×
  • Create New...