2014年2月1日 星期六

【Java教學】使用轉生藥水&重生藥水修正為使用後自動回村


(從etcitem資料庫設定傳送座標和地圖)
修改l1j\server\server\clientpackets\C_ItemUSe.java
更動etcitem資料庫
修改C_ItemUSe.java
尋找


pc.sendPackets(new S_ServerMessage(822));

在他下方加入以下程式碼

L1Teleport.teleport(pc, ((L1EtcItem) l1iteminstance.getItem()).get_locx(),
        ((L1EtcItem) l1iteminstance.getItem()).get_locy(),
        ((L1EtcItem) l1iteminstance.getItem()).get_mapid(), 5, true);


到etcitem資料庫找到locx = x座標 locy = y座標 mapid = 地圖編號
自行加入座標進去就可以了
以下是範例


43000 返生藥水 返生藥水 返生藥水 other normal glass 1000 1143 2983 0 1 0 0 0 99 0 33442 32797 4 1 1 0 0 0 0 0 0 1

文章出處 浪漫物語網路社區

沒有留言:

張貼留言