린드 가호 본섭화
엘원어택.자바
pc_pc 부분과 pc_npc부분 2군데
if (dmg >= 15) {
if (_target != _targetNpc) {
if (_targetPc.getInventory().checkEquipped(22204)) {// 린드완력
L1ItemInstance item = _targetPc.getInventory()
.findEquippedItemId(22204);
int enchant = item.getEnchantLevel();
if (new Random().nextInt(100) <= 1 + enchant) {
short getMp = (short) (_targetPc.getCurrentMp() + (new Random()
.nextInt(6) + 8));
_targetPc.setCurrentMp(getMp);
_targetPc.sendPackets(new S_SkillSound(_targetPc
.getId(), 2188));
_targetPc.broadcastPacket(new S_SkillSound(_targetPc
.getId(), 2188));
}
} else if (_targetPc.getInventory().checkEquipped(22205)) {// 린드예지력
L1ItemInstance item = _targetPc.getInventory()
.findEquippedItemId(22205);
int enchant = item.getEnchantLevel();
if (new Random().nextInt(100) <= 1 + enchant) {
short getMp = (short) (_targetPc.getCurrentMp() + (new Random()
.nextInt(6) + 9));
_targetPc.setCurrentMp(getMp);
_targetPc.sendPackets(new S_SkillSound(_targetPc
.getId(), 2188));
_targetPc.broadcastPacket(new S_SkillSound(_targetPc
.getId(), 2188));
}
} else if (_targetPc.getInventory().checkEquipped(22206)) {// 린드인내력
L1ItemInstance item = _targetPc.getInventory()
.findEquippedItemId(22206);
int enchant = item.getEnchantLevel();
if (new Random().nextInt(100) <= 1 + enchant) {
short getMp = (short) (_targetPc.getCurrentMp() + (new Random()
.nextInt(8) + 16));
_targetPc.setCurrentMp(getMp);
_targetPc.sendPackets(new S_SkillSound(_targetPc
.getId(), 2188));
_targetPc.broadcastPacket(new S_SkillSound(_targetPc
.getId(), 2188));
}
} else if (_targetPc.getInventory().checkEquipped(22207)) {// 린드마력
L1ItemInstance item = _targetPc.getInventory()
.findEquippedItemId(22207);
int enchant = item.getEnchantLevel();
if (new Random().nextInt(100) <= 1 + enchant) {
short getMp = (short) (_targetPc.getCurrentMp() + (new Random()
.nextInt(10) + 20));
_targetPc.setCurrentMp(getMp);
_targetPc.sendPackets(new S_SkillSound(_targetPc
.getId(), 2188));
_targetPc.broadcastPacket(new S_SkillSound(_targetPc
.getId(), 2188));
}
}
}
}
메소드 없는분들은
엘원인벤토리.자바
public L1ItemInstance findEquippedItemId(int id) {
for (L1ItemInstance item : _items) {
if (item == null)
continue;
if ((item.getItem().getItemId() == id) && item.isEquipped()) {
return item;
}
}
return null;
}
출처:옆동네(팝x-원빈이형)

로스트사가 님의 최근 댓글
감사합니다. 2019 06.13 감사합니다. 2019 06.12 감사합니다. 2019 05.03 감사합니다. 2019 05.03 감사합니다. 2018 03.11