[Interlude] How to get nearest town of NPC?

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Dreigas
Posts: 17
Joined: Mon Jul 06, 2009 12:25 pm

[Interlude] How to get nearest town of NPC?

Post by Dreigas »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hello,

I using latest Interlude version, i just want to know, how to get nearest town of NPC?

Thanks
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: [Interlude] How to get nearest town of NPC?

Post by macdonald12 »

TownManager.getInstance().getClosestTown(L2Object activeObject)

Will return a String containing the name of the closest town.
Dreigas
Posts: 17
Joined: Mon Jul 06, 2009 12:25 pm

Re: [Interlude] How to get nearest town of NPC?

Post by Dreigas »

Thanks, it's returned town ID, what i needed it. :)
Post Reply