Added drop data on missing mobs and EXP gain on several quests around World Tour (Japan). Added a bonus feature for the Showa expedition, accessible when there is no casualties at the time of completion. Added missing shop data at the NPCs in Singapore. Patched quests that should be taking some items but weren't doing that properly. Patched some bosses with boss HP bar not having the "boss" label defined on Mob.wz, rendering some inconsistencies with the bar in-game. Overhauled the 3rd job quiz mechanic, adding missed questions to the pool.
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
var status = 0;
|
|
var summon;
|
|
var nthtext = "bonus";
|
|
|
|
function start() {
|
|
status = -1;
|
|
action(1, 0, 0);
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
if (mode == -1)
|
|
cm.dispose();//ExitChat
|
|
else if (mode == 0)
|
|
cm.dispose();//No
|
|
else{ //Regular Talk
|
|
if (mode == 1)
|
|
status++;
|
|
else
|
|
status--;
|
|
|
|
if(status == 0){
|
|
cm.sendYesNo("Would you like to leave?");
|
|
}else if(status == 1){
|
|
var mapid = cm.getMapId();
|
|
if(mapid == 108010101) cm.getPlayer().changeMap(105040305);
|
|
else if(mapid == 108010201) cm.getPlayer().changeMap(100040106);
|
|
else if(mapid == 108010301) cm.getPlayer().changeMap(105070001);
|
|
else if(mapid == 108010401) cm.getPlayer().changeMap(107000402);
|
|
else if(mapid == 108010501) cm.getPlayer().changeMap(105070200);
|
|
|
|
var em = cm.getEventManager("3rdjob");
|
|
em.getInstance(cm.getPlayer().getName()).unregisterPlayer(cm.getPlayer());
|
|
cm.dispose();
|
|
}
|
|
}
|
|
} |