本帖最後由 chenhui540 於 2023-1-31 09:22 編輯  
 
 
 
 
 
 
 
 
 
 
 
/* 
        名字:        隱密之地 
        地圖:        雅典娜禁地<向上通道> 
        描述:        920010700 
*/ 
 
function enter(pi) { 
        x = pi.getPortal().getName(); 
        y = pi.getPortal().getId() + 4; 
        eim = pi.getPlayer().getEventInstance(); 
        for (var i = 1; i < 9; i++) { 
        if (eim.getProperty(i + "st") == null) { 
                eim.setProperty((i + "st"), (("rp0"+ i) + (Math.floor(Math.random() * 4) + 1))); 
                } 
        if (eim.getProperty(i + "st") == x) { 
                pi.getPlayer().changeMap(pi.getPlayer().getMap().getId(), eim.getProperty("8st") == x ? 2 : y); 
                return true; 
                } 
                } 
                pi.getPlayer().changeMap(pi.getPlayer().getMap().getId(), x.substring(2, 5) > 54 ? 1 : 5); 
                return true; 
} 
 
 
/* 
        名字:        隱藏地圖 
        地圖:        研究室103號 
        描述:        926110303 
*/ 
 
function enter(pi) { 
        x = pi.getPortal().getName(); 
        y = pi.getPortal().getId() + 4; 
        eim = pi.getPlayer().getEventInstance(); 
        for (var i = 0; i < 5; i++) { 
        if (eim.getProperty(i + "st") == null) { 
                eim.setProperty((i + "st"), (("pt"+ i) + Math.floor(Math.random() * 4))); 
                } 
        if (eim.getProperty(i + "st") == x) { 
                pi.getPlayer().changeMap(pi.getPlayer().getMap().getId(), eim.getProperty("4st") == x ? 1 : y); 
                return true; 
                } 
                } 
                pi.getPlayer().changeMap(pi.getPlayer().getMap().getId(), 2); 
                return true; 
} 
 
 
 
 
/* 
        名字:        隱藏地圖 
        地圖:        遺棄之塔<第3階段> 
        描述:        922010600 
*/ 
 
function enter(pi) { 
        x = pi.getPortal().getName(); 
        y = pi.getPortal().getId() + 3; 
        eim = pi.getPlayer().getEventInstance(); 
        for (var i = 0; i < 10; i++) { 
        if (eim.getProperty(i + "st") == null) { 
                eim.setProperty((i + "st"), (("pt"+ i) + Math.floor(Math.random() * 3))); 
                } 
        if (eim.getProperty(i + "st") == x) { 
                pi.getPlayer().changeMap(pi.getPlayer().getMap().getId(), eim.getProperty("9st") == x ? 2 : y); 
                return true; 
                } 
                } 
                pi.getPlayer().changeMap(pi.getPlayer().getMap().getId(), 0); 
                return true; 
} 
 
 
/* 
        名字:        毒霧森林 
        地圖:        濃霧森林 
        描述:        930000300 
*/ 
 
function enter(pi) { 
        eim = pi.getPlayer().getEventInstance(); 
        if (eim.getProperty("1st") == null) { 
                eim.setProperty("1st", (Math.random() < 0.5) ? "001E" : "001S"); 
                } 
                pi.warp(930000300, eim.getProperty("1st") == pi.getPortal().getName() ? "02st" : "01st"); 
                return true; 
} 
 
注意:不知道是系统语言不支持还是什么问题    脚本里含有 [i] 的符號 的发到论坛上 会消失掉!  
  
 此次腳本 只適用於  改版後的副本事件,如果需要災變前的內容,自己改改就可以了。 
 
 
 
隨機導入傳送平臺腳本.rar
(4.96 KB, 下載次數: 1626)
 |