Battalion zone - incomplete.
Contributed by Ionut.
This commit is contained in:
@@ -22,6 +22,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.instancemanager.CHSiegeManager;
|
||||
import com.l2jserver.gameserver.instancemanager.CastleManager;
|
||||
import com.l2jserver.gameserver.instancemanager.FortManager;
|
||||
@@ -31,6 +32,7 @@ import com.l2jserver.gameserver.model.actor.L2Character;
|
||||
import com.l2jserver.gameserver.model.entity.Castle;
|
||||
import com.l2jserver.gameserver.model.entity.Fort;
|
||||
import com.l2jserver.gameserver.model.entity.clanhall.SiegableHall;
|
||||
import com.l2jserver.gameserver.model.zone.ZoneId;
|
||||
|
||||
/**
|
||||
* @author UnAfraid, Nos
|
||||
@@ -81,6 +83,16 @@ public class Die extends L2GameServerPacket
|
||||
_toFortress = ((clan != null) && (clan.getFortId() > 0)) || isInFortDefense;
|
||||
}
|
||||
|
||||
if (activeChar.isInsideZone(ZoneId.BATTALION) && !Config.BTZ_REVIVE)
|
||||
{
|
||||
_toVillage = false;
|
||||
_toClanHall = false;
|
||||
_toCastle = false;
|
||||
_toOutpost = false;
|
||||
_useFeather = false;
|
||||
_toFortress = false;
|
||||
}
|
||||
|
||||
_isSweepable = activeChar.isAttackable() && activeChar.isSweepActive();
|
||||
}
|
||||
|
||||
|
@@ -74,6 +74,30 @@ public class ExShowScreenMessage extends L2GameServerPacket
|
||||
_npcString = -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a String on the screen for a given time.
|
||||
* @param text the text to display
|
||||
* @param time the display time
|
||||
* @param position the position on the screen
|
||||
* @param showEffect upper effect (false - disabled, true - enabled) - _position must be 2 (center) otherwise no effect
|
||||
*/
|
||||
|
||||
public ExShowScreenMessage(String text, int time, boolean showEffect, int position)
|
||||
{
|
||||
_type = 2;
|
||||
_sysMessageId = -1;
|
||||
_unk1 = 0;
|
||||
_unk2 = 0;
|
||||
_unk3 = 0;
|
||||
_fade = false;
|
||||
_position = TOP_CENTER;
|
||||
_text = text;
|
||||
_time = time;
|
||||
_size = 0;
|
||||
_effect = showEffect;
|
||||
_npcString = -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a NPC String on the screen for a given position and time.
|
||||
* @param npcString the NPC String Id
|
||||
|
Reference in New Issue
Block a user