사이트 로그인
2016.06.29 11:29
L1Drop.java
public class L1Drop {
int _mobId;
int _itemId;
int _min;
int _max;
int _chance;
int _enchantlvl;
public L1Drop(int mobId, int itemId, int min, int max, int chance, int enchantlvl) {
_mobId = mobId;
_itemId = itemId;
_min = min;
_max = max;
_chance = chance;
_enchantlvl = enchantlvl;
}
public int getEnchantlvl() {
return _enchantlvl;
}
DropTable.java
int max = rs.getInt("max");
int chance = rs.getInt("chance");
int enchantlvl = rs.getInt("enchantlvl");
drop = new L1Drop(mobId, itemId, min, max, chance, enchantlvl);
public void setDrop(L1NpcInstance npc, L1Inventory inventory) {
...
int itemId;
int itemCount;
int addCount;
int randomChance;
int enchantlvl;
....
enchantlvl = drop.getEnchantlvl();
item = ItemTable.getInstance().createItem(itemId);
item.setCount(itemCount);
item.setEnchantLevel(enchantlvl);
inventory.storeItem(item);
droplist 테이블
enchantlvl int 10 0 체크해제 Default:0
[출처] droplist 인첸템드랍 추가 (비공개 카페)