[구버전] 사일런스 소스
int chance11 = _random.nextInt(100) + 1;
if( chance11 <= 10 ) if (_pc.getInventory().checkItem(아이템번호) ) {
_random.nextInt(15);
_target.setSkillEffect(SILENCE, 16000); //16초
_pc.sendPackets(new S_SkillSound(_targetId, 2177));
int castle_id = L1CastleLocation.getCastleIdByArea(_pc);
if (castle_id == 0){
_pc.broadcastPacket(new S_SkillSound(_targetId, 2177));
}
}
L1Attack.java
pc부분과 npc부분 두곳에 추가
설명-해당 아이템을 인벤에 보유후 타격시 상대방에게 확률적으로 사일런스를 발동하게됨!