殺戮kill 發表於 2020-2-25 12:23

穿雲箭 道具核心修改(集體血盟傳送教學)

本帖最後由 殺戮kill 於 2020-2-25 12:24 編輯


參考版本境界3.81

穿雲見道具編號: 350132(可自行修改未使用編碼)
使用後消耗道具編號: 44070(可自行修改未使用編碼)



開啟Navicat for MySQL 道具新增穿雲見(insert sql 如下)
INSERT INTO `etcitem` VALUES (350132, '穿雲箭', 'teleport.Scroll_Mass_Teleport_P', '穿雲箭', 'scroll', 'ntele', 'paper', 630, 6187, 22, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 4, 1500, 0, 0, 0, 0);

核心內新增(下方有該java載點)com.lineage.data.item_etcitem.teleport.Scroll_Mass_Teleport_P.java
不可使用道具地圖編號如下 可於Scroll_Mass_Teleport_P.java 自行增修.



**** Hidden Message *****
搜尋關鍵字 randomTeleport於 上方插入 如下java

/**
         * 穿雲見
         * 20190718
         * @param pc
         * @param effectable
         */
      public static void teleportToTargetFront_P(final L1Character cha,
                        final L1Character target, final int distance , final boolean chkitem) {
                int locX = target.getX();
                int locY = target.getY();
                final int heading = target.getHeading();
                final L1Map map = target.getMap();
                final short mapId = target.getMapId();

                if(chkitem) {
                        // ターゲットの向きからテレポート先の座標を決める。
                        switch (heading) {
                        case 1:
                              locX += distance;
                              locY -= distance;
                              break;
      
                        case 2:
                              locX += distance;
                              break;
      
                        case 3:
                              locX += distance;
                              locY += distance;
                              break;
      
                        case 4:
                              locY += distance;
                              break;
      
                        case 5:
                              locX -= distance;
                              locY += distance;
                              break;
      
                        case 6:
                              locX -= distance;
                              break;
      
                        case 7:
                              locX -= distance;
                              locY -= distance;
                              break;
      
                        case 0:
                              locY -= distance;
                              break;
      
                        default:
                              break;
      
                        }
                        if (map.isPassable(locX, locY, null)) {
                              if (cha instanceof L1PcInstance) {
                                        final L1PcInstance objpc = (L1PcInstance)cha;
                                        objpc.setTeleportX(locX);
                                        objpc.setTeleportY(locY);
                                        objpc.setTeleportMapId((short)mapId);
                                        World.get().broadcastPacketToAll_sing(new S_GreenMessage("\\f=【\\f3"+target.getName()+"\\f=】\\f>向你發送一隻穿雲箭,千鈞萬馬來相見"),objpc);
                                        objpc.sendPackets(new S_Message_YN(1415,target.getName()));
                              } else if (cha instanceof L1NpcInstance) {
                                        ((L1NpcInstance) cha).teleport(locX, locY, cha.getHeading());
                              }
                        }
                }else {
                        if (cha instanceof L1PcInstance) {
                              final L1PcInstance objpc = (L1PcInstance)cha;
                              objpc.sendPackets(new S_ServerMessage(166, "50商城幣不足"));
                        }
                }
      }

com.lineage.server.model.skill. L1SkillId
搜尋超級加速 下方新增
                /**
               * 穿雲見
               * 20190718
               */
public static final int MASS_TELEPORT_PC = 7856;

如有問題請於下方留言 轉發請註明出處

謝謝



kof750421 發表於 2020-2-25 13:38

3Q            

socrazy1016 發表於 2020-2-25 16:45

讚喔 這個必需學起來

野性覺醒 發表於 2020-2-26 18:04

學習一下
感謝分享

0989071290 發表於 2020-2-27 02:24

學習看看唷

sqe99151 發表於 2020-2-28 10:36

       
學習一下
感謝分享

19870922 發表於 2020-2-28 18:39

感謝分享

Sumsum 發表於 2020-2-28 20:45

謝謝分享

willjun 發表於 2020-3-9 17:23

感谢大佬的分享~~~~~

javacgame 發表於 2020-3-11 16:27

這個改了會這樣都沒說沒解釋沒圖片

kao0820 發表於 2020-3-19 23:55

感谢大佬的分享

kao0820 發表於 2020-3-22 10:47

請問~我下載套件覆蓋原檔~道具也新增了..消耗道具我改成金幣
超級加速 下方也新增
/*** 穿雲見* 20190718*/
public static final int MASS_TELEPORT_PC = 7856;
為什麼都沒反應?
哪設定錯了

javacgame 發表於 2020-4-12 18:05

1500金幣好貴~~~

ADougen 發表於 2020-4-13 22:33

大神 膜拜你!大神 膜拜你!

iamrgb 發表於 2020-4-14 03:42

感謝分享 thx

blackjack 發表於 2020-4-14 07:46

感謝您的分享^_^

cooljc 發表於 2020-4-17 08:35

學習一下

cch448 發表於 2020-4-17 14:31

好貴,,可以用在2.70c版的嗎?

ADougen 發表於 2020-4-27 22:34

能不能便宜点啊

nvidiati422 發表於 2020-4-28 00:03

感謝分享
頁: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 穿雲箭 道具核心修改(集體血盟傳送教學)