Jump to content
  • 0

L2J Free Teleport Setting


snifi

Question

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 :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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())
			{
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock