god wierd behaviour. this code:
var tiles = wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWAreaTrigger().Where(u => u != null && u.IsValid) .OrderBy(u => u.Position.DistanceTo(wManager.Wow.ObjectManager.ObjectManager.Me.Position)) .ToList(); for (int i = 0; i < tiles.Count; i++) { var tile = tiles[i]; Logging.Write(i + ": t " + tile.Name + " t.spell=" + tile.SpellID + " " +tile.GetDistance + " " + tile.Position ); }
give such result:
15:13:40 - 0: t Tile t.spell=219250 3,029929E+21 2,142483E+21 ; 2,142484E+21 ; 0 ; "None"
15:13:40 - 1: t Tile t.spell=219250 3,030294E+21 2,142741E+21 ; 2,142741E+21 ; 0 ; "None"
15:13:40 - 2: t Tile t.spell=219250 3,031023E+21 2,143257E+21 ; 2,143257E+21 ; 0 ; "None"
15:13:40 - 3: t Tile t.spell=219250 3,031388E+21 2,143515E+21 ; 2,143515E+21 ; 0 ; "None"
15:13:40 - 4: t Tile t.spell=219250 3,031752E+21 2,143773E+21 ; 2,143773E+21 ; 0 ; "None"
15:13:40 - 5: t Tile t.spell=219250 3,032482E+21 2,144288E+21 ; 2,144288E+21 ; 0 ; "None"
15:13:40 - 6: t Tile t.spell=219250 3,033211E+21 2,144804E+21 ; 2,144804E+21 ; 0 ; "None"
15:13:40 - 7: t Tile t.spell=219250 3,033575E+21 2,145062E+21 ; 2,145062E+21 ; 0 ; "None"
15:13:40 - 8: t Tile t.spell=219250 3,034305E+21 2,145577E+21 ; 2,145577E+21 ; 0 ; "None"
15:13:40 - 9: t Tile t.spell=219250 3,035034E+21 2,146093E+21 ; 2,146093E+21 ; 0 ; "None"
15:13:40 - 10: t Tile t.spell=219250 3,035763E+21 2,146609E+21 ; 2,146609E+21 ; 0 ; "None"
15:13:40 - 11: t Tile t.spell=219250 3,036492E+21 2,147124E+21 ; 2,147124E+21 ; 0 ; "None"
15:13:40 - 12: t Tile t.spell=219250 3,036857E+21 2,147382E+21 ; 2,147382E+21 ; 0 ; "None"
15:13:40 - 13: t Tile t.spell=219250 3,03868E+21 2,148671E+21 ; 2,148671E+21 ; 0 ; "None"
15:13:40 - 14: t Tile t.spell=219250 3,039045E+21 2,148929E+21 ; 2,148929E+21 ; 0 ; "None"
15:13:40 - 15: t Tile t.spell=219250 3,040503E+21 2,14996E+21 ; 2,149961E+21 ; 0 ; "None"
15:13:40 - 16: t Tile t.spell=219250 3,040868E+21 2,150218E+21 ; 2,150218E+21 ; 0 ; "None"
15:13:40 - 17: t Tile t.spell=219250 1,640616E+28 1,16009E+28 ; 1,160091E+28 ; 0 ; "None"
15:13:40 - 18: t Tile t.spell=219246 1,640922E+28 1,160307E+28 ; 1,160307E+28 ; 0 ; "None"
15:13:40 - 19: t Tile t.spell=219250 1,641227E+28 1,160523E+28 ; 1,160523E+28 ; 0 ; "None"
15:13:40 - 20: t Tile t.spell=219250 1,641533E+28 1,160739E+28 ; 1,160739E+28 ; 0 ; "None"
15:13:40 - 21: t Tile t.spell=219246 1,641839E+28 1,160956E+28 ; 1,160956E+28 ; 0 ; "None"
15:13:40 - 22: t Tile t.spell=219246 1,642145E+28 1,161172E+28 ; 1,161172E+28 ; 0 ; "None"
15:13:40 - 23: t Tile t.spell=219250 1,642451E+28 1,161388E+28 ; 1,161388E+28 ; 0 ; "None"
15:13:40 - 24: t Tile t.spell=219246 1,642757E+28 1,161604E+28 ; 1,161605E+28 ; 0 ; "None"
15:13:40 - 25: t Tile t.spell=219250 1,643063E+28 1,161821E+28 ; 1,161821E+28 ; 0 ; "None"
15:13:40 - 26: t Tile t.spell=219246 1,643369E+28 1,162037E+28 ; 1,162037E+28 ; 0 ; "None"
15:13:40 - 27: t Tile t.spell=219250 1,64398E+28 1,16247E+28 ; 1,16247E+28 ; 0 ; "None"
15:13:40 - 28: t Tile t.spell=219246 1,644286E+28 1,162686E+28 ; 1,162686E+28 ; 0 ; "None"
15:13:40 - 29: t Tile t.spell=219246 1,644592E+28 1,162902E+28 ; 1,162902E+28 ; 0 ; "None"
15:13:40 - 30: t Tile t.spell=219250 1,644898E+28 1,163118E+28 ; 1,163119E+28 ; 0 ; "None"
15:13:40 - 31: t Tile t.spell=219250 1,645204E+28 1,163335E+28 ; 1,163335E+28 ; 0 ; "None"
15:13:40 - 32: t Tile t.spell=219250 1,64551E+28 1,163551E+28 ; 1,163551E+28 ; 0 ; "None"
15:13:40 - 33: t Tile t.spell=219246 1,645816E+28 1,163767E+28 ; 1,163767E+28 ; 0 ; "None"
15:13:40 - 34: t Tile t.spell=219250 1,646121E+28 1,163984E+28 ; 1,163984E+28 ; 0 ; "None"
15:13:40 - 35: t Tile t.spell=219246 1,646427E+28 1,1642E+28 ; 1,1642E+28 ; 0 ; "None"
15:13:40 - 36: t Tile t.spell=219250 1,646733E+28 1,164416E+28 ; 1,164416E+28 ; 0 ; "None"
15:13:40 - 37: t Tile t.spell=219246 1,647039E+28 1,164632E+28 ; 1,164633E+28 ; 0 ; "None"
15:13:40 - 38: t Tile t.spell=219250 1,647345E+28 1,164849E+28 ; 1,164849E+28 ; 0 ; "None"
15:13:40 - 39: t Tile t.spell=219250 1,647651E+28 1,165065E+28 ; 1,165065E+28 ; 0 ; "None"
15:13:40 - 40: t Tile t.spell=219246 1,647957E+28 1,165281E+28 ; 1,165281E+28 ; 0 ; "None"
15:13:40 - 41: t Tile t.spell=219250 1,648262E+28 1,165498E+28 ; 1,165498E+28 ; 0 ; "None"
15:13:40 - 42: t Tile t.spell=219250 1,648568E+28 1,165714E+28 ; 1,165714E+28 ; 0 ; "None"
15:13:40 - 43: t Tile t.spell=219250 1,648874E+28 1,16593E+28 ; 1,16593E+28 ; 0 ; "None"
15:13:40 - 44: t Tile t.spell=219250 1,64918E+28 1,166146E+28 ; 1,166146E+28 ; 0 ; "None"
15:13:40 - 45: t Tile t.spell=219250 1,649486E+28 1,166363E+28 ; 1,166363E+28 ; 0 ; "None"
15:13:40 - 46: t Tile t.spell=219262 1,649792E+28 1,166579E+28 ; 1,166579E+28 ; 0 ; "None"
15:13:40 - 47: t Tile t.spell=219250 1,650098E+28 1,166795E+28 ; 1,166795E+28 ; 0 ; "None"
something wierd with distance
this world quest http://www.wowhead.com/quest=43328/enigmatic in Azsuna
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 accountSign in
Already have an account? Sign in here.
Sign In Now