function start() {
if (cm.getBossLog("挑战副本4") > 11) {
cm.sendOk("每天挑战12次 需要200级~");
cm.dispose();
} else if (cm.getMeso() <= 1) {
cm.sendOk("金币不足1个。");
cm.dispose();
} else if (!cm.haveItem(5064300,1)) {
cm.sendOk("没有足够的飞升次数。需要1次");
cm.dispose();
} else if (!cm.isLeader()) { // Not Party Leader
cm.sendOk("请让你的队长和我说话~");
cm.dispose();
} else if (cm.getLevel() < 200) { // Not Party Leader
cm.sendOk("每天挑战12次 需要200级~");
cm.dispose();
} else if (cm.getPlayerCount(209000002) > 0 && cm.getBossLog('挑战副本4') < 11|| cm.getPlayerCount(209000002) > 0) {
cm.sendNext("#r当前副本有人正在挑战,稍后再试!");
cm.dispose();
} else {
var party = cm.getPlayer().getParty().getMembers();
var it = party.iterator();
var noOkList = [];
while (it.hasNext()) {
var cPlayer = it.next();
var cc = cm.getPlayer().getMap().getCharacterById(cPlayer.getId());
if(cc.getBossLog("挑战副本4") > 11){
noOkList.push(cc.getName());
}
}
if (noOkList.length > 0) {
var say = "";
say += "#b队伍中,下列玩家已无可挑战次数:#r\r\n";
for(var i = 0;i<noOkList.length;i++){
say += noOkList[i]+"\r\n";
}
cm.sendOk(say);
cm.dispose();
return;
}
action(1, 0, 0);
}
}
function action(mode, type, selection) {
var em = cm.getEventManager("huodong1");
if (em == null) {
cm.sendOk("发生未知错误,请稍后再试....");
} else {
var prop = em.getProperty("state");
if (cm.getMeso() > 0) {
em.startInstance(cm.getParty(), cm.getMap());
cm.刷新状态();
cm.gainMeso(-0);
cm.setBossLog("挑战副本4");
Packages.handling.world.World.Broadcast.broadcastMessage(Packages.tools.MaplePacketCreator.serverNotice(12, cm.getClient().getChannel(), "进阶BOSS" + " : " + "恭喜『" + cm.getChar().getName() + "』带领他的队伍挑战都纳斯,伟大的勇士,祝您好运!"));
该用户从未签到
新人上路
function start() {
if (cm.getBossLog("挑战副本4") > 11) {
cm.sendOk("每天挑战12次 需要200级~");
cm.dispose();
} else if (cm.getMeso() <= 1) {
cm.sendOk("金币不足1个。");
cm.dispose();
} else if (!cm.haveItem(5064300,1)) {
cm.sendOk("没有足够的飞升次数。需要1次");
cm.dispose();
} else if (!cm.isLeader()) { // Not Party Leader
cm.sendOk("请让你的队长和我说话~");
cm.dispose();
} else if (cm.getLevel() < 200) { // Not Party Leader
cm.sendOk("每天挑战12次 需要200级~");
cm.dispose();
} else if (cm.getPlayerCount(209000002) > 0 && cm.getBossLog('挑战副本4') < 11|| cm.getPlayerCount(209000002) > 0) {
cm.sendNext("#r当前副本有人正在挑战,稍后再试!");
cm.dispose();
} else {
var party = cm.getPlayer().getParty().getMembers();
var it = party.iterator();
var noOkList = [];
while (it.hasNext()) {
var cPlayer = it.next();
var cc = cm.getPlayer().getMap().getCharacterById(cPlayer.getId());
if(cc.getBossLog("挑战副本4") > 11){
noOkList.push(cc.getName());
}
}
if (noOkList.length > 0) {
var say = "";
say += "#b队伍中,下列玩家已无可挑战次数:#r\r\n";
for(var i = 0;i<noOkList.length;i++){
say += noOkList[i]+"\r\n";
}
cm.sendOk(say);
cm.dispose();
return;
}
action(1, 0, 0);
}
}
function action(mode, type, selection) {
var em = cm.getEventManager("huodong1");
if (em == null) {
cm.sendOk("发生未知错误,请稍后再试....");
} else {
var prop = em.getProperty("state");
if (cm.getMeso() > 0) {
em.startInstance(cm.getParty(), cm.getMap());
cm.刷新状态();
cm.gainMeso(-0);
cm.setBossLog("挑战副本4");
Packages.handling.world.World.Broadcast.broadcastMessage(Packages.tools.MaplePacketCreator.serverNotice(12, cm.getClient().getChannel(), "进阶BOSS" + " : " + "恭喜『" + cm.getChar().getName() + "』带领他的队伍挑战都纳斯,伟大的勇士,祝您好运!"));
cm.dispose();
} else {
cm.sendSimple("其他队伍已经在里面了,请尝试换频道或者等其他队伍完成。");
cm.dispose();
}
}
}
大佬们,在哪增加命令,使组队情况下,让队长跟队友同时减少挑战次数
使用道具 举报
该用户从未签到
新人上路
使用道具 举报