no message

This commit is contained in:
雪风 2025-04-18 15:25:36 +08:00
parent a05a719557
commit aca8a396d8
2 changed files with 12 additions and 3 deletions

View File

@ -2064,13 +2064,13 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject implements Se
String s = MapleCharacter.this.getName(); String s = MapleCharacter.this.getName();
String d=""; String d="";
if (item1.getItemId() > 1) { if (item1.getItemId() > 1) {
d = item1.getItemName() + " x " + num; d = " x " + num;
String replace = Start.diaoyuConfig.getNotice().replace("%s", s).replace("%d", d); String replace = Start.diaoyuConfig.getNotice().replace("%s", s).replace("%d", d);
final IItem idrop = new Item(item1.getItemId(), (short) 0, (short)num , (byte) 0); final IItem idrop = new Item(item1.getItemId(), (short) 0, (short)num , (byte) 0);
Broadcast.broadcastMessage(MaplePacketCreator.getGachaponMega2("【钓鱼场】", " : "+replace, idrop, (byte) 14)); Broadcast.broadcastMessage(MaplePacketCreator.getGachaponMega2("【钓鱼场】", " : "+replace, idrop, (byte) 14));
}else { }else {
d = num + item1.getItemName(); 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; replace = "【钓鱼场】 : "+replace;
Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(9, MapleCharacter.this.client.getChannel(),replace)); Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(9, MapleCharacter.this.client.getChannel(),replace));
} }

View File

@ -10,7 +10,7 @@ public class BossInMap {
private String msg; private String msg;
private int time; private int time;
private String bosshp= "0"; private String bosshp ="0";
public String getBosshp() { public String getBosshp() {
return bosshp; return bosshp;
@ -28,6 +28,15 @@ public class BossInMap {
this.msg = msg; this.msg = msg;
this.time = time; 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() { public int getMobid() {
return this.mobid; return this.mobid;