Maker-oriented commit
Implemented the multiple features of the Maker skill (equip disassembly, leftover merging into monster crystal and item crafting). Updated the DB with the Maker data featured on the WZ. Added a new table for the strenghtening reagents gain data (compiled with the MapleSkillMakerReagentIndexer). Fixed quests that improves the Maker skill level and some other Maker-related quests.
This commit is contained in:
@@ -3,9 +3,13 @@ var map = 910060000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
status++;
|
||||
} else {
|
||||
if (status <= 1) {
|
||||
cm.dispose();
|
||||
@@ -14,10 +18,17 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if (cm.isQuestStarted(22515) || cm.isQuestStarted(22516) || cm.isQuestStarted(22517) || cm.isQuestStarted(22518)) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
|
||||
cm.sendYesNo("Would you like to go in the special Spore Training Center?");
|
||||
status = 1;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
@@ -34,7 +45,7 @@ function action(mode, type, selection) {
|
||||
cm.dispose();
|
||||
}
|
||||
} else if (status == 2) {
|
||||
cm.warp(910060100,0);
|
||||
cm.dispose();
|
||||
cm.warp(910060100,0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,10 @@ var map = 910060000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
@@ -14,10 +18,17 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if (cm.isQuestStarted(22515) || cm.isQuestStarted(22516) || cm.isQuestStarted(22517) || cm.isQuestStarted(22518)) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
|
||||
cm.sendYesNo("Would you like to go in the special Spore Training Center?");
|
||||
status = 1;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
|
||||
43
scripts/npc/1022104.js
Normal file
43
scripts/npc/1022104.js
Normal file
@@ -0,0 +1,43 @@
|
||||
var status = -1;
|
||||
var map = 910220000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
if (status <= 1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
}
|
||||
cm.sendSimple(selStr);
|
||||
} else if (status == 1) {
|
||||
if (selection < 0 || selection >= num) {
|
||||
cm.dispose();
|
||||
} else if (cm.getPlayerCount(map + selection) >= maxp) {
|
||||
cm.sendNext("This training center is full.");
|
||||
status = -1;
|
||||
} else {
|
||||
cm.warp(map + selection, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,10 @@ var map = 910220000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
@@ -14,6 +18,12 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
|
||||
43
scripts/npc/1032113.js
Normal file
43
scripts/npc/1032113.js
Normal file
@@ -0,0 +1,43 @@
|
||||
var status = -1;
|
||||
var map = 910120000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
if (status <= 1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
}
|
||||
cm.sendSimple(selStr);
|
||||
} else if (status == 1) {
|
||||
if (selection < 0 || selection >= num) {
|
||||
cm.dispose();
|
||||
} else if (cm.getPlayerCount(map + selection) >= maxp) {
|
||||
cm.sendNext("This training center is full.");
|
||||
status = -1;
|
||||
} else {
|
||||
cm.warp(map + selection, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,10 @@ var map = 910120000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
@@ -14,6 +18,12 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
|
||||
43
scripts/npc/1052113.js
Normal file
43
scripts/npc/1052113.js
Normal file
@@ -0,0 +1,43 @@
|
||||
var status = -1;
|
||||
var map = 910310000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
if (status <= 1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
}
|
||||
cm.sendSimple(selStr);
|
||||
} else if (status == 1) {
|
||||
if (selection < 0 || selection >= num) {
|
||||
cm.dispose();
|
||||
} else if (cm.getPlayerCount(map + selection) >= maxp) {
|
||||
cm.sendNext("This training center is full.");
|
||||
status = -1;
|
||||
} else {
|
||||
cm.warp(map + selection, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
43
scripts/npc/1052114.js
Normal file
43
scripts/npc/1052114.js
Normal file
@@ -0,0 +1,43 @@
|
||||
var status = -1;
|
||||
var map = 910310000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
if (status <= 1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
}
|
||||
cm.sendSimple(selStr);
|
||||
} else if (status == 1) {
|
||||
if (selection < 0 || selection >= num) {
|
||||
cm.dispose();
|
||||
} else if (cm.getPlayerCount(map + selection) >= maxp) {
|
||||
cm.sendNext("This training center is full.");
|
||||
status = -1;
|
||||
} else {
|
||||
cm.warp(map + selection, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,10 @@ var map = 912030000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
@@ -14,6 +18,12 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
|
||||
@@ -3,6 +3,10 @@ var map = 912030000;
|
||||
var num = 5;
|
||||
var maxp = 5;
|
||||
|
||||
function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
@@ -14,6 +18,12 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(cm.getLevel() >= 20) {
|
||||
cm.sendOk("This training ground is available only for those under level 20.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
var selStr = "Would you like to go into the Training Center?";
|
||||
for (var i = 0; i < num; i++) {
|
||||
selStr += "\r\n#b#L" + i + "#Training Center " + i + " (" + cm.getPlayerCount(map + i) + "/" + maxp + ")#l#k";
|
||||
|
||||
Reference in New Issue
Block a user