Reviewed Monster Magnet skill effect on mobs, now properly showing up to other players. Reworked concurrency protection on login handler, now properly synchronizing requests for the same accountId. Reviewed an expedition issue with attempting to send packets on loggedoff players. Expeditions no longer holds a character object list of its own, rather finding players through their id on the world storage. Added stat requirement definition as first message on 1st job NPCs. Fixed an issue with area triggered NPC conversations not getting properly disposed. Reviewed "launch.bat", internally referencing Java7 engine. Assuming it has been installed in the default directory on the system, it's no longer necessary to set precedence on PATH for it. Fixed need for "reapproval from the 3rd job instructors" to attempt Zakum once more. Reviewed goto command. Non-GM's no longer has access to area maps, only towns. Implemented a new server flag for enforcing base rates (server rate: 1x) on players level 10 or lower. Fixed player guild tooltips not being properly marshalled to others on the map, at the event of several guild actions. Reviewed event system allowing creation of same-name events, potentially leading to null EIM problems. Refactored some locks on MapleCharacter, potentially solving a deadlock case within expiring/forfeiting quest methods. Implemented a major overhaul on mob aggro system, now updating player aggro in real-time based on their latest DPS. Properly refactored and encapsulated aggro mechanics. Fixed NPE on disposing events with alive mobs. Added server-side birthday check handling when opening player shops or merchants having cash items in store. Fixed player shop tooltip not finishing properly when shop owner closes store with visitors still in there. Fixed forceChangeMap method not warping players to the designated event map (rather sending them to the starting event map). Reviewed "summon" command, now using forceChangeMap, also changing channels if needed. Reworked HeavenMS autoassigner: STR-based classes now ups a bit more DEX than before, since its a vital attribute for accuracy on their actions. Added meso ceil check on player transactions. Trades now gets suspended if the max amount is reached. Implemented server-side item limit check on player shops and merchants. Fixed an exploit with merchants, on where players would be able to save the selling item on DB before taking from inventory.
54 lines
2.3 KiB
JavaScript
54 lines
2.3 KiB
JavaScript
/*
|
|
* Cygnus 1st Job advancement - Blaze Wizard
|
|
*/
|
|
|
|
importPackage(Packages.client);
|
|
|
|
var status = -1;
|
|
var jobType = 2;
|
|
|
|
function end(mode, type, selection) {
|
|
if (mode == 0) {
|
|
if (status == 0) {
|
|
qm.sendNext("This is an important decision to make.");
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
status--;
|
|
} else {
|
|
status++;
|
|
}
|
|
if (status == 0) {
|
|
qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Blaze Wizard?");
|
|
} else if (status == 1) {
|
|
if(!qm.canGetFirstJob(jobType)) {
|
|
qm.sendOk("Train a bit more until you reach #blevel 10, " + qm.getFirstJobStatRequirement(jobType) + "#k and I can show you the way of the #rBlaze Wizard#k.");
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if (!(qm.canHoldAll([1372043, 1142066]))) {
|
|
qm.sendOk("Make some room in your inventory and talk back to me.");
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
qm.sendNext("I have just molded your body to make it perfect for a Blaze Wizard. If you wish to become more powerful, use Stat Window (S) to raise the appropriate stats. If you aren't sure what to raise, just click on #bAuto#k.");
|
|
if (qm.getPlayer().getJob().getId() != 1200) {
|
|
qm.gainItem(1372043, 1);
|
|
qm.gainItem(1142066, 1);
|
|
qm.changeJob(MapleJob.BLAZEWIZARD1);
|
|
qm.getPlayer().resetStats();
|
|
}
|
|
qm.forceCompleteQuest();
|
|
} else if (status == 2) {
|
|
qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry.");
|
|
} else if (status == 3) {
|
|
qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first.");
|
|
} else if (status == 4) {
|
|
qm.sendNextPrev("Unlike your time as a Nobless, once you become the Blaze Wizard, you will lost a portion of your EXP when you run out of HP, okay?");
|
|
} else if (status == 5) {
|
|
qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate.");
|
|
qm.dispose();
|
|
}
|
|
} |