Jump to content
  • Interact.InteractGameObject doesnt work + That lead to fight stuck


    camelot10
    • Version: All Product: WRobot General Type: Bug Status: Fixed

    dont know why its happens. but i tryed to write today quest. and Interact.InteractGameObject doest target anything. also i have guessing thats why sometimes fightclasses doesnt work/stuck. 

    bot write in log 03:58:36 - [Fight] Player Attack <MOB NAME> and nothing get targeted. and this cause stuck in bot/fightclass/fight work.



    User Feedback

    Recommended Comments

    		var hotspots = new List<Vector3>()
    		{
    			new Vector3(-1265.911, 2403.347, 1.521154, "None"),
    			new Vector3(-1225.33, 2321.722, 1.624876, "None"),
    			new Vector3(-1191.712, 2339.736, 1.835864, "None"),
    		};
    		var mobs = new List<int>() {
    			120966,
    			120963,
    		};
    		var mob = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(mobs));
    		if (mob != null && mob.IsValid && mob.IsAlive)
    		{
    			if (mob.GetDistance > 40)
    			{
    				GoToTask.ToPosition(mob.Position, 30);
    				return true;
    			}
    			Interact.InteractGameObject(mob.GetBaseAddress, true);
    			Lua.LuaDoString("ExtraActionButton1:Click()");
    			Usefuls.WaitIsCasting();
    			return true;
    		}
    		GoToTask.ToPosition(hotspots[Others.Random(0, hotspots.Count - 1)]);
    		return true;

     

    this quest objective N2 http://www.wowhead.com/quest=45035/the-call-of-battle

    Link to comment
    Share on other sites

    Hello, wait next wrobot upadate, I have added new argument (use leftClick seem resolve problem):

    Quote

    InteractGameObject(uint baseAddress, bool stopMove = false, bool skipWaitTime = false, bool leftClick = false)

     

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...