Jump to content
Maintenance ×
  • Create New...
  • 0

Shop range showing distance



  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

4 answers to this question

Recommended Posts

  • 0
16 minutes ago, Distraught said:

sqrt((targetX-yourX)^2 + (targetY-yourY)^2)

Thank you, I know this formula, but the market does not come back when the name closes again.

I met this video on the internet. But I can not access the web site of the video owner. : /


uiprivateshop OnUpdate;

if systemSetting.GetShopDistance() < player.GetCharacterDistance(self.vid):
    x, y = chr.GetProjectPosition(self.vid, 220)
    self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)


Link to comment
Share on other sites

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
  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Activity

    1. 4

      problem Dargon Soul Changre Attribute

    2. 41

      Global Chat

    3. 4

      problem Dargon Soul Changre Attribute

    4. 2

      Startup Loading Window Library

    5. 28

      Ludus2: metin2 fan project

    6. 44

      Inbuild GR2 Animation

    7. 6

      Minimap Mob proto

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.