2013年6月1日 星期六

【Java教學】衝裝公告設定

C_ItemUSe.java
搜尋:
if (newEnchantLvl > safe_enchant) {
client.getActiveChar().getInventory()
           .saveItem(item, L1PcInventory.COL_ENCHANTLVL);
       }


下方新增:
if ((newEnchantLvl - safe_enchant)>=2){//衝裝公告 過2開始
        name = pc.getName();
String next = "+";
BroadCastToAll(next + "【" + item.getEnchantLevel() + "】");

沒有留言:

張貼留言