デーモンスレイヤーフォース実装

Go down

デーモンスレイヤーフォース実装

投稿 by 構築さん on 2014-05-31, 17:40

AbstractDealDamageHandler.java

Code:
if ((combo / 10) <= comboLevel) {
SkillFactory.getSkill(21000000).getEffect(combo / 10).applyComboBuff(player, combo);
}
break;
}
player.setCombo(combo);
}
player.setLastCombo(currentTime);
}
}

を検索

下を追加

Code:
if (player.isDemonSlayer()) {
if (player.getLevel() <30>= 30 && player.getLevel() <70>= 70 && player.getLevel() <120>= 120) {
player.gainForce(monster, 4, attack.skill);
}
}

MapleCharacter.java

Code:
private short combocounter = 0;

を検索

下を追加

Code:
private int forcecounter = 0;

Code:
public boolean isDemonSlayer() {
if (getJob().getId() / 100 == 31 || getJob().getId() == 3001) {
return true;
}
return false;
}

Code:
public void gainForce(MapleMonster monster, int force, int skillid) {
int maxFuryLevel = getSkillLevel(SkillFactory.getSkill(31110009));
forcecounter++;
addMP(force);
announce(MaplePacketCreator.showForce(monster, force, forcecounter));
if (maxFuryLevel > 0) {
if (skillid == 31000004 || skillid == 31001006 || skillid == 31001007 || skillid == 31001008) {
forcecounter++;
int rand = Randomizer.nextInt(100);
addMP(force);
if (rand >= 50) {
announce(MaplePacketCreator.showForce(monster, 2, forcecounter));
} else {
announce(MaplePacketCreator.showForce(monster, 3, forcecounter));
}
}
}
}

SendOpcode

Code:
SHOW_FORCE(0xDB),

MaplePacketCreator.java

下を追加

Code:
public static MaplePacket showForce(MapleMonster life, int forceColor, int forceCount) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendOpcode.SHOW_FORCE.getValue());
mplew.write(1);
mplew.writeInt(life.getObjectId());
mplew.write(1);
mplew.writeInt(forceCount);
mplew.writeInt(forceColor);
mplew.write(0);
return mplew.getPacket();
}
avatar
構築さん
Admin

Posts : 193
Join date : 2014/05/29

http://maplescience.forumjap.com

トップに戻る Go down

トップに戻る


 
Permissions in this forum:
返信投稿: 不可