에바팩 콤보버프
L1PcInstance
시작하는부분 아무곳이나
//콤보
private int comboCount;
/** 변경 가능한지 검사한다 시작 **/
//콤보
public int getComboCount()
{
return this.comboCount;
}
public void setComboCount(int comboCount) {
this.comboCount = comboCount;
}
L1SkillId
public static final int COMBO_BUFF = 80006; // 콤보
Dead
public void run() {
try {
// mob.die(lastAttacker);
doSomething();
calcDamageInCrystalCave();
openAntDoor();
calcCombo(this.lastAttacker);
} catch (Exception e) {
e.printStackTrace();
}
}
//콤보
private void calcCombo(L1Character lastAttacker) {
if ((lastAttacker instanceof L1PcInstance)) {
L1PcInstance pc = (L1PcInstance)lastAttacker;
if (!pc.getSkillEffectTimerSet().hasSkillEffect(80006)) {
if ((pc.getAinHasad() / 10000 > 100) || (CommonUtil.random(100) <= 10)) {
pc.setComboCount(1);
pc.getSkillEffectTimerSet().setSkillEffect(80006, 50000);
pc.sendPackets(new S_PacketBox(204, pc.getComboCount()));
}
} else if (pc.getComboCount() < 30) {
pc.setComboCount(pc.getComboCount() + 1);
pc.sendPackets(new S_PacketBox(204, pc.getComboCount()));
} else {
pc.sendPackets(new S_PacketBox(204, 31));
}
}
}
S_PacketBox
case 204: //콤보
writeH(value);
break;
CalcExp
double comboBonus = 1; //콤보
if (pc.getSkillEffectTimerSet().hasSkillEffect(80006)) {
if (pc.getComboCount() <= 10) {
comboBonus = 0.1D * pc.getComboCount();
} else if ((pc.getComboCount() > 10) && (pc.getComboCount() <= 15)) {
comboBonus = 0.1D * pc.getComboCount();
comboBonus += 0.2D * (pc.getComboCount() - 10);
} else if (pc.getComboCount() > 15) {
comboBonus = 3.0D;
}
if (comboBonus > 0.0D) {
pc.calAinHasad(-(int)(exp * comboBonus));
}
}
if (pc.getSkillEffectTimerSet().hasSkillEffect(80006)) {
if (pc.getComboCount() <= 10) {
comboBonus = 0.1D * pc.getComboCount();
} else if ((pc.getComboCount() > 10) && (pc.getComboCount() <= 15)) {
comboBonus = 0.1D * pc.getComboCount();
comboBonus += 0.2D * (pc.getComboCount() - 10);
} else if (pc.getComboCount() > 15) {
comboBonus = 3.0D;
}
if (comboBonus > 0.0D) {
pc.calAinHasad(-(int)(exp * comboBonus));
}
}
int add_exp = (int) (exp * settingEXP * foodBonus * expposion
* levelBonus * exppenalty * newchar * clanBonus * castleBonus
* dollBonus * gereng * dragoneme* comboBonus * etcBonus * 진귀한 * clan20Bonus
* levelupBonus * 신규지원);
출처 구글링

인게임 님의 최근 댓글
클라도 아르카나져 그럼? 2024 04.19 구매하려고 하는데 뭐가 좋나요 2024 04.16 ㄳ 2024 04.15 친구추가 하려하니 사용자명을 올바르게 입력하래요 2024 04.13 포트가 문제였어요 감사합니다 2024 04.10