게시판 제목 잘보고 올리세요 일반게시판에 홍보글 보이면 바로 회원 차단입니다

2.0올라이트 비공개팩 축무기일때 손상안되게하는 소스

컨텐츠 정보

본문

2.0올라이트고요


축무기일때만 손상안되게하려는데요 

이클립스 - 아이템인스턴스에서 손상안되게 하는 소스좀 알려주세요


관련자료

댓글 3
profile_image

해골이다님의 댓글의 댓글

// 손상 처리.
if (mon.isToughskin() && type == Lineage.ATTACK_TYPE_WEAPON && cha.isBuffSoulOfFlame() == false) {
if (PluginController.init(MonsterInstance.class, "toDamage.손상처리", cha) == null) {
ItemInstance weapon = cha.getInventory().getSlot(Lineage.SLOT_WEAPON);
if (weapon != null && weapon.getItem().isCanbedmg() && Util.random(0, 100) < 10) {
weapon.setDurability(weapon.getDurability() + 1);
if ((getBless() == 0 || getBless() == -128) && getItem().getType1().equalsIgnoreCase("weapon"))
weapon.setDurability(weapon.getDurability() + 0);
if (Lineage.server_version >= 160)
cha.toSender(S_InventoryStatus.clone(BasePacketPooling.getPool(S_InventoryStatus.class), weapon));
cha.toSender(S_Message.clone(BasePacketPooling.getPool(S_Message.class), 268, weapon.toString()));
}
}
}
이게 맞을가요?
전체 9 / 1 페이지
번호
제목
이름

포인트 랭킹


알림 0