Client Timestamp update + Cosmetic NPCs & H Beacon patch + Log rework

Fixed Music command not playing soundtracks at all.
Fixed stylish scripts stucking player NPC interactions in certain cases.
Reviewed client mistimed view on items, quest expirations, BBS threads, etc.
Fixed Homing Beacon skill provoking autoflag in mobs with same objectid in different maps.
Solved DB leak cases with removing pets from inventory.
Reviewed logging throughout the source, aiming to normalize the varied-spaced log content within the facilities.
Fixed a bug that would occur when trying to reaccess Horntail expedition.
This commit is contained in:
ronancpl
2019-01-07 12:10:41 -02:00
parent 35ea13420e
commit b47dd03a3e
110 changed files with 511 additions and 585 deletions

View File

@@ -45,13 +45,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -32,14 +32,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -48,14 +48,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && type > 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -42,13 +42,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -42,13 +42,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -45,13 +45,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -8,8 +8,10 @@ importPackage(Packages.constants);
function start() {
if (cm.getPlayer().isCygnus() && GameConstants.getJobBranch(cm.getJob()) > 2) {
cm.useItem(2022458);
cm.sendOk("Let me cast you my blessings, my Knight. Please protect the world of Maple....");
} else {
cm.sendOk("Don't stop training. Every ounce of your energy is required to protect the world of Maple....");
}
cm.sendOk("Don't stop training. Every ounce of your energy is required to protect the world of Maple....");
cm.dispose();
}

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -31,13 +31,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -46,13 +46,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -29,13 +29,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -32,13 +32,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -51,13 +51,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -51,13 +51,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -24,14 +24,13 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
if (type == 7) {
cm.sendNext("I guess you aren't ready to make the change yet. Let me know when you are!");
}
cm.dispose();
} else {
if (mode == 0 && status >= 0) {
cm.sendNext("I guess you aren't ready to make the change yet. Let me know when you are!");
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -24,13 +24,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status >= 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -13,13 +13,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status >= 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -34,13 +34,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -34,14 +34,13 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
if (type == 7) {
cm.sendNext("I see...take your time, see if you really want it. Let me know when you make up your mind.");
}
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.sendNext("I see...take your time, see if you really want it. Let me know when you make up your mind.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -56,13 +56,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -50,15 +50,14 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status == 0)
cm.dispose();
if (mode == 1)
status++;
else
status--;
if (status == 0)
cm.sendSimple("Hi, there~! I'm Dr. Lenu, in charge of the cosmetic lenses here at the Henesys Plastic Surgery Shop! With #b#t5152010##k or #b#t5152013##k, you can let us take care of the rest and have the kind of beautiful look you've always craved~! Remember, the first thing everyone notices about you is the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152010##t5152010##l\r\n#L2#Cosmetic Lenses: #i5152013##t5152013##l\r\n#L3#One-time Cosmetic Lenses: #i5152103# (any color)#l");
else if (status == 1) {

View File

@@ -50,13 +50,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -50,13 +50,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -50,13 +50,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -46,12 +46,12 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
if (type == 7) {
cm.sendNext("Ok, I'll give you a minute.");
}
cm.dispose();
} else if (mode == 0) {
cm.sendNext("Ok, I'll give you a minute.");
cm.dispose();
return;
}
status++;
if (status == 1) {

View File

@@ -42,13 +42,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -49,13 +49,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -44,13 +44,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,13 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -20,7 +20,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Miranda
NLC Skin Change.
NLC Skin Change.
*/
var status = 0;
var price = 1000000;
@@ -31,13 +31,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -42,13 +42,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -42,13 +42,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1) {
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,14 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status >= 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -43,14 +43,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode == -1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status >= 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else

View File

@@ -32,13 +32,9 @@ function start() {
}
function action(mode, type, selection) {
if (mode < 1)
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
cm.dispose();
else {
if (mode == 0 && status >= 0) {
cm.dispose();
return;
}
if (mode == 1)
status++;
else