Experimental DB pool + fixed stat overflow on equips
Implemented EXPERIMENTAL DBCP (connection pool), trying to improve concorrent access to DB. Added door portals on Kerning Square. Fixed equipments getting stat overflow when upgrading stats. Fixed expiring pets crashing the client in some cases.
This commit is contained in:
29
scripts/npc/2111025.js
Normal file
29
scripts/npc/2111025.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Control Device
|
||||
*/
|
||||
|
||||
function start() {
|
||||
cm.sendNext ("This control device seems to be monitoring something...");
|
||||
cm.dispose();
|
||||
}
|
||||
29
scripts/npc/2111026.js
Normal file
29
scripts/npc/2111026.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Incomplete Magic Square
|
||||
*/
|
||||
|
||||
function start() {
|
||||
cm.sendNext ("This chalkboard has some hard-founded studies annotated on it...");
|
||||
cm.dispose();
|
||||
}
|
||||
@@ -47,9 +47,9 @@ function action(mode, type, selection) {
|
||||
}
|
||||
} else if (status == 2) {
|
||||
var map = cm.getPlayer().getSavedLocation("WORLDTOUR");
|
||||
if (map == undefined)
|
||||
map = 104000000;
|
||||
cm.warp(map, parseInt(Math.random() * 5));
|
||||
if (map == undefined) map = 104000000;
|
||||
|
||||
cm.warp(map);
|
||||
cm.dispose();
|
||||
}
|
||||
} else {
|
||||
@@ -69,7 +69,7 @@ function action(mode, type, selection) {
|
||||
} else if (status == 4) {
|
||||
cm.gainMeso(-3000);
|
||||
cm.getPlayer().saveLocation("WORLDTOUR");
|
||||
cm.warp(800000000);
|
||||
cm.warp(800000000, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,10 +53,16 @@ function end(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && type > 0) {
|
||||
qm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
|
||||
if (status == 0)
|
||||
qm.sendSimple("Hello, traveler... You have finally come to see me. Have you fulfilled your duties? \r\n #b#L0#What duties? Who are you?#l#k");
|
||||
else if (selection == 0 && status == 1) {
|
||||
@@ -70,7 +76,7 @@ function end(mode, type, selection) {
|
||||
} else if (status == 5) {
|
||||
qm.sendYesNo("Now do you understand? Every action comes with consequences, and pets are no exception. The egg of the snail shall hatch soon.");
|
||||
} else if (status == 6) {
|
||||
qm.gainItem(5000054, 1, false, true, 5 * 60 * 60 * 1000); // rune snail (5hrs)
|
||||
qm.gainItem(5000054, 1, false, true, 5 * 1000); // rune snail (5hrs)
|
||||
|
||||
qm.gainItem(4032086, -1); // Mysterious Egg * -1
|
||||
qm.forceCompleteQuest();
|
||||
|
||||
Reference in New Issue
Block a user