Savior Commit

Fixed some bugs regarding dojo, updated drop data, minor tweaks on
Mystic Doors, added expeditions for Showa Manor, Zakum and Pink Bean,
smart search for item slots on quest/npc rewarding system, attempt on
boss HPbar to focus on player's current target, quests with selectable
rewards now hands the item correctly, after the first PQ instance next
ones are loaded more smoothly.
This commit is contained in:
ronancpl
2017-08-04 00:04:46 -03:00
parent c09bc02c85
commit 0a2e382c3b
968 changed files with 25555 additions and 7362 deletions

View File

@@ -4,13 +4,50 @@
Description: Pink Bean
*/
var status;
function start() {
cm.sendYesNo("Do you want to get out now?");
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
cm.warp(270050000, 0);
if (mode == -1)
cm.dispose();
else {
if (mode == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
var eim = cm.getEventInstance();
if(!eim.isEventCleared()) {
if (status == 0) {
cm.sendYesNo("Do you want to get out now?");
}
else if (status == 1) {
cm.warp(270050000, 0);
cm.dispose();
}
} else {
if (status == 0) {
cm.sendYesNo("Pink Bean has been defeated! You guys sure are true heroes of this land! In no time, Temple of Time will shine again as bright as ever, all thanks to your efforts! Hooray to our heroes!! Are you ready to go now?");
}
else if (status == 1) {
if(eim.giveEventReward(cm.getPlayer(), 1)) {
cm.warp(270050000);
}
else {
cm.sendOk("You cannot receive an event prize without having an empty room in your EQUIP, USE, SET-UP or ETC inventory.");
}
cm.dispose();
}
}
}
cm.dispose();
}