Player is inside zone false, Config: true
this is what i have inside my zone
/*
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
*/
package net.sf.l2j.gameserver.model.zone.type;
import net.sf.l2j.commons.random.Rnd;
import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.model.actor.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2SpawnZone;
import net.sf.l2j.gameserver.model.zone.ZoneId;
/**
* An Custom PvP Zone
*
* @author NeverMore
*/
public class L2CustomPvPZone extends L2SpawnZone
{
//Ramdom Locations configs
static int[] _x = {182240, 180199, 182296, 180185, 183254};
static int[] _y = {22295, 22307, 18294, 18289, 20343};
static int[] _z = {-3174, -3174, -3173, -3173, -3169};
L2Skill noblesse = SkillTable.getInstance().getInfo(1323, 1);
public L2CustomPvPZone(int id)
{
super(id);
}
@Override
protected void onEnter(L2Character character)
{
character.setInsideZone(ZoneId.CustomPvPZone, true);
character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true);
}
@Override
protected void onExit(L2Character character)
{
character.setInsideZone(ZoneId.CustomPvPZone, false);
character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, false);
}
static class BackToPvp implements Runnable
{
private L2Character _activeChar;
BackToPvp(L2Character character)
{
_activeChar = character;
}
@Override
public void run()
{
int r = Rnd.get(5);
_activeChar.teleToLocation(_x[r] , _y[r], _z[r], r);
}
}
@Override
public void onDieInside(L2Character character)
{
if (character instanceof L2PcInstance)
{
}
}
@Override
public void onReviveInside(L2Character character)
{
ThreadPoolManager.getInstance().scheduleGeneral(new BackToPvp(character), 500);
((L2PcInstance) character).isNoblesseBlessed();
noblesse.getEffects(character, character);
}
}