Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- / * L2jFrozen Project - www.l2jfrozen.com
- *
- * This program is free software; you can redistribute it and / or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- *
- * http://www.gnu.org/copyleft/gpl.html
- * /
- package com.l2jfrozen.gameserver.model.zone.type;
- import com.l2jfrozen.gameserver.model.L2Character;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jfrozen.gameserver.model.zone.L2ZoneType;
- / **
- * @author Gabriel Fleck
- * /
- public class L2DonatorZone extends L2ZoneType
- {
- public L2DonatorZone (final int id)
- {
- super (id);
- }
- @Override
- protected void onEnter (final L2Character character)
- {
- if (character instanceof L2PcInstance)
- {
- if ((((L2PcInstance) character) .isDonator ())
- {
- ((L2PcInstance) character) .sendMessage ("You entered the Donator Zone.");
- ((L2PcInstance) character) .sendMessage ("This area is protected and the player who does not have Donator status will be removed from the area.");
- }
- else
- {
- ((L2PcInstance) character) .teleToLocation (82698,148638, -3473);
- ((L2PcInstance) character) .sendMessage ("This is an area restricted only to Donators. You will be teleported to the Giran Castle Town.");
- }
- }
- }
- @Override
- protected void onExit (final L2Character character)
- {
- ((L2PcInstance) character) .sendMessage ("You left the Donator Zone.");
- }
- @Override
- protected void onDieInside (final L2Character character)
- {
- }
- @Override
- protected void onReviveInside (final L2Character character)
- {
- }
- }
Add Comment
Please, Sign In to add comment