• Hail Guest!
    We're looking for Community Content Contribuitors to Stratics. If you would like to write articles, fan fiction, do guild or shard event recaps, it's simple. Find out how in this thread: Community Contributions
  • Greetings Guest, Having Login Issues? Check this thread!
  • Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
  • Hail Guest!
    Please read the new announcement concerning the upcoming addition to Stratics. You can find the announcement Here!

Enhanced Client New function GetDistanceFromPlayer() returning strange results

kongomongo

Lore Master
Stratics Veteran
Campaign Supporter
Hi everyone,

I tried incorporating the GetDistanceFromPlayer() into the TargetWindow to know if i am close enough for spell damage and/or close enough for bandages etc.

However what I am seeing is quite strange. Sometimes figures seem to make sense. While walking tilewise the figure sometimes either stays or jump by 3-4 tiles.

My best guess would be that Z-coordinate is included in the distance. Which is understandable somehow, for this particual use case the Z coordinate should be completely irrelevant as only the x/y-distance counts.

So either this function is useful for something else and we need a GetXYDistanceFromPlayer() or the function should be changed.

Am I on the right track here?

Many thanks in advance.

- kongo
 

kongomongo

Lore Master
Stratics Veteran
Campaign Supporter
*bump* I think this would finalize the target distance in Pinco's UI and as such improve the display of the Mobile Bar !
 

Pinco

UOEC Modder
Stratics Veteran
Stratics Legend
also let's do not forget about the other 2 functions that have never worked, the getterraintype could really improve the performance by reducing the disk activities :/
 
Last edited:
Top