Page 1 of 1

[Interlude] How to get nearest town of NPC?

Posted: Sun Apr 04, 2010 6:09 pm
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

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

Posted: Sun Apr 04, 2010 11:16 pm
by macdonald12
TownManager.getInstance().getClosestTown(L2Object activeObject)

Will return a String containing the name of the closest town.

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

Posted: Mon Apr 05, 2010 9:28 am
by Dreigas
Thanks, it's returned town ID, what i needed it. :)