Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Anuncio Spawn Raid Boss

Iniciado por Swarlog, Ago 12, 2022, 02:07 AM

Tema anterior - Siguiente tema

Swarlog

### Eclipse Workspace Patch 1.0
#P L2J_Server_BETA
Index: dist/game/config/L2JMods.properties
===================================================================
--- dist/game/config/L2JMods.properties (revision 29)
+++ dist/game/config/L2JMods.properties (working copy)
@@ -71,7 +71,21 @@
# Default = False
ChampionEnableInInstances = False
+
# ---------------------------------------------------------------------------
+# Announce boss spawn
+# ---------------------------------------------------------------------------
+
+# Enable/disable announce boss spawn
+# Default = False
+AnnounceBossSpawn = False
+
+# Enable critical announce?
+# True = will be critical announce, False = normal announce
+CriticalAnnounce = False
+
+
+# ---------------------------------------------------------------------------
# Wedding System (by evill33t)
# ---------------------------------------------------------------------------
# <u><b><font color="red">WARNING: this mod require custom NPC table support turned on !</font></b></u>
Index: java/com/l2jserver/gameserver/instancemanager/RaidBossSpawnManager.java
===================================================================
--- java/com/l2jserver/gameserver/instancemanager/RaidBossSpawnManager.java (revision 29)
+++ java/com/l2jserver/gameserver/instancemanager/RaidBossSpawnManager.java (working copy)
@@ -32,6 +32,7 @@
import com.l2jserver.Config;
import com.l2jserver.L2DatabaseFactory;
+import com.l2jserver.gameserver.Announcements;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.datatables.NpcTable;
import com.l2jserver.gameserver.datatables.SpawnTable;
@@ -163,6 +164,18 @@
_log.info(getClass().getSimpleName() + ": Spawning Raid Boss " + raidboss.getName());
+ if (Config.ANNOUNCE_BOSS_SPAWN)
+ {
+ if (Config.ANNOUNCE_BOSS_SPAWN_CRIT)
+ {
+ Announcements.getInstance().announceToAll("[Info] Raidboss " + raidboss.getName() + " has been spawned!", true);
+ }
+ else
+ {
+ Announcements.getInstance().announceToAll("Raidboss " + raidboss.getName() + " has been spawned!");
+ }
+ }
+
_bosses.put(bossId, raidboss);
}
Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java (revision 30)
+++ java/com/l2jserver/Config.java (working copy)
@@ -683,6 +683,8 @@
// --------------------------------------------------
// L2JMods Settings
// --------------------------------------------------
+ public static boolean ANNOUNCE_BOSS_SPAWN;
+ public static boolean ANNOUNCE_BOSS_SPAWN_CRIT;
public static boolean L2JMOD_CHAMPION_ENABLE;
public static boolean L2JMOD_CHAMPION_PASSIVE;
public static int L2JMOD_CHAMPION_FREQUENCY;
@@ -2430,6 +2432,8 @@
_log.log(Level.SEVERE, "Error while loading L2JMod settings!", e);
}
+ ANNOUNCE_BOSS_SPAWN = Boolean.parseBoolean(L2JModSettings.getProperty("AnnounceBossSpawn", "false"));
+ ANNOUNCE_BOSS_SPAWN_CRIT = Boolean.parseBoolean(L2JModSettings.getProperty("CriticalAnnounce", "false"));
L2JMOD_CHAMPION_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("ChampionEnable", "false"));
L2JMOD_CHAMPION_PASSIVE = Boolean.parseBoolean(L2JModSettings.getProperty("ChampionPassive", "false"));
L2JMOD_CHAMPION_FREQUENCY = Integer.parseInt(L2JModSettings.getProperty("ChampionFrequency", "0"));

---> Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

by St3eT