[펌] 모든 몹에서 특정템 드랍
L1MonsterInstance.java
int newHp = getCurrentHp() - damage; // 검색
if (newHp <= 0 && !isDead()) {
Random random = new Random(); // 추가
int chance1 = random.nextInt(100) + 1;
int chance2 = random.nextInt(100) + 1;
if(Config.RATE_DREAM > chance1){
getInventory().storeItem(아이템번호, 갯수); // (00000, 1) 이런식으로해주시면 00000아이템을 한개드랍하겠죠?~
}
if(Config.RATE_DREAM > chance2){
getInventory().storeItem(아이템번호, 갯수); // 위와 마찬가지
}
Config.java
public static int RATE_BUGRACE_TIME; //버경
public static int RATE_DREAM;
...
RATE_SHOP_PURCHASING_PRICE = Double.parseDouble(rateSettings
.getProperty("RateShopPurchasingPrice", "1.0"));
RATE_DREAM = Integer.parseInt(rateSettings
.getProperty("Ratedream", "1"));
config 폴더안에 rates.properties 파일에 추가
#이벤트아이템드랍률 //#<<샵입니다~(쉬프트+3) 이걸꼭해야되는지는모르겟는데 해야되는거같더라구요 저같은경우엔 --;
Ratedream = 10 //확률 지정
옆동네 오리하루콘님 자료

안약 님의 최근 댓글
천화님 두 명이서만 로봇켜고 놀려고 하는데 그래도 i5에 램8GB 정도로 사양 되어야 할까요? 2016 11.13