L2JMobius

Dwelling of Spirits Implement Map Teleport Using lcoins

Norvox · 4 · 2697

Offline Norvox

  • Heir
  • **
    • Posts: 13
Its my first contribution to essence version.

I implement the map teleport funcion to teleport to raid bosses using lcoin.

https://pastebin.com/ypsPs7vA


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16150
Thanks for the share.
A few pointers.

-RaidTeleportListData.xml has double spaces. "   price="20"/>
-java files need to have the L2jMobius GPLv3 lisence text.
-Need to add name at author comment. * @author
-Be carefull with empty spaces.
Code: [Select]
+/**
 * @author Gustavo Fonseca
 */

public class ExTeleportToRaidPosition implements IClientIncomingPacket
->
Code: [Select]
+/**
 * @author Gustavo Fonseca
 */
public class ExTeleportToRaidPosition implements IClientIncomingPacket
Code: [Select]
{

if (player.getInventory().getInventoryItemCount(Inventory.LCOIN_ID, -1) < price)
->
Code: [Select]
{
if (player.getInventory().getInventoryItemCount(Inventory.LCOIN_ID, -1) < price)
-Confing FREE_RAIDBOSS_TELEPORT_POINTS needs to be loaded from some .ini file.

 :-X