Jump to content
  • 0

L2J Free Teleport Setting


Question

Posted

Hello guys,

 

can anyone tell me where to find the teleporter setting that allows newbie characters to teleport for free till they reach a specific level? I cant find it in the cfgs so it has to be hardcoded.... I guess i'm blind I just cant find it T_T

 

hope u can help me :)

4 answers to this question

Recommended Posts

  • 0
Posted

Thank you very much! Didn't see it the first time :D

Calendar cal = Calendar.getInstance();
			int price = list.getPrice();
			
			if (player.getLevel() < 41)
			{
				price = 0;
			}
			else if (!list.getIsForNoble())
			{
  • 0
Posted (edited)

Actually, you "should" put it under this check :)

if (Config.ALT_GAME_FREE_TELEPORT || player.getLevel() < 41 || player.destroyItemByItemId("Teleport " + (list.getIsForNoble() ? " nobless" : ""), 57, price, this, true))
   player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), 20);
Edited by SweeTs
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..