From 0318459ff1b39a37d9dd263738b0e488404ccb0a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 27 May 2024 21:45:06 -0500 Subject: [PATCH] disc rune announcements --- src/engine/objects/Mob.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index acfecb81..430e4787 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -26,6 +26,7 @@ import engine.net.Dispatch; import engine.net.DispatchMessage; import engine.net.client.msg.PetMsg; import engine.net.client.msg.PlaceAssetMsg; +import engine.net.client.msg.chat.ChatSystemMsg; import engine.powers.MobPowerEntry; import engine.server.MBServerStatics; import org.joda.time.DateTime; @@ -1184,6 +1185,17 @@ public class Mob extends AbstractIntelligenceAgent { return; LootManager.GenerateMobLoot(this); + if(this.dropper){ + for(Item item : this.charItemManager.getInventory()) { + ItemBase ib = item.getItemBase(); + if(ib.isDiscRune()) { + ChatSystemMsg chatMsg = new ChatSystemMsg(null, this.getName() + " in " + this.getParentZone().getName() + " has found the " + ib.getName() + ". Are you tough enough to take it?"); + chatMsg.setMessageType(10); + chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID()); + DispatchMessage.dispatchMsgToAll(chatMsg); + } + } + } } @Override