Fixed a concurrency issue with registering picked items into the inventory, that would render some of the collected items to not be registered. Adjusted buyback fee, now using a value sensitive to the player level (starts scaling from level 30, caps at 120). Edited MaxHP of the boss Shade, now properly scaled to it's level. Fixed return scroll and summon bags being usable inside BRPQ rest points. Added missing etc drop data for the Extras/Leaders mobs from Zipangu. Implemented pet tameness gain on quests. Fixed a concurrency issue with the pet spawn handler, allowing possible PE exploits. Adjusted drop rates of omok pieces and match cards, now somewhat GMS-like. Shadow Meso now properly dispels mobs wdef/mdef up, as the skill description suggests. Fixed Shadow Meso using up projectiles (it should use only mesos).
48 lines
2.1 KiB
JavaScript
48 lines
2.1 KiB
JavaScript
/**
|
|
Happy - Happy ville
|
|
By Ronan
|
|
**/
|
|
var status = -1;
|
|
function start() {
|
|
action(1, 0, 0);
|
|
}
|
|
function action(mode, type, selection) {
|
|
if (mode == -1) {
|
|
cm.dispose();
|
|
} else {
|
|
if (status == 0 && mode == 0) {
|
|
cm.sendOk("Talk to me again when you want to.");
|
|
cm.dispose();
|
|
}
|
|
if (mode == 1)
|
|
status++;
|
|
else
|
|
status--;
|
|
|
|
if (status == 0) {
|
|
cm.sendSimple("#b<Raid Quest: Happyville>#k\r\nA raid is nothing but many people joining up in an attempt to defeat extremely powerful creatures. Here is no different. Everyone can take part in defeating the spawned creature. What will you do?\r\n#b\r\n#L0#Spawn Kid Snowman.\r\n#L1#Spawn Lost Rudolph.\r\n#L2#Nothing, just chilling.#k");
|
|
} else if(status == 1) {
|
|
if(selection == 0) {
|
|
if(cm.getMap().getMonsters().size() > 1) { //reactor as a monster? wtf
|
|
cm.sendOk("Eliminate all mobs in the area to call Kid Snowman.");
|
|
cm.dispose();
|
|
return;
|
|
}
|
|
|
|
cm.getMap().spawnMonsterOnGroundBelow(9500317, 1700, 80);
|
|
} else if(selection == 1) {
|
|
if(cm.getMap().getMonsters().size() > 6) { //reactor as a monster? wtf
|
|
cm.sendOk("The place is too crowded right now. Eliminate some mobs before trying again.");
|
|
cm.dispose();
|
|
return;
|
|
}
|
|
|
|
cm.getMap().spawnMonsterOnGroundBelow(9500320, 1700, 80);
|
|
} else {
|
|
cm.sendOk("Fine then.");
|
|
}
|
|
|
|
cm.dispose();
|
|
}
|
|
}
|
|
}
|