From aca8a396d834527b2a65614d525475086b3fd782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E9=A3=8E?= <1213457484@qq.com> Date: Fri, 18 Apr 2025 15:25:36 +0800 Subject: [PATCH] no message --- src/client/MapleCharacter.java | 4 ++-- src/server/BossInMap.java | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/client/MapleCharacter.java b/src/client/MapleCharacter.java index d38f2d8..79c7713 100644 --- a/src/client/MapleCharacter.java +++ b/src/client/MapleCharacter.java @@ -2064,13 +2064,13 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject implements Se String s = MapleCharacter.this.getName(); String d=""; if (item1.getItemId() > 1) { - d = item1.getItemName() + " x " + num; + d = " x " + num; String replace = Start.diaoyuConfig.getNotice().replace("%s", s).replace("%d", d); final IItem idrop = new Item(item1.getItemId(), (short) 0, (short)num , (byte) 0); Broadcast.broadcastMessage(MaplePacketCreator.getGachaponMega2("【钓鱼场】", " : "+replace, idrop, (byte) 14)); }else { d = num + item1.getItemName(); - String replace = Start.diaoyuConfig.getNotice().replace("%s", s).replace("%d", d); + String replace = Start.diaoyuConfig.getNotice().replace("%s", s).replace("%d", "")+d; replace = "【钓鱼场】 : "+replace; Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(9, MapleCharacter.this.client.getChannel(),replace)); } diff --git a/src/server/BossInMap.java b/src/server/BossInMap.java index 8bed6c5..699ae24 100644 --- a/src/server/BossInMap.java +++ b/src/server/BossInMap.java @@ -10,7 +10,7 @@ public class BossInMap { private String msg; private int time; - private String bosshp= "0"; + private String bosshp ="0"; public String getBosshp() { return bosshp; @@ -28,6 +28,15 @@ public class BossInMap { this.msg = msg; this.time = time; } + public BossInMap(final int mobid, final int map, final int x, final int y, final String msg, final int time, final String bosshp) { + this.mobid = mobid; + this.map = map; + this.x = x; + this.y = y; + this.msg = msg; + this.time = time; + this.bosshp = bosshp; + } public int getMobid() { return this.mobid;