(從etcitem資料庫設定傳送座標和地圖)
修改l1j\server\server\clientpackets\C_ItemUSe.java 更動etcitem資料庫 修改C_ItemUSe.java 尋找
CODE:
pc.sendPackets(new S_ServerMessage(822));
在他下方加入以下程式碼
CODE:
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 = 地圖編號 自行加入座標進去就可以了 以下是範例
CODE:
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
文章出處 浪漫物語網路社區 |
沒有留言:
張貼留言