타이탄락 / 블릿 차암
L1attack.java
PC_PC 부분
/** 타이탄락 **/
if (_targetPc.getInventory().checkItem(6000051)) {
int chance = _random.nextInt(100) + 1;
int CurrentHp = _targetPc.getCurrentHp();//현재체력
int MaxHP = (int) (_targetPc.getMaxHp() * 0.4);//40퍼센트체력
if (CurrentHp < MaxHP) {//현재체력이 40퍼센트 이하라면
if ((_weaponType != 20 && _weaponType != 62) && chance <= 30) {//활과 건틀렛 제외하고 확률30
_isHit = false;
_pc.receiveDamage(_targetPc, (int) dmg, false);//데미지 부분
_targetPc.sendPackets(new S_SystemMessage("락발동!"));//메시지
_pc.sendPackets(new S_SkillSound(_targetPc.getId(), 12555));//이펙트
Broadcaster.broadcastPacket(_pc,
new S_SkillSound(_targetPc.getId(), 12555));
return 0;
}
}
}
/** 타이탄블릿 **/
if (_targetPc.getInventory().checkItem(6000052)) {
int chance = _random.nextInt(100) + 1;
int CurrentHp = _targetPc.getCurrentHp();
int MaxHP = (int) (_targetPc.getMaxHp() * 0.4);
if (CurrentHp < MaxHP) {
if ((_weaponType == 20 || _weaponType == 62) && chance <= 30) {
_isHit = false;
_pc.receiveDamage(_targetPc, (int) dmg, false);
_targetPc.sendPackets(new S_SystemMessage("블릿발동!"));
_targetPc.sendPackets(new S_EffectLocation(
_targetPc.getX(), _targetPc.getY(), 12557));
Broadcaster.broadcastPacket(
_targetPc,
new S_EffectLocation(_targetPc.getX(), _targetPc
.getY(), 12557));
return 0;
}
}
}
NPC_PC부분
/** 타이탄락 **/
if (_targetPc.getInventory().checkItem(6000051)) {
int chance = _random.nextInt(100) + 1;
int CurrentHp = _targetPc.getCurrentHp();
int MaxHP = (int) (_targetPc.getMaxHp() * 0.4);
if (CurrentHp < MaxHP) {
if (_npc.getNpcTemplate().getBowActId() == 0 && chance <= 30) {
_isHit = false;
_npc.receiveDamage(_targetPc, (int) dmg);
_targetPc.sendPackets(new S_SystemMessage("락발동!"));
_targetPc.sendPackets(new S_EffectLocation(
_targetPc.getX(), _targetPc.getY(), 12555));
Broadcaster.broadcastPacket(
_targetPc,
new S_EffectLocation(_targetPc.getX(), _targetPc
.getY(), 12555));
return 0;
}
}
}
/** 타이탄블릿 **/
if (_targetPc.getInventory().checkItem(6000052)) {
int chance = _random.nextInt(100) + 1;
int CurrentHp = _targetPc.getCurrentHp();
int MaxHP = (int) (_targetPc.getMaxHp() * 0.4);
if (CurrentHp < MaxHP) {
if (_npc.getNpcTemplate().getBowActId() != 0 && chance <= 30) {
_isHit = false;
_npc.receiveDamage(_targetPc, (int) dmg);
_targetPc.sendPackets(new S_SystemMessage("블릿발동!"));
_targetPc.sendPackets(new S_EffectLocation(
_targetPc.getX(), _targetPc.getY(), 12557));
Broadcaster.broadcastPacket(
_targetPc,
new S_EffectLocation(_targetPc.getX(), _targetPc
.getY(), 12557));
return 0;
}
}
}
6000051 $17828 전사의 인장 (타이탄: 락) other normal gemstone 0 6173 22 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1
6000052 $17829 전사의 인장 (타이탄: 블릿) other normal gemstone 0 6174 22 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1
[출처] 타이탄락/블릿 차암 (비공개 카페)

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