사이트 로그인
2020.12.11 23:48
//인벤토리 아데나가 19억이 되면 자동으로 1억을 금괴로 환산 지급하기.
ItemInstance aden = getInventory().findAden();
ItemInstance gold = ItemDatabase.newInstance(ItemDatabase.find("금괴"));
if(aden.getCount() >= 1900000000){
// 1억을 차감하여 금괴를 준다.
getInventory().isAden(100000000,true);
if(gold != null){
gold.setCount(1);
super.toGiveItem(null, gold, gold.getCount());
}
ChattingController.toChatting(this, "\\fY아데나 허용치는 19억 입니다. 금괴로 환산됩니다.", 20);
}
어디다가 넣어야 하나요? 2.0인데