Package events.RabbitsToRiches

Source Code of events.RabbitsToRiches.TeleRabbitsToRiches

package events.RabbitsToRiches;

import l2p.extensions.scripts.Functions;
import l2p.extensions.scripts.ScriptFile;
import l2p.gameserver.model.L2Player;
import l2p.util.Files;

public class TeleRabbitsToRiches extends Functions implements ScriptFile
{
  private static final int RABBIT_TRANSFORMATION_SCROLL = 10274;

  public void onLoad()
  {
  }

  public void TeleRabbits()
  {
    L2Player player = (L2Player) getSelf();
    if(player.getInventory().getItemByItemId(RABBIT_TRANSFORMATION_SCROLL) != null && player.getInventory().getItemByItemId(RABBIT_TRANSFORMATION_SCROLL).getCount() >= 1)
    {
      player.teleToLocation(-59703, -56061, -20360);
    }
    else
    {
      show(Files.read("data/scripts/events/RabbitsToRiches/NoTele.htm", player), player);
    }
  }

  public void onReload()
  {
  }

  public void onShutdown()
  {
  }
}
TOP

Related Classes of events.RabbitsToRiches.TeleRabbitsToRiches

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.