Browse Source

disc rune announcements

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
0318459ff1
  1. 12
      src/engine/objects/Mob.java

12
src/engine/objects/Mob.java

@ -26,6 +26,7 @@ import engine.net.Dispatch;
import engine.net.DispatchMessage; import engine.net.DispatchMessage;
import engine.net.client.msg.PetMsg; import engine.net.client.msg.PetMsg;
import engine.net.client.msg.PlaceAssetMsg; import engine.net.client.msg.PlaceAssetMsg;
import engine.net.client.msg.chat.ChatSystemMsg;
import engine.powers.MobPowerEntry; import engine.powers.MobPowerEntry;
import engine.server.MBServerStatics; import engine.server.MBServerStatics;
import org.joda.time.DateTime; import org.joda.time.DateTime;
@ -1184,6 +1185,17 @@ public class Mob extends AbstractIntelligenceAgent {
return; return;
LootManager.GenerateMobLoot(this); 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 @Override

Loading…
Cancel
Save