Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • 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

    Hello, try to replace line 4 by 

    var n = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(mobID), false);

    Try also to active radar3d to check if is blacklisted

     

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...