JoeAlisson / L2jOrg

GNU General Public License v3.0
35 stars 30 forks source link

MaxFreeTeleportLevel #475

Closed GPADILHACARDOSO closed 3 years ago

GPADILHACARDOSO commented 3 years ago

Describe the bug Dont matter the number you set, he always take lvl 40 for start pay for teleports.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'character.properties'
  2. Set any n below 40 on 'MaxFreeTeleportLevel'
  3. Test in game

Expected behavior 0 for take it off, and start from 1, take the parameter to set maximun lvl for free teleports.

Bru7aLMike commented 3 years ago

STATUS - CONFIRMED!

Investigation results:

TeleportHolder.java uses its own TeleportLocation.java located at \model\teleporter\TeleportLocation.java and works only on teleports which use the custom-made NPC teleport template (or maybe that was the default on the server pack from which this one was derived). Meanwhile, the global teleporter window seems to be using another format, namely \model\TeleportLocation.java.

How to check if I'm correct: (1)

If the two tests produced different results, then my observations were correct.

Bru7aLMike commented 3 years ago

STATUS: RESOLVED! PULL request initiated!