사이트 로그인
2022.10.06 01:04
@Override
public void toTimer(long time) {
boolean isMent = false;
for (int i = 0; i < Npc_promotion.ment.length; i++) {
if (Npc_promotion.ment[i].length() > 4) {
isMent = true;
break;
}
}
if (mentTime + 1500 < time && isMent) {
mentTime = time + Npc_promotion.ment_delay;
while (true) {
int random = Util.random(0, Npc_promotion.ment.length - 1);
if (random == 1) {
ChattingController.toChatting(this, "멘트 1", Lineage.CHATTING_MODE_NORMAL);
break;
}
if (random == 2 ) {
ChattingController.toChatting(this, "멘트 2", Lineage.CHATTING_MODE_NORMAL);
break;
}
if (random == 3) {
ChattingController.toChatting(this, "멘트 3", Lineage.CHATTING_MODE_NORMAL);
break;
}
if (random > 4) {
ChattingController.toChatting(this, "멘트 4", Lineage.CHATTING_MODE_NORMAL);
break;
}
}
}
}
설명이 조금 붙었어도 좋았을텐데..ㅎㅎ