- Joined
- Sep 4, 2010
- Messages
- 57
- Reaction score
- 1
In AbstractDealDamageHandler.java
i did
private void checkHighDamage(MapleCharacter player, MapleMonster monster, AttackInfo attack, ISkill theSkill, MapleStatEffect attackEffect, int damageToMonster, int maximumDamageToMonster) {
if (!player.isGM()) {
int elementalMaxDamagePerMonster;
int multiplyer = player.getJob().isA(MapleJob.PIRATE) ? 40 : 4;
Element element = Element.NEUTRAL;
if (theSkill != null) {
element = theSkill.getElement();
int skillId = theSkill.getId();
switch (skillId) {
case 3221007: // Snipe
totDamageToOneMonster = 95000 + (int) Math.random() * 4999;
break;
case 4221001:
maximumDamageToMonster = 400000;
break;
default:
break;
}
}
// System.out.println("Damage: " + damage);
if (ret.skill == 3221007) {
damage += 0x80000000; // Critical damage = 0x80000000 + damage
}
allDamageNumbers.add(Integer.valueOf(damage));
}
i have try many other stuff, but i never got snipe working.....
snipe dont kill monster - mob doesnt die
but i did damage 99k with non damge cap its 999k or somthing
how can i make snipe skill work
help thanks
for this part
damage += 0x80000000; // Critical damage = 0x80000000 + damage
if i change
damage += 0x80000000;
to
damage += 0x00001000;
that will work and kill monster
but damage client stay same so which means
the snipe skill keep doing 99k damage always?
i got up to this part and now im lost need help please - anyone out there kind enough to help
and not keep everything to themself
so we can all learn from this
even if i change damage += 0x00001000;
to
damage += 0x00000000;
work mob die but damge very high max damge as localhost client
i did
private void checkHighDamage(MapleCharacter player, MapleMonster monster, AttackInfo attack, ISkill theSkill, MapleStatEffect attackEffect, int damageToMonster, int maximumDamageToMonster) {
if (!player.isGM()) {
int elementalMaxDamagePerMonster;
int multiplyer = player.getJob().isA(MapleJob.PIRATE) ? 40 : 4;
Element element = Element.NEUTRAL;
if (theSkill != null) {
element = theSkill.getElement();
int skillId = theSkill.getId();
switch (skillId) {
case 3221007: // Snipe
totDamageToOneMonster = 95000 + (int) Math.random() * 4999;
break;
case 4221001:
maximumDamageToMonster = 400000;
break;
default:
break;
}
}
// System.out.println("Damage: " + damage);
if (ret.skill == 3221007) {
damage += 0x80000000; // Critical damage = 0x80000000 + damage
}
allDamageNumbers.add(Integer.valueOf(damage));
}
i have try many other stuff, but i never got snipe working.....
snipe dont kill monster - mob doesnt die
but i did damage 99k with non damge cap its 999k or somthing
how can i make snipe skill work
help thanks
for this part
damage += 0x80000000; // Critical damage = 0x80000000 + damage
if i change
damage += 0x80000000;
to
damage += 0x00001000;
that will work and kill monster
but damage client stay same so which means
the snipe skill keep doing 99k damage always?
i got up to this part and now im lost need help please - anyone out there kind enough to help
and not keep everything to themself
so we can all learn from this
even if i change damage += 0x00001000;
to
damage += 0x00000000;
work mob die but damge very high max damge as localhost client