Any good souls could adapt this mod?
L2RaidBossInstance.java
GrandBossInstance.java
Raidboss Spawn
L2RaidBossInstance.java
- Code:
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2RaidBossInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2RaidBossInstance.java (revision 62)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2RaidBossInstance.java (working copy)
@@ -28,6 +28,7 @@
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.PlaySound;
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
+import net.sf.l2j.gameserver.util.Broadcast;
import net.sf.l2j.util.Rnd;
/**
@@ -78,6 +79,11 @@
final L2PcInstance player = killer.getActingPlayer();
if (player != null)
{
+ if (player.getClan() == null)
+ Broadcast.announceToOnlinePlayers("[Raid Boss]: "+getName() +" Foi morto por " + player.getName());
+ else
+ Broadcast.announceToOnlinePlayers("[Raid Boss]: "+getName() +" Foi morto por " + player.getName()+ " do clan: " + player.getClan().getName());
+
broadcastPacket(SystemMessage.getSystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
broadcastPacket(new PlaySound("systemmsg_e.1209"));
GrandBossInstance.java
- Code:
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2GrandBossInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2GrandBossInstance.java (revision 62)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2GrandBossInstance.java (working copy)
@@ -21,6 +21,7 @@
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.PlaySound;
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
+import net.sf.l2j.gameserver.util.Broadcast;
import net.sf.l2j.util.Rnd;
/**
@@ -55,6 +56,12 @@
final L2PcInstance player = killer.getActingPlayer();
if (player != null)
{
+ if (player.getClan() == null)
+ Broadcast.announceToOnlinePlayers("[Grand Boss]: "+getName() +" Foi morto por " + player.getName());
+ else
+ Broadcast.announceToOnlinePlayers("[Grand Boss]: "+getName() +" Foi morto por " + player.getName()+ " do clan: " + player.getClan().getName());
+
+
broadcastPacket(SystemMessage.getSystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
broadcastPacket(new PlaySound("systemmsg_e.1209"));
Raidboss Spawn
- Code:
Index: java/net/sf/l2j/gameserver/instancemanager/RaidBossSpawnManager.java
===================================================================
--- java/net/sf/l2j/gameserver/instancemanager/RaidBossSpawnManager.java (revision 62)
+++ java/net/sf/l2j/gameserver/instancemanager/RaidBossSpawnManager.java (working copy)
@@ -33,6 +33,7 @@
import net.sf.l2j.gameserver.model.actor.instance.L2RaidBossInstance;
import net.sf.l2j.gameserver.model.actor.template.NpcTemplate;
import net.sf.l2j.gameserver.templates.StatsSet;
+import net.sf.l2j.gameserver.util.Broadcast;
import net.sf.l2j.gameserver.util.Util;
import net.sf.l2j.util.Rnd;
@@ -141,6 +142,8 @@
_log.info("RaidBoss: " + raidboss.getName() + " has spawned.");
+ Broadcast.announceToOnlinePlayers("[Raid Boss]: " + raidboss.getName() + " esta vivo!");
+
_bosses.put(bossId, raidboss);
}