Improved Alliance invitations now using "invite popups" just like buddy, party and guild invites. Pet autopot now properly uses up pots from the inventory, fetching from other inventory slots when one place has been completely used up but the "stop criteria" hasn't been fulfilled yet. Pet autopot now properly detects pots with healing factor defined by the character's pool. Fixed old exploit with mineral/jewel crafters. Patched Doorway's questlines.
53 lines
1.5 KiB
JavaScript
53 lines
1.5 KiB
JavaScript
/*
|
|
NPC Name: The Forgotten Temple Manager
|
|
Map(s): Deep in the Shrine - Twilight of the gods
|
|
Description: Pink Bean
|
|
*/
|
|
|
|
var status;
|
|
|
|
function start() {
|
|
status = -1;
|
|
action(1, 0, 0);
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
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 and ETC inventory.");
|
|
}
|
|
|
|
cm.dispose();
|
|
}
|
|
}
|
|
}
|
|
} |