Files
sweetgum-server/scripts/npc/1061018.js
ronancpl bbd2debc08 Reactor drops & Looting & Mob HP overhaul + TreasurePQ
Modified coupon rates buff icon to not show up as expirable.
Reactor drops now also drops quest items at the border of the dropped items.
Added themed drop data for the Cake boss.
Reworked the Balrog expedition.
Added quest script for the Assassinate skill.
Fixed looting system blocking the killer's party from retrieving a loot until the FFA timeout.
Fixed a deadlock with the MapleMap class.
Refactored damage/heal contabilization on mobs.
Fixed issues with HT and status-based damage, providing weird issues with mob HP.
New PQ: TreasurePQ, for level 140+.
2018-03-05 21:23:50 -03:00

40 lines
1.3 KiB
JavaScript

var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if(status == 0){
if(cm.getEventInstance().isEventCleared()) {
cm.sendOk("Wow! You defeated the balrog.");
} else if(cm.getPlayer().getMap().getCharacters().size() > 1) {
cm.sendYesNo("Are you really going to leave this battle and leave your fellow travelers to die?");
} else {
cm.sendYesNo("If you're a coward, you will leave.");
}
} else if(status == 1){
if(cm.getEventInstance().isEventCleared()) {
cm.warp(cm.getMapId() == 105100300 ? 105100301 : 105100401);
} else {
cm.warp(105100100);
}
cm.dispose();
}
}
}