Castle siege start and finish sound messages.
Contributed by Sahar.
This commit is contained in:
9
L2J_Mobius_C6_Interlude/dist/game/config/olympiad.cfg
vendored
Normal file
9
L2J_Mobius_C6_Interlude/dist/game/config/olympiad.cfg
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
#Olympiad Properties
|
||||
#Wed Oct 02 13:35:09 EEST 2019
|
||||
NextWeeklyChange_DateFormat=9 \u039F\u03BA\u03C4 2019, 1\:30\:24 \u03BC.\u03BC.
|
||||
ValdationEnd=0
|
||||
NextWeeklyChange=1570617024580
|
||||
Period=0
|
||||
CurrentCycle=1
|
||||
OlympiadEnd=1572602400580
|
||||
OlympiadEnd_DateFormat=1 \u039D\u03BF\u03B5 2019, 12\:00\:00 \u03BC.\u03BC.
|
@@ -52,6 +52,7 @@ import org.l2jmobius.gameserver.model.entity.Announcements;
|
||||
import org.l2jmobius.gameserver.model.spawn.Spawn;
|
||||
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.RelationChanged;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SiegeInfo;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
@@ -310,6 +311,11 @@ public class Siege
|
||||
if (_isInProgress)
|
||||
{
|
||||
announceToPlayer("The siege of " + getCastle().getName() + " has finished!", false);
|
||||
final PlaySound sound = new PlaySound("systemmsg_e.18");
|
||||
for (PlayerInstance player : World.getInstance().getAllPlayers())
|
||||
{
|
||||
player.sendPacket(sound);
|
||||
}
|
||||
|
||||
LOGGER.info("[SIEGE] The siege of " + getCastle().getName() + " has finished! " + fmt.format(new Date(System.currentTimeMillis())));
|
||||
|
||||
@@ -614,6 +620,11 @@ public class Siege
|
||||
ThreadPool.schedule(new ScheduleEndSiegeTask(getCastle()), 1000);
|
||||
|
||||
announceToPlayer("The siege of " + getCastle().getName() + " has started!", false);
|
||||
final PlaySound sound = new PlaySound("systemmsg_e.17");
|
||||
for (PlayerInstance player : World.getInstance().getAllPlayers())
|
||||
{
|
||||
player.sendPacket(sound);
|
||||
}
|
||||
|
||||
LOGGER.info("[SIEGE] The siege of " + getCastle().getName() + " has started! " + fmt.format(new Date(System.currentTimeMillis())));
|
||||
}
|
||||
|
Reference in New Issue
Block a user