KNESS 發表於 2017-11-21 17:37

製作開啟寶箱公告化

這個開寶箱公告前提是要有braod公告 DB化
1.打開config.java
2.搜尋public static final boolean DEBUG = false;
3.下面插入
public static boolean I_T_E_M;// 開寶箱寶物公告
4.再來往下搜尋(如果你沒有othersettings 請把所有othersettings替代成altsettings


      try {
      Properties otherSettings = new Properties();
      is = new FileInputStream(new File(OTHER_SETTINGS_CONFIG_FILE));
      otherSettings.load(is);
      is.close();


5.底下插入
      I_T_E_M = Boolean.parseBoolean(otherSettings.getProperty("ITEM",
            "false"));


6.存檔壓入核心


7.打開L1TreasureBox.java


8.搜尋
pc.sendPackets(new S_ServerMessage(403, item.getLogName()));


9.底下插入
[       if (item.getItem().getBroad() == 1 && (Config.I_T_E_M)) {
      L1World.getInstance().broadcastPacketToAll(
            new S_ServerMessage(166, "\\fW恭喜玩家《" + pc.getName()
                  + "》"));
      L1World.getInstance().broadcastPacketToAll(
            new S_ServerMessage(166, "\\fW開出《" + item.getLogName()
                  + "》數量《" + item.getCount() + "》"));
      }


11.儲存加入核心
12.
開啟 othersettings(或altsttings).properties
找地方加入


#======================================
#開到特殊物品公告? True=顯示, False=不顯示.
ITEM = True
#======================================**** Hidden Message *****

jjen0206 發表於 2017-11-21 18:23

感謝大大分享

jlulineage 發表於 2018-4-12 21:14

       感謝大大分享

a8854769 發表於 2019-3-27 20:47

謝謝大大的分享

willjun 發表於 2019-3-29 10:06

一定要看一下,谢谢大佬分享~~~

19870922 發表於 2019-3-29 19:14

感謝分享

SZX3310 發表於 2019-3-30 02:10

感謝大大分享

fiyfish 發表於 2019-3-30 09:16

感謝大大分享

0989071290 發表於 2019-4-1 03:49

這樣開寶箱就夠清楚唷

zoom_sammy77 發表於 2019-4-1 07:34

感謝大大分享,拜讀一下

fiyfish 發表於 2019-4-1 14:29

666666666666666666666666666666

a0982681348 發表於 2019-4-7 00:28

感謝大大無私的分享

a0982681348 發表於 2019-4-9 12:06

感謝大大無私的分享

a0982681348 發表於 2019-4-9 12:07

感謝大大無私的分享

0916073307 發表於 2019-5-17 01:14

這個超好用~~~;P

p366933 發表於 2019-6-6 19:24

感謝分享 學習中


gamegear 發表於 2019-6-8 08:20

謝謝大大,我的私服版本正好有公告訊息,可以拿來參考囉

u0921939345 發表於 2019-6-29 08:46

正在找這個 感謝大大

apple780303 發表於 2019-8-14 20:56

       感謝大大分享

sickl35 發表於 2019-8-14 21:02

謝謝分享
頁: [1] 2 3 4 5 6 7
查看完整版本: 製作開啟寶箱公告化