몬스터 처치 시, 캐시 획득
MapleMap.Java
dropFromMonster(drop, monster, instanced);
}
검색
if (Math.floor(Math.random() * 50) <= 1 && monster.getStats().getLevel() >= 0) {
final int rand = ((short) (Math.random() * 500));
chr.modifyCSPoints(3, rand, true);
}
위 코드를 넣어주세요
완성본
dropFromMonster(drop, monster, instanced);
}
if (Math.floor(Math.random() * 50) <= 1 && monster.getStats().getLevel() >= 0) {
final int rand = ((short) (Math.random() * 500));
chr.modifyCSPoints(3, rand, true);
}
}
------------------------------------------------
chr.modifyCSPoints(3, rand, true);
위 코드에 대해서 자세히 설명하자면,
(int type, int quantity, boolean show)
1은 ACash, 2는 mPoints 3은 DonateCash , quantity는 주어질 양이라고 이해하시면 됩니다.
마지막 show 부분은 boolean 이니까 true 또는 false 값이 들어갑니다.
true 값일 경우, 채팅창에 얼마 만큼의 캐시를 얻었다고 출력됩니다.
false 값은 그 반대겠죠. true 값과 달리 출력되지 않습니다.

피카츄염 님의 최근 댓글
ㅋㅋ 2018 05.29 클라 안되는대ㅔ여 2018 02.16 감사합니다 2018 02.12 클라 보내주세요 go_to_r@naver.com 2018 02.09 ㄳ 2018 02.01