public static byte[] startMapEffect(final String msg, final int itemid, final boolean active) {
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort((int)SendPacketOpcode.MOVE_ENV.getValue());
mplew.write((int)(active ? 0 : 1));
mplew.writeInt(itemid);
if (active) {
mplew.writeMapleAsciiString(msg);
}
return mplew.getPacket();
}
改成以下
public static byte[] startMapEffect(String msg, int itemid, boolean active) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.MAP_EFFECT.getValue());
mplew.write(active ? 0 : 1);
mplew.writeInt(itemid);
if (active) {
mplew.writeMapleAsciiString(msg);
}
return mplew.getPacket();
}
找到removeMapEffect函数
从原来的
public static byte[] removeMapEffect() {
return startMapEffect(null, 0, false);
}
改成以下
public static byte[] removeMapEffect() {
return startMapEffect(null, 0, true);
}