TA的每日心情 | 擦汗 2022-11-20 17:39 |
---|
签到天数: 2 天 [LV.1]初来乍到
版主
小灰灰
- 积分
- 164
|
找到MapleMapEffect.java
找到makeDestroyData这个函数
从原来的
public byte[] makeDestroyData() {
return this.jukebox ? MTSCSPacket.playCashSong(0, "") : MaplePacketCreator.removeMapEffect();
}
改成以下
public byte[] makeDestroyData() {//修复屏幕中间喇叭不自动消失
return this.jukebox ? MTSCSPacket.playCashSong(0, this.msg) : MaplePacketCreator.startMapEffect(this.msg, 0, this.active);
}
找到MaplePacketCreator.java
找到startMapEffect函数
从原来的
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);
}
包头
#不知道是啥 貌似是地图组件动画或者效果 079
MOVE_ENV = 0x8E
#地图效果 79
MAP_EFFECT = 0x91
|
|