How To Add Skills 120 Cuz i have Crash on it
Take Care My Database D11 and i wanna make it degree 12
Take Care My Database D11 and i wanna make it degree 12
private void applyBuffEffect(MapleCharacter applyfrom, MapleCharacter applyto, boolean primary, int oid) { final int curHP = applyto.getHp();
final int curMP = applyto.getMp();
if (sourceid != Corsair.BATTLE_SHIP) {
if (!this.isMonsterRiding()) {
if (isHomingBeacon()) {
applyto.offBeacon(true);
}
applyto.cancelEffect(this, true, -1);
}
} else {
applyto.cancelEffect(this, true, -1);
}
List<Pair<MapleBuffStat, Integer>> localstatups = statups;
int localDuration = duration;
int localsourceid = sourceid;
MapleMount givemount = null;
if (isMonsterRiding()) {
int ridingLevel = 0;
IItem mount = applyfrom.getInventory(MapleInventoryType.EQUIPPED).getItem((byte) -18);
if (mount != null) {
ridingLevel = mount.getItemId();
}
if (sourceid == Corsair.BATTLE_SHIP) {
ridingLevel = 1932000;
} else {
if (applyto.getMount() == null) {
applyto.mount(mount.getItemId(), sourceid);
}
applyto.getMount().startSchedule();
applyto.getMount().setActive(true);
}
if (sourceid == Corsair.BATTLE_SHIP) {
givemount = new MapleMount(applyto, ridingLevel, sourceid);
} else {
givemount = applyto.getMount();
}
localDuration = sourceid;
localsourceid = ridingLevel;
localstatups = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MONSTER_RIDING, 0));
}
if (isSkillMorph()) {
localstatups = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MORPH, getMorph(applyto)));
}
if (isPirateMorph()) {
localstatups = new ArrayList<Pair<MapleBuffStat, Integer>>();
localstatups.add(new Pair<MapleBuffStat, Integer>(MapleBuffStat.SPEED, Integer.valueOf(40)));
localstatups.add(new Pair<MapleBuffStat, Integer>(MapleBuffStat.JUMP, Integer.valueOf(20)));
localstatups.add(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MORPH, getMorph(applyto)));
}
if (primary) {
localDuration = alchemistModifyVal(applyfrom, localDuration, false);
}
if (localstatups.size() > 0) {
MaplePacket buff = MaplePacketCreator.giveBuff((skill ? sourceid : -sourceid), localDuration, localstatups, false);
if (isDash()) {
if ((applyto.getJob().getId() / 100) % 10 != 5) {
applyto.changeSkillLevel(SkillFactory.getSkill(sourceid), 0, 10);
} else {
buff = MaplePacketCreator.givePirateBuff(sourceid, localDuration / 1000, localstatups);
}
} else if (isInfusion()) {
buff = MaplePacketCreator.giveSpeedInfusion(sourceid, x, localDuration / 1000);
} else if (isMonsterRiding()) {
buff = MaplePacketCreator.giveBuff(localsourceid, localDuration, localstatups, true);
} else if (isHomingBeacon()) {
applyto.setBeacon(oid);
buff = MaplePacketCreator.giveHomingBeacon(sourceid, oid);
}
applyto.getClient().getSession().write(buff);
}
if (isDash()) {
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.showPirateBuff(applyto.getId(), sourceid, localDuration, localstatups), false);
} else if (isInfusion()) {
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.showSpeedInfusion(applyto.getId(), x, localDuration / 1000, sourceid), false);
} else if (isDs()) {
List<Pair<MapleBuffStat, Integer>> dsstat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.DARKSIGHT, 0));
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), dsstat, false), false);
} else if (isCombo()) {
List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.COMBO, 1));
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat, false), false);
} else if (isMonsterRiding()) {
List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MONSTER_RIDING, 1));
if (applyto.getMount().getItemId() != 0) {
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.showMonsterRiding(applyto.getId(), stat, givemount), false);
}
localDuration = duration;
} else if (isShadowPartner()) {
List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.SHADOWPARTNER, 0));
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat, false), false);
} else if (isSoulArrow()) {
List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.SOULARROW, 0));
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat, false), false);
} else if (isEnrage()) {
applyto.handleOrbconsume();
} else if (isMorph() || isOakBarrel() || isPirateMorph()) {
List<Pair<MapleBuffStat, Integer>> stat = Collections.singletonList(new Pair<MapleBuffStat, Integer>(MapleBuffStat.MORPH, Integer.valueOf(getMorph(applyto))));
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.giveForeignBuff(applyto.getId(), stat, true), false);
} else if (isTimeLeap()) {
for (PlayerCoolDownValueHolder i : applyto.getAllCooldowns()) {
if (i.skillId != Buccaneer.TIME_LEAP) {
applyto.removeCooldown(i.skillId);
}
}
}
if (localstatups.size() > 0) {
long starttime = System.currentTimeMillis();
applyto.registerEffect(this, starttime, isHomingBeacon() ? null : TimerManager.getInstance().schedule(new CancelEffectAction(applyto, this, starttime), localDuration));
}
if (primary && !isHide()) {
if (isDash()) {
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.showPirateBuff(applyto.getId(), sourceid, localDuration, localstatups), false);
} else if (isInfusion()) {
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.showSpeedInfusion(applyto.getId(), x, localDuration / 1000, sourceid), false);
} else if (!isHomingBeacon()) {
applyto.getMap().broadcastMessage(applyto, MaplePacketCreator.showBuffEffect(applyto, applyto.getId(), sourceid, 1, (byte) 3), false);
}
}
if (this.sourceid == Spearman.HYPER_BODY) {
applyto.setHp(curHP);
applyto.setMp(curMP);
applyto.updateSingleStat(MapleStat.HP, curHP);
applyto.updateSingleStat(MapleStat.MP, curMP);
}
}
[ LIST][*]Item A[*]Item B
[ INDENT][*]Item B.A[*]Item B.B[*]Item B.C
[ /INDENT]
[ /LIST]