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:
@@ -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