Browse Source

show macrozone name and camp name when dropping runes

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
8c2ddd266d
  1. 5
      src/engine/gameManager/LootManager.java

5
src/engine/gameManager/LootManager.java

@ -134,7 +134,10 @@ public enum LootManager { @@ -134,7 +134,10 @@ public enum LootManager {
if (ib == null)
break;
if (ib.isDiscRune() || ib.getName().toLowerCase().contains("of the gods")) {
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " has found the " + ib.getName() + ". Are you tough enough to take it?");
Zone camp = mob.getParentZone();
Zone macro = camp.getParent();
String name = camp.getName() + "(" + macro.getName() + ")";
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + name + " has found the " + ib.getName() + ". Are you tough enough to take it?");
chatMsg.setMessageType(10);
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
DispatchMessage.dispatchMsgToAll(chatMsg);

Loading…
Cancel
Save