| 
 | 
 
指定傳送符 
使用方法: 雙擊道具,然後選擇遊戲屏幕你想要傳送的坐標點.執行傳送 
加入 
物品資料表 classname 支持 MIETeleteTargetLoc 導入后即可. 
MIETeleteTargetLoc.java 
物品資料表 use_type 字段為 spell_long (否則無法使用) 
 
 
直接寫在 C_ItemUse.java 
-    if(itemId == 11){ // 物品ID,
 -                                 int locX = this.readH(); // X坐标
 -                                 int locY = this.readH(); // Y坐标
 -                                 if(pc.isGm()){ // GM查看坐標
 -                                         // 這裡注意,如果 locX,locY的值無法獲取,則此項功能無法實現
 -                                         pc.sendPackets(new S_SystemMessage("目標點("+locX + "," + locY + ")"));
 -                                 }
 -                                 if (pc.getMap().isInMap(locX, locY)) { // 是否在地图指定的可用位置。
 -                                         final L1Location loc = new L1Location(locX, locY, pc.getMapId());
 -                                         L1Teleport.teleport(pc, loc, pc.getHeading(), true);
 -                                 }
 -                         }
  
  
[color=rgb(15, 167, 255) !important]複製代碼 
[color=rgb(15, 167, 255) !important] 
 
 
 |   
 
 
 
 |