Подскажыте как сделать флаг зону в pwsoft вот что то накрабил, компилит норм но работать не хочет, заранее спасибо
<zone id='70035' type='FlagZone' shape='NPoly' minZ='-12000' maxZ='12000'>
<stat name='spawnX' val='10468'/> <!-- Coordinates spawn X -->
<stat name='spawnY' val='-24569'/> <!-- Coordinates spawn Y -->
<stat name='spawnZ' val='-3650'/> <!-- Coordinates spawn Z -->
</zone>
Код:
package scripts.zone.type;
import java.util.concurrent.Future;
import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import scripts.zone.L2ZoneType;
import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.util.Rnd;
public class L2FlagZone extends L2ZoneType {
public L2FlagZone(int id) {
super(id);
}
@Override
protected void onEnter(L2Character character)
{
if (character instanceof L2PcInstance)
{
//set pvp flag
((L2PcInstance) character).setPvpFlag(1);
((L2PcInstance) character).sendMessage("Вы вошли в пвп флаг зону ");
((L2PcInstance) character).broadcastUserInfo();
}
}
@Override
protected void onExit(L2Character character)
{
if (character instanceof L2PcInstance)
{
((L2PcInstance) character).setPvpFlag(0);
((L2PcInstance) character).sendMessage("You left the Pvp Flag zone.");
((L2PcInstance) character).broadcastUserInfo();
}
}
@Override
public void onDieInside(L2Character character)
{
}
@Override
public void onReviveInside(L2Character character)
{
onEnter(character);
}
}
<zone id='70035' type='FlagZone' shape='NPoly' minZ='-12000' maxZ='12000'>
<stat name='spawnX' val='10468'/> <!-- Coordinates spawn X -->
<stat name='spawnY' val='-24569'/> <!-- Coordinates spawn Y -->
<stat name='spawnZ' val='-3650'/> <!-- Coordinates spawn Z -->
</zone>