- 积分
- 178
- 最后登录
- 2025-1-9
- 阅读权限
- 10
- 积分
- 178
- 回帖
- 24
- 精华
- 0
该用户从未签到 新人上路

- 枫币
- 150
- 威望
- 0
- 贡献
- 2
- 在线时间
- 19 小时
- 注册时间
- 2020-6-23

|
case 恶魔复仇者.追击盾: {
if (skillid == 恶魔复仇者.追击盾) {
slea.skip(4);
}
byte mobCount = slea.readByte(); //怪物数量
List<Integer> moboids = new ArrayList<Integer>();
for (int i = 0; i < mobCount; i++) {
moboids.add(slea.readInt());
}
if (moboids.size() == mobCount) {
c.getSession().write(MaplePacketCreator.追击盾效果(chr.getId(), 恶魔复仇者.追击盾_1, chr.getSpecialStat().getForceCounter(), moboids, 4));
chr.getSpecialStat().gainForceCounter(4);
}
break;
}
--------------------------------分割线--------------------------------------------------------------
public static byte[] 追击盾效果(int chrId, int skillId, int forceCount, List<Integer> mobids, int szieLevel) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.GAIN_FORCE.getValue());
mplew.write(0);
mplew.writeInt(chrId);
mplew.writeInt(skillId == 恶魔复仇者.追击盾 ? 3 : 20);
mplew.write(1);
mplew.writeInt(mobids.size()); //攻击怪物的数量
for (Integer mobid : mobids) {
mplew.writeInt(mobid);
}
mplew.writeInt(skillId); //技能ID
for (int i = 0; i <= szieLevel; i++) {
mplew.write(1);
mplew.writeInt(skillId == 恶魔复仇者.追击盾 ? 1 + i : forceCount + i);
mplew.writeInt(skillId == 恶魔复仇者.追击盾 ? 3 : 2);
mplew.writeInt(Randomizer.rand(1, 20));
mplew.writeInt(Randomizer.rand(20, 50));
mplew.writeInt(Randomizer.rand(50, 200));
mplew.writeInt(660);
mplew.writeLong(0);
mplew.writeInt(Randomizer.nextInt());
mplew.writeInt(0);
mplew.writeInt(0);
修成功过一次,释放后却是其他职业技能的追踪导弹,有大佬修复好的吗?可以分享一下吗
|
|