1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

Enhanced Client New function GetDistanceFromPlayer() returning strange results

Discussion in 'Bug Tracking' started by kongomongo, Nov 28, 2012.

  1. kongomongo

    kongomongo Lore Master
    Professional Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
    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
     
  2. kongomongo

    kongomongo Lore Master
    Professional Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
  3. Bleak

    Bleak UO Software Engineer
    VIP Stratics Veteran

    Joined:
    Feb 18, 2010
    Messages:
    369
    Likes Received:
    720
    I will look into providing a separate function.
     
    kongomongo and Storm like this.
  4. kongomongo

    kongomongo Lore Master
    Professional Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
  5. kongomongo

    kongomongo Lore Master
    Professional Campaign Supporter

    Joined:
    Sep 10, 2012
    Messages:
    1,039
    Likes Received:
    233
    *bump* I think this would finalize the target distance in Pinco's UI and as such improve the display of the Mobile Bar !
     
  6. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,673
    Likes Received:
    865
    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 :/
     
    #6 Pinco, Apr 16, 2013
    Last edited: Apr 16, 2013