Jump to content
  • wierd ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(ID));


    camelot10
    • Version: All Product: WRobot General Type: Bug Status: Not a Bug

    im hear. near Hope's Landing Teleporter

    BTvk4GY.png

    Map name MPQ: Argus 1
    
    My Position: -2931.751, 8803.34, -232.1103, "None"
    My Position Vector: new Vector3(-2931.751, 8803.34, -232.1103, "None")
    My Position XML: <Vector3 X="-2931.751" Y="8803.34" Z="-232.1103" Type="None" />
    My Rotation: 4,698609

    run this code in dev tools

    		wManager.wManagerSetting.ClearBlacklistOfCurrentProductSession();
    		var mobID = 125407;
    		var all = ObjectManager.GetWoWUnitByEntry(mobID);
    		var n = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(mobID));
    		Logging.Write("SEARCH ID=" + mobID + " closest_name=" + n.Name + " valid=" + n.IsValid + " dist=" + n.GetDistance );
    		foreach (var a in all)
    		{
    			Logging.Write("SEARCH ID=" + mobID + " foreach -> name=" + a.Name + " valid=" + a.IsValid + " dist=" + a.GetDistance);
    		}

    get this

    20:15:12 - SEARCH ID=125407 closest_name= valid=False dist=9281,586
    20:15:12 - SEARCH ID=125407 foreach -> name=Маяк озаренных valid=True dist=5,780092

    whats wrong? me or wrobot ?



    User Feedback

    Recommended Comments



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