Fixed Legendary Spirit UI getting stuck when trying to apply scrolls in equipments without upgrade slots available. Revised map leasing. Players no longer lose ownership when changing maps. Players are allowed to lease one map each time. Revised expeditions warping players out as soon as the leader leaves the event or the number of players inside gets to be less than the minimum required to enter. Fixed start/complete quest commands not acting properly for some quests. Refactored quest loadouts unnecessarily reloading MapleData. Implemented support for daily boss limit entry, usable on expeditions. Revised potential exploit cases within chair, face expression, quest action, summon damage and mob damage mob handlers. Adjusted displayed date in Duey. Value displayed now should be consistent with the expected expiration time. Refactored damage for friendly mobs getting handled inside packet structure. Implemented support for Quick Delivery from Duey. Fixed Horntail specifically not dropping loots after recent updates. Refactored commands system. All commands are instanced at boot time instead of at every call. Fixed usage of Maker skill not sending MAKER_RESULT packet to players. This automatically reenables the actions button (such as create) in Maker UI. Adjusted minidungeons, now using time limits specified in their respective recipes. Reviewed the "timeLimit" property utilized by maps, which was poised to work on 2 different concepts altogether. Fixed Gaga space event, should be functional now. Added RPS minigame, resources implemented by Arnah. Fixed damage taken from mob auto-destruction not working properly.
77 lines
5.3 KiB
JavaScript
77 lines
5.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) {
|
|
if (cm.getPlayer().getMapId() == 922240200) {
|
|
cm.sendOk("That's a shame, come back when your ready.");
|
|
}
|
|
|
|
cm.dispose();
|
|
return;
|
|
}
|
|
if (mode == 1)
|
|
status++;
|
|
else
|
|
status--;
|
|
|
|
if(status == 0) {
|
|
if (cm.getMapId() == 922240200) {
|
|
cm.sendSimple("Did you have something to say...? #b\b\r\n#L0#I want to rescue Gaga.#l\r\n"); //#L1#I want to go to the Space Mine.#l
|
|
} else if (cm.getMapId() >= 922240000 && cm.getMapId() <= 922240019) {
|
|
cm.sendYesNo("Don't worry if you fail. You'll have 3 chances. Do you still want to give up?");
|
|
} else if (cm.getMapId() >= 922240100 && cm.getMapId() <= 922240119) {
|
|
var text = "You went through so much trouble to rescue Gaga, but it looks like we're back to square one. ";
|
|
var rgaga = cm.getPlayer().getEvents().get("rescueGaga");
|
|
if (rgaga.getCompleted() > 10) {
|
|
text += "Please don't give up until Gaga is rescued. To show you my appreciation for what you've accomplished thus far, I've given you a Spaceship. It's rather worn out, but it should still be operational. Check your #bSkill Window#k.";
|
|
rgaga.giveSkill(cm.getPlayer());
|
|
} else
|
|
text += "Let's go back now.";
|
|
|
|
cm.sendNext(text);
|
|
}
|
|
} else {
|
|
if (cm.getPlayer().getMapId() == 922240200) {
|
|
if (status == 1) {
|
|
if(selection == 0) {
|
|
selected = 1;
|
|
cm.sendNext("Welcome! I heard what happened from Baby Moon Bunny I'm glad you came since I was Planning on requesting some help. Gaga is a friend of mine who has helped me before and often stops by to say hello. Unfortunately, he was kidnapped by aliens.");
|
|
} else {
|
|
selected = 2;
|
|
cm.sendYesNo("At the Space Mine, you can find special ores called #bKrypto Crystals#k that contains the mysterious power of space. #bKrypto Crystals#l are usually emerald in color, but will turn brown if hit with the Spaceship's #bSpace Beam#k. Remember, in order to thwart this alien conspracy, #b10 Brown Krypto Crystal's and 10 Emerald Krypto Crystal's are needed. But since even #b1 Krypto Crystal#k can be of help, brign me as many as possible. Oh, and one more thing! The Space Mines are protected by the Space Mateons. They are extemely strong due to the power of the #Krypto Crystals#k, so don't try to defeat them. Simply concentrate on quickly collecting the crystals.");
|
|
}
|
|
} else if (status == 2) {
|
|
if(selected == 1) {
|
|
cm.sendYesNo("If we just leave Gaga with the aliens, something terrible will happen to him! I'll let you borrow a spaceship that the Moon Bunnies use for traveling so that you can rescue Gaga.#b Although he might appear a bit indecisive, slow, and immature at times#k, he's really a nice young man. Do you want to go rescue him now?");
|
|
} else if(selected == 2) {
|
|
cm.sendOk("Not coded yet, f4.");
|
|
cm.dispose();
|
|
}
|
|
} else if (status == 3) {
|
|
var em = cm.getEventManager("RescueGaga");
|
|
if (em == null) {
|
|
cm.sendOk("This event is currently unavailable.");
|
|
} else if (!em.startInstance(cm.getPlayer())) {
|
|
cm.sendOk("There is currently someone in this map, come back later.");
|
|
}
|
|
|
|
cm.dispose();
|
|
}
|
|
} else if (cm.getPlayer().getMapId() >= 922240000 && cm.getPlayer().getMapId() <= 922240019) {
|
|
cm.warp(922240200, 0);
|
|
cm.dispose();
|
|
} else if (cm.getPlayer().getMapId() >= 922240100 && cm.getPlayer().getMapId() <= 922240119) {
|
|
cm.warp(922240200, 0);
|
|
cm.dispose();
|
|
}
|
|
}
|
|
}
|
|
} |