1.首先要插件网关开启。
2.首先要服务端控制台开启。
以废弃副本事件 KerningPQ.js 为例子。
指定地图开启DPS。
function setup(difficulty, lobbyId) { // 加载时触发,多参数使用按情形而定
var eim = em.newInstance("Kerning_" + lobbyId);
for (i = 0; i < eventMaps.length; i++) {
var mapObj = eim.getInstanceMap(eventMaps[i]);
mapObj.getPortal("next00").setScriptName("kpq" + i);
mapObj.instanceMapForceRespawn();
}
eim.getInstanceMap(103000804).setDps(true);//开启DPS
var itemSet = [4001007, 4001008];
eim.setExclusiveItems(itemSet);
return eim;
}
|