Ninja Ambush & Donators on GM Map glitch

Normalized the Ninja Ambush skill, now applying a more sane DOT amount.
Added "mobhp" and "resetskill" commands.
Fixed a glitch with donators on the GM map, being able to interact with those NPCs as if they were GM's.
Added scripts for the Dyle questline.
This commit is contained in:
ronancpl
2018-04-12 15:35:07 -03:00
parent 5d8ede3247
commit 6d91c79f28
14 changed files with 363 additions and 9 deletions

View File

@@ -899,7 +899,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
} else if (status.getSkill().getId() == 4121004 || status.getSkill().getId() == 4221004) { // Ninja Ambush
final Skill skill = SkillFactory.getSkill(status.getSkill().getId());
final byte level = from.getSkillLevel(skill);
final int damage = (int) ((from.getStr() + from.getLuk()) * (1.5 + (level * 0.05)) * skill.getEffect(level).getDamage());
final int damage = (int) ((from.getStr() + from.getLuk()) * ((3.7 * skill.getEffect(level).getDamage()) / 100));
status.setValue(MonsterStatus.NINJA_AMBUSH, Integer.valueOf(damage));
animationTime = broadcastStatusEffect(status);
@@ -1164,7 +1164,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
}
if (damage > 0) {
damage(chr, damage, true);
if (type == 1 || type == 2) {
if (type == 1) { // ninja ambush (type 2) is already displaying DOT
map.broadcastMessage(MaplePacketCreator.damageMonster(getObjectId(), damage), getPosition());
}
}