Quick crafters update

Minor update on mineral/jewel crafters' code.
This commit is contained in:
ronancpl
2018-01-22 15:00:05 -02:00
parent f74dfbb46a
commit 2d932a9e12
12 changed files with 12 additions and 14 deletions

View File

@@ -2,8 +2,6 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="2"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Nexon/MapleSolaxia/HeavenMS/scripts/portal/obstacle.js</file>
</group>
<group/>
</open-files>
</project-private>

View File

@@ -106,7 +106,7 @@ function action(mode, type, selection) {
if (selectedType != 4)
selectedItem = selection;
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
if (selectedType == 0) { //bow refine
var matSet = [[4003001,4000000],[4011001,4003000],[4003001,4000016],[4011001,4021006,4003000],[4011001,4011006,4021003,4021006,4003000],[4011004,4021000,4021004,4003000],[4021008,4011001,4011006,4003000,4000014]];
var matQtySet = [[5,30],[1,3],[30,50],[2,2,8],[5,5,3,3,30],[7,6,3,35],[1,10,3,40,50]];

View File

@@ -136,7 +136,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
if (selectedType == 2){ //helmet refine
var itemSet = new Array(1002042,1002041,1002002,1002044,1002003,1002040,1002007,1002052,1002011,1002058,1002009,1002056,1002087,1002088,1002050,1002049,1002047,1002048,1002099,1002098,1002085,1002028,1002022,1002101);

View File

@@ -116,7 +116,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
if (selectedType == 0){ //glove refine
var itemSet = new Array(1082003,1082000,1082004,1082001,1082007,1082008,1082023,1082009,1082059);

View File

@@ -138,7 +138,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
if (selectedType == 0){ //glove refine
var itemSet = new Array(1082002,1082029,1082030,1082031,1082032,1082037,1082042,1082046,1082075,1082065,1082092);

View File

@@ -129,7 +129,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
last_use = false;

View File

@@ -66,7 +66,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
if (selectedType == 0){ //Making a Knuckler
var itemSet = new Array(1482001, 1482002, 1482003, 1482004, 1482005, 1482006, 1482007);

View File

@@ -182,7 +182,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
if (selectedType == 5){ //arrow refine
var itemSet = new Array(2060000,2061000,2060001,2061001,2060002,2061002);

View File

@@ -196,7 +196,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
var prompt = "You want me to make ";
if (qty == 1)

View File

@@ -120,7 +120,7 @@ function action(mode, type, selection) {
qty = 1;
}
else
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
var prompt = "You want me to make ";
if (qty == 1)

View File

@@ -58,7 +58,7 @@ function action(mode, type, selection) {
}
else if (status == 3) {
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
last_use = false;
var prompt = "You want us to make ";

View File

@@ -58,7 +58,7 @@ function action(mode, type, selection) {
}
else if (status == 3) {
qty = (selection > 0) ? selection : (-selection <= 0 ? 1 : -selection);
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
last_use = false;
var prompt = "So, you want me to make ";