1.63 sp팩 자동트리플 온오프 질문입니다.
컨텐츠 정보
- 702 조회
- 3 댓글
-
목록
본문
static synchronized public ItemInstance clone(ItemInstance item) {
if (item == null)
item = new ItemTryple();
return item;
}
@Override
public void toClick(Character cha, ClientBasePacket cbp) {
if (cha.getClassType() == 0x02 && cha.getLevel() >= 45) {
if (cha.getInventory() != null) {
PcInstance pc = (PcInstance) cha;
if (pc.isDead()) {
ChattingController.toChatting(pc, "죽은 상태에선 사용할 수 없습니다.", 20);
return;
} else if (pc.isLock()) {
ChattingController.toChatting(pc, "마비 상태에선 사용할 수 없습니다.", 20);
return;
}
if (pc.getAutoTryple() == false) {
pc.setAutoTryple(true);
ChattingController.toChatting(pc, String.format("[자동 트리플: ON][확률: %d]", Lineage.tryple), 20);
} else {
pc.setAutoTryple(false);
ChattingController.toChatting(pc, String.format("[자동 트리플: OFF]"), 20);
}
}
} else {
ChattingController.toChatting(cha, "45레벨 이상 요정케릭이 사용 가능합니다.");
return;
}
}
}
여기에서 자동트리플온 false를 ture로 바꾸면 될까요?
지금은 자동트리플 아이템 인벤에서 더블클릭하면 사용할수없다고 뜨네요.
포인트 어떻게 거는지 모르겠는데 포인트드릴게요
if (item == null)
item = new ItemTryple();
return item;
}
@Override
public void toClick(Character cha, ClientBasePacket cbp) {
if (cha.getClassType() == 0x02 && cha.getLevel() >= 45) {
if (cha.getInventory() != null) {
PcInstance pc = (PcInstance) cha;
if (pc.isDead()) {
ChattingController.toChatting(pc, "죽은 상태에선 사용할 수 없습니다.", 20);
return;
} else if (pc.isLock()) {
ChattingController.toChatting(pc, "마비 상태에선 사용할 수 없습니다.", 20);
return;
}
if (pc.getAutoTryple() == false) {
pc.setAutoTryple(true);
ChattingController.toChatting(pc, String.format("[자동 트리플: ON][확률: %d]", Lineage.tryple), 20);
} else {
pc.setAutoTryple(false);
ChattingController.toChatting(pc, String.format("[자동 트리플: OFF]"), 20);
}
}
} else {
ChattingController.toChatting(cha, "45레벨 이상 요정케릭이 사용 가능합니다.");
return;
}
}
}
여기에서 자동트리플온 false를 ture로 바꾸면 될까요?
지금은 자동트리플 아이템 인벤에서 더블클릭하면 사용할수없다고 뜨네요.
포인트 어떻게 거는지 모르겠는데 포인트드릴게요
관련자료
댓글 3














