Reformat and clean up npc scripts
This commit is contained in:
@@ -14,8 +14,9 @@ function action(mode, type, selection) {
|
|||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if ((mode == 0 && !town) || mode == -1) {
|
if ((mode == 0 && !town) || mode == -1) {
|
||||||
if(type == 1 && mode != -1)
|
if (type == 1 && mode != -1) {
|
||||||
cm.sendNext("There's a lot to see in this town, too. Let me know if you want to go somewhere else.");
|
cm.sendNext("There's a lot to see in this town, too. Let me know if you want to go somewhere else.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@@ -28,35 +29,39 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (status == 1)
|
if (status == 1) {
|
||||||
cm.sendSimple("It's understandable that you may be confused about this place if this is your first time around. If you got any questions about this place, fire away.\r\n#L0##bWhat kind of towns are here in Victoria Island?#l\r\n#L1#Please take me somewhere else.#k#l");
|
cm.sendSimple("It's understandable that you may be confused about this place if this is your first time around. If you got any questions about this place, fire away.\r\n#L0##bWhat kind of towns are here in Victoria Island?#l\r\n#L1#Please take me somewhere else.#k#l");
|
||||||
else if (status == 2){
|
} else if (status == 2) {
|
||||||
if (selection == 0) {
|
if (selection == 0) {
|
||||||
town = true;
|
town = true;
|
||||||
var text = "There are 7 big towns here in Victoria Island. Which of those do you want to know more of?#b";
|
var text = "There are 7 big towns here in Victoria Island. Which of those do you want to know more of?#b";
|
||||||
for(var i = 0; i < imaps.length; i++)
|
for (var i = 0; i < imaps.length; i++) {
|
||||||
text += "\r\n#L" + i + "##m" + imaps[i] + "##l";
|
text += "\r\n#L" + i + "##m" + imaps[i] + "##l";
|
||||||
|
}
|
||||||
cm.sendSimple(text);
|
cm.sendSimple(text);
|
||||||
} else if (selection == 1) {
|
} else if (selection == 1) {
|
||||||
var selStr = cm.getJobId() == 0 ? "There's a special 90% discount for all beginners. Alright, where would you want to go?#b" : "Oh you aren't a beginner, huh? Then I'm afraid I may have to charge you full price. Where would you like to go?#b";
|
var selStr = cm.getJobId() == 0 ? "There's a special 90% discount for all beginners. Alright, where would you want to go?#b" : "Oh you aren't a beginner, huh? Then I'm afraid I may have to charge you full price. Where would you like to go?#b";
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cost[i] / (cm.getJobId() == 0 ? 10 : 1)) + " mesos)#l";
|
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cost[i] / (cm.getJobId() == 0 ? 10 : 1)) + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
} else if (town) {
|
} else if (town) {
|
||||||
if (selectedMap == -1)
|
if (selectedMap == -1) {
|
||||||
selectedMap = selection;
|
selectedMap = selection;
|
||||||
if(status == 3)
|
}
|
||||||
|
if (status == 3) {
|
||||||
cm.sendNext(townText[selectedMap][status - 3]);
|
cm.sendNext(townText[selectedMap][status - 3]);
|
||||||
else
|
} else {
|
||||||
townText[selectedMap][status - 3] == undefined ? cm.dispose() : cm.sendNextPrev(townText[selectedMap][status - 3]);
|
townText[selectedMap][status - 3] == undefined ? cm.dispose() : cm.sendNextPrev(townText[selectedMap][status - 3]);
|
||||||
|
}
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
selectedMap = selection;
|
selectedMap = selection;
|
||||||
cm.sendYesNo("I guess you don't need to be here. Do you really want to move to #b#m" + maps[selection] + "##k? Well it'll cost you #b" + (cost[selection] / (cm.getJobId() == 0 ? 10 : 1)) + " mesos#k. What do you think?");
|
cm.sendYesNo("I guess you don't need to be here. Do you really want to move to #b#m" + maps[selection] + "##k? Well it'll cost you #b" + (cost[selection] / (cm.getJobId() == 0 ? 10 : 1)) + " mesos#k. What do you think?");
|
||||||
} else if (status == 4) {
|
} else if (status == 4) {
|
||||||
if (cm.getMeso() < (cost[selectedMap] / (cm.getJobId() == 0 ? 10 : 1)))
|
if (cm.getMeso() < (cost[selectedMap] / (cm.getJobId() == 0 ? 10 : 1))) {
|
||||||
cm.sendNext("You don't have enough mesos. With your abilities, you should have more than that!");
|
cm.sendNext("You don't have enough mesos. With your abilities, you should have more than that!");
|
||||||
else {
|
} else {
|
||||||
cm.gainMeso(-(cost[selectedMap] / (cm.getJobId() == 0 ? 10 : 1)));
|
cm.gainMeso(-(cost[selectedMap] / (cm.getJobId() == 0 ? 10 : 1)));
|
||||||
cm.warp(maps[selectedMap]);
|
cm.warp(maps[selectedMap]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,33 +32,39 @@ function start() {
|
|||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1)
|
if (mode != 1) {
|
||||||
if ((mode == 0 && type == 1) || mode == -1 || (mode == 0 && status == 1)) {
|
if ((mode == 0 && type == 1) || mode == -1 || (mode == 0 && status == 1)) {
|
||||||
if(type == 1)
|
if (type == 1) {
|
||||||
cm.sendNext("You must have some business to take care of here. You must be tired from all that traveling and hunting. Go take some rest, and if you feel like changing your mind, then come talk to me.");
|
cm.sendNext("You must have some business to take care of here. You must be tired from all that traveling and hunting. Go take some rest, and if you feel like changing your mind, then come talk to me.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
} else
|
} else {
|
||||||
status -= 2;
|
status -= 2;
|
||||||
if (selection == 0)
|
}
|
||||||
|
}
|
||||||
|
if (selection == 0) {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
if(selection == 1)
|
if (selection == 1) {
|
||||||
cm.sendYesNo("So you have a #bVIP Ticket to Florina Beach#k? You can always head over to Florina Beach with that. Alright then, but just be aware that you may be running into some monsters there too. Okay, would you like to head over to Florina Beach right now?");
|
cm.sendYesNo("So you have a #bVIP Ticket to Florina Beach#k? You can always head over to Florina Beach with that. Alright then, but just be aware that you may be running into some monsters there too. Okay, would you like to head over to Florina Beach right now?");
|
||||||
else if (selection == 2)
|
} else if (selection == 2) {
|
||||||
cm.sendNext("You must be curious about a #bVIP Ticket to Florina Beach#k. Haha, that's very understandable. A VIP Ticket to Florina Beach is an item where as long as you have in possession, you may make your way to Florina Beach for free. It's such a rare item that even we had to buy those, but unfortunately I lost mine a few weeks ago during my precious summer break.");
|
cm.sendNext("You must be curious about a #bVIP Ticket to Florina Beach#k. Haha, that's very understandable. A VIP Ticket to Florina Beach is an item where as long as you have in possession, you may make your way to Florina Beach for free. It's such a rare item that even we had to buy those, but unfortunately I lost mine a few weeks ago during my precious summer break.");
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (type != 1 && selection != 0) {
|
if (type != 1 && selection != 0) {
|
||||||
cm.sendNextPrev("I came back without it, and it just feels awful not having it. Hopefully someone picked it up and put it somewhere safe. Anyway, this is my story and who knows, you may be able to pick it up and put it to good use. If you have any questions, feel free to ask.");
|
cm.sendNextPrev("I came back without it, and it just feels awful not having it. Hopefully someone picked it up and put it somewhere safe. Anyway, this is my story and who knows, you may be able to pick it up and put it to good use. If you have any questions, feel free to ask.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
if (cm.getMeso() < 1500 && selection == 0)
|
if (cm.getMeso() < 1500 && selection == 0) {
|
||||||
cm.sendNext("I think you're lacking mesos. There are many ways to gather up some money, you know, like... selling your armor... defeating monsters... doing quests... you know what I'm talking about.");
|
cm.sendNext("I think you're lacking mesos. There are many ways to gather up some money, you know, like... selling your armor... defeating monsters... doing quests... you know what I'm talking about.");
|
||||||
else if(!cm.haveItem(4031134) && selection != 0){
|
} else if (!cm.haveItem(4031134) && selection != 0) {
|
||||||
cm.sendNext("Hmmm, so where exactly is your #bVIP Ticket to Florina\r\nBeach#k? Are you sure you have one? Please double-check.");
|
cm.sendNext("Hmmm, so where exactly is your #bVIP Ticket to Florina\r\nBeach#k? Are you sure you have one? Please double-check.");
|
||||||
} else {
|
} else {
|
||||||
if(selection == 0)
|
if (selection == 0) {
|
||||||
cm.gainMeso(-1500);
|
cm.gainMeso(-1500);
|
||||||
|
}
|
||||||
cm.getPlayer().saveLocation("FLORINA");
|
cm.getPlayer().saveLocation("FLORINA");
|
||||||
cm.warp(110000000, "st00");
|
cm.warp(110000000, "st00");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,10 +44,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("I hope I can make as much as yesterday... well, hello! Don't you want to extend your buddy list? You look like someone who'd have a whole lot of friends... well, what do you think? With some money I can make it happen for you. Remember, though, it only applies to one character at a time, so it won't affect any of your other characters on your account. Do you want to extend your buddy list?");
|
cm.sendYesNo("I hope I can make as much as yesterday... well, hello! Don't you want to extend your buddy list? You look like someone who'd have a whole lot of friends... well, what do you think? With some money I can make it happen for you. Remember, though, it only applies to one character at a time, so it won't affect any of your other characters on your account. Do you want to extend your buddy list?");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ function action(mode, type, selection) {
|
|||||||
cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?");
|
cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?");
|
||||||
cost /= ((cm.getJobId() == 0) ? 10 : 1);
|
cost /= ((cm.getJobId() == 0) ? 10 : 1);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (cm.getMeso() < cost)
|
if (cm.getMeso() < cost) {
|
||||||
cm.sendNext("It looks like you don't have enough mesos. Sorry but you won't be able to use this without it.")
|
cm.sendNext("It looks like you don't have enough mesos. Sorry but you won't be able to use this without it.")
|
||||||
else {
|
} else {
|
||||||
cm.gainMeso(-cost);
|
cm.gainMeso(-cost);
|
||||||
cm.warp(105070001);
|
cm.warp(105070001);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,10 +24,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
if (cm.hasItem(4032313, 1)) {
|
if (cm.hasItem(4032313, 1)) {
|
||||||
cm.gainItem(4032313, -1);
|
cm.gainItem(4032313, -1);
|
||||||
@@ -37,11 +38,13 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var selStr = "";
|
var selStr = "";
|
||||||
if (cm.getJobId() == 0)
|
if (cm.getJobId() == 0) {
|
||||||
selStr += "We have a special 90% discount for beginners.";
|
selStr += "We have a special 90% discount for beginners.";
|
||||||
|
}
|
||||||
selStr += "Choose your destination, for fees will change from place to place.#b";
|
selStr += "Choose your destination, for fees will change from place to place.#b";
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
||||||
|
|||||||
@@ -26,13 +26,14 @@ var items = [[2000002,310],[2022003,1060],[2022000,1600],[2001000,3120]];
|
|||||||
var item;
|
var item;
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
if (cm.isQuestCompleted(2013))
|
if (cm.isQuestCompleted(2013)) {
|
||||||
cm.sendNext("It's you ... thanks to you I was able to get a lot done. Nowadays I've been making a bunch of items. If you need anything let me know.");
|
cm.sendNext("It's you ... thanks to you I was able to get a lot done. Nowadays I've been making a bunch of items. If you need anything let me know.");
|
||||||
else {
|
} else {
|
||||||
if (cm.isQuestCompleted(2010))
|
if (cm.isQuestCompleted(2010)) {
|
||||||
cm.sendNext("You don't seem strong enough to be able to purchase my potion ...");
|
cm.sendNext("You don't seem strong enough to be able to purchase my potion ...");
|
||||||
else
|
} else {
|
||||||
cm.sendOk("My dream is to travel everywhere, much like you. My father, however, does not allow me to do it, because he thinks it's very dangerous. He may say yes, though, if I show him some sort of a proof that I'm not the weak girl that he thinks I am ...");
|
cm.sendOk("My dream is to travel everywhere, much like you. My father, however, does not allow me to do it, because he thinks it's very dangerous. He may say yes, though, if I show him some sort of a proof that I'm not the weak girl that he thinks I am ...");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,15 +41,17 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if(mode == 0 && type == 1)
|
if (mode == 0 && type == 1) {
|
||||||
cm.sendNext("I still have quite a few of the materials you got me before. The items are all there so take your time choosing.");
|
cm.sendNext("I still have quite a few of the materials you got me before. The items are all there so take your time choosing.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
var selStr = "Which item would you like to buy?#b";
|
var selStr = "Which item would you like to buy?#b";
|
||||||
for (var i = 0; i < items.length; i++)
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##i" + items[i][0] + "# (Price : " + items[i][1] + " mesos)#l";
|
selStr += "\r\n#L" + i + "##i" + items[i][0] + "# (Price : " + items[i][1] + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
item = items[selection];
|
item = items[selection];
|
||||||
@@ -58,16 +61,17 @@ function action(mode, type, selection) {
|
|||||||
cm.sendYesNo("Will you purchase #r" + selection + "#k #b#t" + item[0] + "#(s)#k? #t" + item[0] + "# costs " + item[1] + " mesos for one, so the total comes out to be #r" + (item[1] * selection) + "#k mesos.");
|
cm.sendYesNo("Will you purchase #r" + selection + "#k #b#t" + item[0] + "#(s)#k? #t" + item[0] + "# costs " + item[1] + " mesos for one, so the total comes out to be #r" + (item[1] * selection) + "#k mesos.");
|
||||||
amount = selection;
|
amount = selection;
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (cm.getMeso() < item[1] * amount)
|
if (cm.getMeso() < item[1] * amount) {
|
||||||
cm.sendNext("Are you lacking mesos by any chance? Please check and see if you have an empty slot available at your etc. inventory, and if you have at least #r" + (item[1] * selectedItem) + "#k mesos with you.");
|
cm.sendNext("Are you lacking mesos by any chance? Please check and see if you have an empty slot available at your etc. inventory, and if you have at least #r" + (item[1] * selectedItem) + "#k mesos with you.");
|
||||||
else {
|
} else {
|
||||||
if (cm.canHold(item[0])) {
|
if (cm.canHold(item[0])) {
|
||||||
cm.gainMeso(-item[1] * amount);
|
cm.gainMeso(-item[1] * amount);
|
||||||
cm.gainItem(item[0], amount);
|
cm.gainItem(item[0], amount);
|
||||||
cm.sendNext("Thank you for coming. Stuff here can always be made so if you need something, please come again.");
|
cm.sendNext("Thank you for coming. Stuff here can always be made so if you need something, please come again.");
|
||||||
} else
|
} else {
|
||||||
cm.sendNext("Please check and see if you have an empty slot available at your etc. inventory.");
|
cm.sendNext("Please check and see if you have an empty slot available at your etc. inventory.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,17 +20,20 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
var selStr = "";
|
var selStr = "";
|
||||||
if (cm.getJobId() == 0)
|
if (cm.getJobId() == 0) {
|
||||||
selStr += "We have a special 90% discount for beginners.";
|
selStr += "We have a special 90% discount for beginners.";
|
||||||
|
}
|
||||||
selStr += "Choose your destination, for fees will change from place to place.#b";
|
selStr += "Choose your destination, for fees will change from place to place.#b";
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
||||||
|
|||||||
@@ -45,8 +45,9 @@ function start() {
|
|||||||
cm.getPlayer().setCS(true);
|
cm.getPlayer().setCS(true);
|
||||||
var selStr = "Hello. I am Vicious, retired Sniper. However, I used to be the top student of Athena Pierce. Though I no longer hunt, I can make some archer items that will be useful for you...#b"
|
var selStr = "Hello. I am Vicious, retired Sniper. However, I used to be the top student of Athena Pierce. Though I no longer hunt, I can make some archer items that will be useful for you...#b"
|
||||||
var options = ["Create a bow", "Create a crossbow", "Make a glove", "Upgrade a glove", "Create materials", "Create Arrows"];
|
var options = ["Create a bow", "Create a crossbow", "Make a glove", "Upgrade a glove", "Create materials", "Create Arrows"];
|
||||||
for (var i = 0; i < options.length; i++)
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,38 +61,45 @@ function action(mode, type, selection) {
|
|||||||
if (selection == 0) { //bow refine
|
if (selection == 0) { //bow refine
|
||||||
var selStr = "I may have been a Sniper, but bows and crossbows aren't too much different. Anyway, which would you like to make?#b";
|
var selStr = "I may have been a Sniper, but bows and crossbows aren't too much different. Anyway, which would you like to make?#b";
|
||||||
items = [1452002, 1452003, 1452001, 1452000, 1452005, 1452006, 1452007];
|
items = [1452002, 1452003, 1452001, 1452000, 1452005, 1452006, 1452007];
|
||||||
for (var i = 0; i < items.length; i++)
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##k - Bowman Lv. " + (10 + (i * 5)) + "#l#b";
|
selStr += "\r\n#L" + i + "##t" + items[i] + "##k - Bowman Lv. " + (10 + (i * 5)) + "#l#b";
|
||||||
|
}
|
||||||
} else if (selection == 1) { //xbow refine
|
} else if (selection == 1) { //xbow refine
|
||||||
var selStr = "I was a Sniper. Crossbows are my specialty. Which would you like me to make for you?#b";
|
var selStr = "I was a Sniper. Crossbows are my specialty. Which would you like me to make for you?#b";
|
||||||
items = [1462001, 1462002, 1462003, 1462000, 1462004, 1462005, 1462006, 1462007];
|
items = [1462001, 1462002, 1462003, 1462000, 1462004, 1462005, 1462006, 1462007];
|
||||||
for (var i = 0; i < items.length; i++)
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##k - Bowman Lv. " + (10 + (i * 5)) + "#l#b";
|
selStr += "\r\n#L" + i + "##t" + items[i] + "##k - Bowman Lv. " + (10 + (i * 5)) + "#l#b";
|
||||||
|
}
|
||||||
} else if (selection == 2) { //glove refine
|
} else if (selection == 2) { //glove refine
|
||||||
var selStr = "Okay, so which glove do you want me to make?#b";
|
var selStr = "Okay, so which glove do you want me to make?#b";
|
||||||
items = [1082012, 1082013, 1082016, 1082048, 1082068, 1082071, 1082084, 1082089];
|
items = [1082012, 1082013, 1082016, 1082048, 1082068, 1082071, 1082084, 1082089];
|
||||||
for (var i = 0; i < items.length; i++)
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##k - Bowman Lv. " + (15 + (i * 5) > 40 ? ((i - 1) * 10) : 15 + (i * 5)) + "#l#b";
|
selStr += "\r\n#L" + i + "##t" + items[i] + "##k - Bowman Lv. " + (15 + (i * 5) > 40 ? ((i - 1) * 10) : 15 + (i * 5)) + "#l#b";
|
||||||
|
}
|
||||||
} else if (selection == 3) { //glove upgrade
|
} else if (selection == 3) { //glove upgrade
|
||||||
var selStr = "Upgrade a glove? That shouldn't be too difficult. Which did you have in mind?#b";
|
var selStr = "Upgrade a glove? That shouldn't be too difficult. Which did you have in mind?#b";
|
||||||
items = [1082015, 1082014, 1082017, 1082018, 1082049, 1082050, 1082069, 1082070, 1082072, 1082073, 1082085, 1082083, 1082090, 1082091];
|
items = [1082015, 1082014, 1082017, 1082018, 1082049, 1082050, 1082069, 1082070, 1082072, 1082073, 1082085, 1082083, 1082090, 1082091];
|
||||||
for (var i = 0, x = 0; i < items.length; i++, x += (i+1) % 2 == 0 ? 1 : 0)
|
for (var i = 0, x = 0; i < items.length; i++, x += (i + 1) % 2 == 0 ? 1 : 0) {
|
||||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##k" + "##k - Bowman Lv. " + (20 + (x * 5) > 40 ? ((x - 1) * 10) : 20 + (x * 5)) + "#l#b";
|
selStr += "\r\n#L" + i + "##t" + items[i] + "##k" + "##k - Bowman Lv. " + (20 + (x * 5) > 40 ? ((x - 1) * 10) : 20 + (x * 5)) + "#l#b";
|
||||||
|
}
|
||||||
} else if (selection == 4) { //material refine
|
} else if (selection == 4) { //material refine
|
||||||
var selStr = "Materials? I know of a few materials that I can make for you...#b";
|
var selStr = "Materials? I know of a few materials that I can make for you...#b";
|
||||||
var materials = ["Make Processed Wood with Tree Branch", "Make Processed Wood with Firewood", "Make Screws (packs of 15)"];
|
var materials = ["Make Processed Wood with Tree Branch", "Make Processed Wood with Firewood", "Make Screws (packs of 15)"];
|
||||||
for (var i = 0; i < materials.length; i++)
|
for (var i = 0; i < materials.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + materials[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + materials[i] + "#l";
|
||||||
|
}
|
||||||
} else if (selection == 5) { //arrow refine
|
} else if (selection == 5) { //arrow refine
|
||||||
var selStr = "Arrows? Not a problem at all.#b";
|
var selStr = "Arrows? Not a problem at all.#b";
|
||||||
items = [2060000, 2061000, 2060001, 2061001, 2060002, 2061002];
|
items = [2060000, 2061000, 2060001, 2061001, 2060002, 2061002];
|
||||||
for (var i = 0; i < items.length; i++)
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##l";
|
selStr += "\r\n#L" + i + "##t" + items[i] + "##l";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
if (selection != 4)
|
if (selection != 4) {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
items = [4003001, 4003001, 4003000];
|
items = [4003001, 4003001, 4003000];
|
||||||
@@ -103,10 +111,11 @@ function action(mode, type, selection) {
|
|||||||
cost = 0;
|
cost = 0;
|
||||||
cm.sendGetNumber("So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?", 1, 1, 100)
|
cm.sendGetNumber("So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?", 1, 1, 100)
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (selectedType != 4)
|
if (selectedType != 4) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
else
|
} else {
|
||||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1); // thanks br1337 for showing such a simple exploit with quantity on NPC crafters
|
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||||
|
} // thanks br1337 for showing such a simple exploit with quantity on NPC crafters
|
||||||
if (selectedType == 0) { //bow refine
|
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 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]];
|
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]];
|
||||||
@@ -135,18 +144,22 @@ function action(mode, type, selection) {
|
|||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
}
|
||||||
var prompt = "You want me to make ";
|
var prompt = "You want me to make ";
|
||||||
if (qty == 1)
|
if (qty == 1) {
|
||||||
prompt += "a #t" + item + "#?";
|
prompt += "a #t" + item + "#?";
|
||||||
else
|
} else {
|
||||||
prompt += qty + " #t" + item + "#?";
|
prompt += qty + " #t" + item + "#?";
|
||||||
|
}
|
||||||
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
||||||
if (mats instanceof Array)
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; i < mats.length; i++)
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + (matQty[i] * qty) + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + (matQty[i] * qty) + " #t" + mats[i] + "#";
|
||||||
else
|
}
|
||||||
|
} else {
|
||||||
prompt += "\r\n#i" + mats + "# " + (matQty * qty) + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + (matQty * qty) + " #t" + mats + "#";
|
||||||
if (cost > 0)
|
}
|
||||||
|
if (cost > 0) {
|
||||||
prompt += "\r\n#i4031138# " + (cost * qty) + " meso";
|
prompt += "\r\n#i4031138# " + (cost * qty) + " meso";
|
||||||
|
}
|
||||||
cm.sendYesNo(prompt);
|
cm.sendYesNo(prompt);
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
var complete = true;
|
var complete = true;
|
||||||
@@ -155,35 +168,43 @@ function action(mode, type, selection) {
|
|||||||
cm.sendOk("Sorry, but this is how I make my living. No meso, no item.");
|
cm.sendOk("Sorry, but this is how I make my living. No meso, no item.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
if (!cm.haveItem(mats[i], matQty[i] * qty)) {
|
||||||
complete = false;
|
|
||||||
}else if (!cm.haveItem(mats, matQty * qty))
|
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
if (!complete)
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty * qty)) {
|
||||||
|
complete = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!complete) {
|
||||||
cm.sendOk("Surely you, of all people, would understand the value of having quality items? I can't do that without the items I require.");
|
cm.sendOk("Surely you, of all people, would understand the value of having quality items? I can't do that without the items I require.");
|
||||||
else {
|
} else {
|
||||||
var recvItem = item, recvQty;
|
var recvItem = item, recvQty;
|
||||||
|
|
||||||
if (item >= 2060000 && item <= 2060002) //bow arrows
|
if (item >= 2060000 && item <= 2060002) //bow arrows
|
||||||
|
{
|
||||||
recvQty = 1000 - (item - 2060000) * 100;
|
recvQty = 1000 - (item - 2060000) * 100;
|
||||||
else if (item >= 2061000 && item <= 2061002) //xbow arrows
|
} else if (item >= 2061000 && item <= 2061002) //xbow arrows
|
||||||
|
{
|
||||||
recvQty = 1000 - (item - 2061000) * 100;
|
recvQty = 1000 - (item - 2061000) * 100;
|
||||||
else if (item == 4003000)//screws
|
} else if (item == 4003000)//screws
|
||||||
|
{
|
||||||
recvQty = 15 * qty;
|
recvQty = 15 * qty;
|
||||||
else
|
} else {
|
||||||
recvQty = qty;
|
recvQty = qty;
|
||||||
|
}
|
||||||
|
|
||||||
if (cm.canHold(recvItem, recvQty)) {
|
if (cm.canHold(recvItem, recvQty)) {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++)
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -(matQty[i] * qty));
|
cm.gainItem(mats[i], -(matQty[i] * qty));
|
||||||
}else
|
}
|
||||||
|
} else {
|
||||||
cm.gainItem(mats, -(matQty * qty));
|
cm.gainItem(mats, -(matQty * qty));
|
||||||
|
}
|
||||||
cm.gainMeso(-(cost * qty));
|
cm.gainMeso(-(cost * qty));
|
||||||
|
|
||||||
cm.gainItem(recvItem, recvQty);
|
cm.gainItem(recvItem, recvQty);
|
||||||
|
|||||||
@@ -41,17 +41,17 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == -1) {
|
if (status == -1) {
|
||||||
cm.sendNext("Hmm... are you raising one of my kids by any chance? I perfected a spell that uses Water of Life to blow life into a doll. People call it the #bPet#k. If you have one with you, feel free to ask me questions.");
|
cm.sendNext("Hmm... are you raising one of my kids by any chance? I perfected a spell that uses Water of Life to blow life into a doll. People call it the #bPet#k. If you have one with you, feel free to ask me questions.");
|
||||||
}
|
} else if (status == 0) {
|
||||||
else if (status == 0)
|
|
||||||
cm.sendSimple("What do you want to know more of?#b\r\n#L0#Tell me more about Pets.#l\r\n#L1#How do I raise Pets?#l\r\n#L2#Do Pets die too?#l\r\n#L3#What are the commands for Brown and Black Kitty?#l\r\n#L4#What are the commands for Brown Puppy?#l\r\n#L5#What are the commands for Pink and White Bunny?#l\r\n#L6#What are the commands for Mini Kargo?#l\r\n#L7#What are the commands for Rudolph and Dasher?#l\r\n#L8#What are the commands for Black Pig?#l\r\n#L9#What are the commands for Panda?#l\r\n#L10#What are the commands for Husky?#l\r\n#L11#What are the commands for Dino Boy and Dino Girl?#l\r\n#L12#What are the commands for Monkey?#l\r\n#L13#What are the commands for Turkey?#l\r\n#L14#What are the commands for White Tiger?#l\r\n#L15#What are the commands for Penguin?#l\r\n#L16#What are the commands for Golden Pig?#l\r\n#L17#What are the commands for Robot?#l\r\n#L18#What are the commands for Mini Yeti?#l\r\n#L19#What are the commands for Jr. Balrog?#l\r\n#L20#What are the commands for Baby Dragon?#l\r\n#L21#What are the commands for Green/Red/Blue Dragon?#l\r\n#L22#What are the commands for Black Dragon?#l\r\n#L23#What are the commands for Jr. Reaper?#l\r\n#L24#What are the commands for Porcupine?#l\r\n#L25#What are the commands for Snowman?#l\r\n#L26#What are the commands for Skunk?#l\r\n#L27#Please teach me about transferring pet ability points.#l");
|
cm.sendSimple("What do you want to know more of?#b\r\n#L0#Tell me more about Pets.#l\r\n#L1#How do I raise Pets?#l\r\n#L2#Do Pets die too?#l\r\n#L3#What are the commands for Brown and Black Kitty?#l\r\n#L4#What are the commands for Brown Puppy?#l\r\n#L5#What are the commands for Pink and White Bunny?#l\r\n#L6#What are the commands for Mini Kargo?#l\r\n#L7#What are the commands for Rudolph and Dasher?#l\r\n#L8#What are the commands for Black Pig?#l\r\n#L9#What are the commands for Panda?#l\r\n#L10#What are the commands for Husky?#l\r\n#L11#What are the commands for Dino Boy and Dino Girl?#l\r\n#L12#What are the commands for Monkey?#l\r\n#L13#What are the commands for Turkey?#l\r\n#L14#What are the commands for White Tiger?#l\r\n#L15#What are the commands for Penguin?#l\r\n#L16#What are the commands for Golden Pig?#l\r\n#L17#What are the commands for Robot?#l\r\n#L18#What are the commands for Mini Yeti?#l\r\n#L19#What are the commands for Jr. Balrog?#l\r\n#L20#What are the commands for Baby Dragon?#l\r\n#L21#What are the commands for Green/Red/Blue Dragon?#l\r\n#L22#What are the commands for Black Dragon?#l\r\n#L23#What are the commands for Jr. Reaper?#l\r\n#L24#What are the commands for Porcupine?#l\r\n#L25#What are the commands for Snowman?#l\r\n#L26#What are the commands for Skunk?#l\r\n#L27#Please teach me about transferring pet ability points.#l");
|
||||||
else if (status == 1) {
|
} else if (status == 1) {
|
||||||
sel = selection;
|
sel = selection;
|
||||||
if (selection == 0) {
|
if (selection == 0) {
|
||||||
status = 3;
|
status = 3;
|
||||||
@@ -62,93 +62,97 @@ function action(mode, type, selection) {
|
|||||||
} else if (selection == 2) {
|
} else if (selection == 2) {
|
||||||
status = 11;
|
status = 11;
|
||||||
cm.sendNext("Dying... well, they aren't technically ALIVE per se, so I don't know if dying is the right term to use. They are dolls with my magical power and the power of Water of Life to become a live object. Of course while it's alive, it's just like a live animal...");
|
cm.sendNext("Dying... well, they aren't technically ALIVE per se, so I don't know if dying is the right term to use. They are dolls with my magical power and the power of Water of Life to become a live object. Of course while it's alive, it's just like a live animal...");
|
||||||
} else if (selection == 3)
|
} else if (selection == 3) {
|
||||||
cm.sendNext("These are the commands for #rBrown Kitty and Black Kitty#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bcutie#k (Level 10 ~ 30)\r\n#bup, stand, rise#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rBrown Kitty and Black Kitty#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bcutie#k (Level 10 ~ 30)\r\n#bup, stand, rise#k (Level 20 ~ 30)");
|
||||||
else if (selection == 4)
|
} else if (selection == 4) {
|
||||||
cm.sendNext("These are the commands for #rBrown Puppy#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, baddog, dummy#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpee#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bdown#k (Level 10 ~ 30)\r\n#bup, stand, rise#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rBrown Puppy#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, baddog, dummy#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpee#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bdown#k (Level 10 ~ 30)\r\n#bup, stand, rise#k (Level 20 ~ 30)");
|
||||||
else if (selection == 5)
|
} else if (selection == 5) {
|
||||||
cm.sendNext("These are the commands for #rPink Bunny and White Bunny#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bhug#k (Level 10 ~ 30)\r\n#bsleep, sleepy, gotobed#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rPink Bunny and White Bunny#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bhug#k (Level 10 ~ 30)\r\n#bsleep, sleepy, gotobed#k (Level 20 ~ 30)");
|
||||||
else if (selection == 6)
|
} else if (selection == 6) {
|
||||||
cm.sendNext("These are the commands for #rMini Kargo#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpee#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bthelook, charisma#k (Level 10 ~ 30)\r\n#bdown#k (Level 10 ~ 30)\r\n#bgoodboy, goodgirl#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rMini Kargo#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpee#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 10 ~ 30)\r\n#bthelook, charisma#k (Level 10 ~ 30)\r\n#bdown#k (Level 10 ~ 30)\r\n#bgoodboy, goodgirl#k (Level 20 ~ 30)");
|
||||||
else if (selection == 7)
|
} else if (selection == 7) {
|
||||||
cm.sendNext("These are the commands for #rRudolph and Dasher#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bup, stand#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#bmerryxmas, merrychristmas#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 11 ~ 30)\r\n#blonely, alone#k (Level 11 ~ 30)\r\n#bcutie#k (Level 11 ~ 30)\r\n#bmush, go#k (Level 21 ~ 30)");
|
cm.sendNext("These are the commands for #rRudolph and Dasher#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bup, stand#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#bmerryxmas, merrychristmas#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#btalk, say, chat#k (Level 11 ~ 30)\r\n#blonely, alone#k (Level 11 ~ 30)\r\n#bcutie#k (Level 11 ~ 30)\r\n#bmush, go#k (Level 21 ~ 30)");
|
||||||
else if (selection == 8)
|
} else if (selection == 8) {
|
||||||
cm.sendNext("These are the commands for #rBlack Pig#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bhand#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bsmile#k (Level 10 ~ 30)\r\n#bthelook, charisma#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rBlack Pig#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1~30)\r\n#bhand#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bsmile#k (Level 10 ~ 30)\r\n#bthelook, charisma#k (Level 20 ~ 30)");
|
||||||
else if (selection == 9)
|
} else if (selection == 9) {
|
||||||
cm.sendNext("These are the commands for #rPanda#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bchill, relax#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bletsplay#k (Level 10 ~ 30)\r\n#bmeh, bleh#k (Level 10 ~ 30)\r\n#bsleep#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rPanda#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bchill, relax#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bletsplay#k (Level 10 ~ 30)\r\n#bmeh, bleh#k (Level 10 ~ 30)\r\n#bsleep#k (Level 20 ~ 30)");
|
||||||
else if (selection == 10)
|
} else if (selection == 10) {
|
||||||
cm.sendNext("These are the commands for #rHusky#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, baddog, dummy#k (Level 1 ~ 30)\r\n#bhand#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bdown#k (Level 10 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bup, stand, rise#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rHusky#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, baddog, dummy#k (Level 1 ~ 30)\r\n#bhand#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bdown#k (Level 10 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bup, stand, rise#k (Level 20 ~ 30)");
|
||||||
else if (selection == 11)
|
} else if (selection == 11) {
|
||||||
cm.sendNext("These are the commands for #rDino Boy and Dino Girl#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bsmile, laugh#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bcutie#k (Level 10 ~ 30)\r\n#bsleep, nap, sleepy#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rDino Boy and Dino Girl#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bsmile, laugh#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bcutie#k (Level 10 ~ 30)\r\n#bsleep, nap, sleepy#k (Level 20 ~ 30)");
|
||||||
else if (selection == 12)
|
} else if (selection == 12) {
|
||||||
cm.sendNext("These are the commands for #rMonkey#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#brest#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpee#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bup, stand#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bplay#k (Level 10 ~ 30)\r\n#bmelong#k (Level 10 ~ 30)\r\n#bsleep, gotobed, sleepy#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rMonkey#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#brest#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpee#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bup, stand#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bplay#k (Level 10 ~ 30)\r\n#bmelong#k (Level 10 ~ 30)\r\n#bsleep, gotobed, sleepy#k (Level 20 ~ 30)");
|
||||||
else if (selection == 13)
|
} else if (selection == 13) {
|
||||||
cm.sendNext("These are the commands for #rTurkey#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno, rudeboy, mischief#k (Level 1 ~ 30)\r\n#bstupid#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bup, stand#k (Level 1 ~ 30)\r\n#btalk, chat, gobble#k (Level 10 ~ 30)\r\n#byes, goodboy#k (Level 10 ~ 30)\r\n#bsleepy, birdnap, doze#k (Level 20 ~ 30)\r\n#bbirdeye, thanksgiving, fly, friedbird, imhungry#k (Level 30)");
|
cm.sendNext("These are the commands for #rTurkey#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno, rudeboy, mischief#k (Level 1 ~ 30)\r\n#bstupid#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bup, stand#k (Level 1 ~ 30)\r\n#btalk, chat, gobble#k (Level 10 ~ 30)\r\n#byes, goodboy#k (Level 10 ~ 30)\r\n#bsleepy, birdnap, doze#k (Level 20 ~ 30)\r\n#bbirdeye, thanksgiving, fly, friedbird, imhungry#k (Level 30)");
|
||||||
else if (selection == 14)
|
} else if (selection == 14) {
|
||||||
cm.sendNext("These are the commands for #rWhite Tiger#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#brest, chill#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bactsad, sadlook#k (Level 10 ~ 30)\r\n#bwait#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rWhite Tiger#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#brest, chill#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bactsad, sadlook#k (Level 10 ~ 30)\r\n#bwait#k (Level 20 ~ 30)");
|
||||||
else if (selection == 15)
|
} else if (selection == 15) {
|
||||||
cm.sendNext("These are the commands for #rPenguin#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bhug, hugme#k (Level 10 ~ 30)\r\n#bwing, hand#k (Level 10 ~ 30)\r\n#bsleep#k (Level 20 ~ 30)\r\n#bkiss, smooch, muah#k (Level 20 ~ 30)\r\n#bfly#k (Level 20 ~ 30)\r\n#bcute, adorable#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rPenguin#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 10 ~ 30)\r\n#bhug, hugme#k (Level 10 ~ 30)\r\n#bwing, hand#k (Level 10 ~ 30)\r\n#bsleep#k (Level 20 ~ 30)\r\n#bkiss, smooch, muah#k (Level 20 ~ 30)\r\n#bfly#k (Level 20 ~ 30)\r\n#bcute, adorable#k (Level 20 ~ 30)");
|
||||||
else if (selection == 16)
|
} else if (selection == 16) {
|
||||||
cm.sendNext("These are the commands for #rGolden Pig#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 11 ~ 30)\r\n#bloveme, hugme#k (Level 11 ~ 30)\r\n#bsleep, sleepy, gotobed#k (Level 21 ~ 30)\r\n#bignore / impressed / outofhere#k (Level 21 ~ 30)\r\n#broll, showmethemoney#k (Level 21 ~ 30)");
|
cm.sendNext("These are the commands for #rGolden Pig#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 11 ~ 30)\r\n#bloveme, hugme#k (Level 11 ~ 30)\r\n#bsleep, sleepy, gotobed#k (Level 21 ~ 30)\r\n#bignore / impressed / outofhere#k (Level 21 ~ 30)\r\n#broll, showmethemoney#k (Level 21 ~ 30)");
|
||||||
else if (selection == 17)
|
} else if (selection == 17) {
|
||||||
cm.sendNext("These are the commands for #rRobot#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#battack, charge#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bgood, thelook, charisma#k (Level 11 ~ 30)\r\n#bspeack, talk, chat, say#k (Level 11 ~ 30)\r\n#bdisguise, change, transform#k (Level 11 ~ 30)");
|
cm.sendNext("These are the commands for #rRobot#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bup, stand, rise#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#bbad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#battack, charge#k (Level 1 ~ 30)\r\n#biloveyou#k (Level 1 ~ 30)\r\n#bgood, thelook, charisma#k (Level 11 ~ 30)\r\n#bspeack, talk, chat, say#k (Level 11 ~ 30)\r\n#bdisguise, change, transform#k (Level 11 ~ 30)");
|
||||||
else if (selection == 18)
|
} else if (selection == 18) {
|
||||||
cm.sendNext("These are the commands for #rMini Yeti#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bdance, boogie, shakeit#k (Level 1 ~ 30)\r\n#bcute, cutie, pretty, adorable#k (Level 1 ~ 30)\r\n#biloveyou, likeyou, mylove#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 11 ~ 30)\r\n#bsleep, nap, sleepy, gotobed#k (Level 11 ~ 30)");
|
cm.sendNext("These are the commands for #rMini Yeti#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad, no, badboy, badgirl#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bdance, boogie, shakeit#k (Level 1 ~ 30)\r\n#bcute, cutie, pretty, adorable#k (Level 1 ~ 30)\r\n#biloveyou, likeyou, mylove#k (Level 1 ~ 30)\r\n#btalk, chat, say#k (Level 11 ~ 30)\r\n#bsleep, nap, sleepy, gotobed#k (Level 11 ~ 30)");
|
||||||
else if (selection == 19)
|
} else if (selection == 19) {
|
||||||
cm.sendNext("These are the commands for #rJr. Balrog#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bliedown#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#biloveyou|mylove|likeyou#k (Level 1 ~ 30)\r\n#bcute|cutie|pretty|adorable#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bsmirk|crooked|laugh#k (Level 1 ~ 30)\r\n#bmelong#k (Level 11 ~ 30)\r\n#bgood|thelook|charisma#k (Level 11 ~ 30)\r\n#bspeak|talk|chat|say#k (Level 11 ~ 30)\r\n#bsleep|nap|sleepy#k (Level 11 ~ 30)\r\n#bgas#k (Level 21 ~ 30)");
|
cm.sendNext("These are the commands for #rJr. Balrog#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bliedown#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#biloveyou|mylove|likeyou#k (Level 1 ~ 30)\r\n#bcute|cutie|pretty|adorable#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bsmirk|crooked|laugh#k (Level 1 ~ 30)\r\n#bmelong#k (Level 11 ~ 30)\r\n#bgood|thelook|charisma#k (Level 11 ~ 30)\r\n#bspeak|talk|chat|say#k (Level 11 ~ 30)\r\n#bsleep|nap|sleepy#k (Level 11 ~ 30)\r\n#bgas#k (Level 21 ~ 30)");
|
||||||
else if (selection == 20)
|
} else if (selection == 20) {
|
||||||
cm.sendNext("These are the commands for #rBaby Dragon#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#biloveyou|loveyou#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bstupid|ihateyou|dummy#k (Level 1 ~ 30)\r\n#bcutie#k (Level 11 ~ 30)\r\n#btalk|chat|say#k (Level 11 ~ 30)\r\n#bsleep|sleepy|gotobed#k (Level 11 ~ 30)");
|
cm.sendNext("These are the commands for #rBaby Dragon#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#biloveyou|loveyou#k (Level 1 ~ 30)\r\n#bpoop#k (Level 1 ~ 30)\r\n#bstupid|ihateyou|dummy#k (Level 1 ~ 30)\r\n#bcutie#k (Level 11 ~ 30)\r\n#btalk|chat|say#k (Level 11 ~ 30)\r\n#bsleep|sleepy|gotobed#k (Level 11 ~ 30)");
|
||||||
else if (selection == 21)
|
} else if (selection == 21) {
|
||||||
cm.sendNext("These are the commands for #rGreen/Red/Blue Dragon#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 15 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 15 ~ 30)\r\n#biloveyou|loveyou#k (Level 15 ~ 30)\r\n#bpoop#k (Level 15 ~ 30)\r\n#bstupid|ihateyou|dummy#k (Level 15 ~ 30)\r\n#btalk|chat|say#k (Level 15 ~ 30)\r\n#bsleep|sleepy|gotobed#k (Level 15 ~ 30)\r\n#bchange#k (Level 21 ~ 30)");
|
cm.sendNext("These are the commands for #rGreen/Red/Blue Dragon#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 15 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 15 ~ 30)\r\n#biloveyou|loveyou#k (Level 15 ~ 30)\r\n#bpoop#k (Level 15 ~ 30)\r\n#bstupid|ihateyou|dummy#k (Level 15 ~ 30)\r\n#btalk|chat|say#k (Level 15 ~ 30)\r\n#bsleep|sleepy|gotobed#k (Level 15 ~ 30)\r\n#bchange#k (Level 21 ~ 30)");
|
||||||
else if (selection == 22)
|
} else if (selection == 22) {
|
||||||
cm.sendNext("These are the commands for #rBlack Dragon#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 15 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 15 ~ 30)\r\n#biloveyou|loveyou#k (Level 15 ~ 30)\r\n#bpoop#k (Level 15 ~ 30)\r\n#bstupid|ihateyou|dummy#k (Level 15 ~ 30)\r\n#btalk|chat|say#k (Level 15 ~ 30)\r\n#bsleep|sleepy|gotobed#k (Level 15 ~ 30)\r\n#bcutie, change#k (Level 21 ~ 30)");
|
cm.sendNext("These are the commands for #rBlack Dragon#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 15 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 15 ~ 30)\r\n#biloveyou|loveyou#k (Level 15 ~ 30)\r\n#bpoop#k (Level 15 ~ 30)\r\n#bstupid|ihateyou|dummy#k (Level 15 ~ 30)\r\n#btalk|chat|say#k (Level 15 ~ 30)\r\n#bsleep|sleepy|gotobed#k (Level 15 ~ 30)\r\n#bcutie, change#k (Level 21 ~ 30)");
|
||||||
else if (selection == 23)
|
} else if (selection == 23) {
|
||||||
cm.sendNext("These are the commands for #rJr. Reaper#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#bplaydead, poop#k (Level 1 ~ 30)\r\n#btalk|chat|say#k (Level 1 ~ 30)\r\n#biloveyou, hug#k (Level 1 ~ 30)\r\n#bsmellmyfeet, rockout, boo#k (Level 1 ~ 30)\r\n#btrickortreat#k (Level 1 ~ 30)\r\n#bmonstermash#k (Level 1 ~ 30)");
|
cm.sendNext("These are the commands for #rJr. Reaper#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#bplaydead, poop#k (Level 1 ~ 30)\r\n#btalk|chat|say#k (Level 1 ~ 30)\r\n#biloveyou, hug#k (Level 1 ~ 30)\r\n#bsmellmyfeet, rockout, boo#k (Level 1 ~ 30)\r\n#btrickortreat#k (Level 1 ~ 30)\r\n#bmonstermash#k (Level 1 ~ 30)");
|
||||||
else if (selection == 24)
|
} else if (selection == 24) {
|
||||||
cm.sendNext("These are the commands for #rPorcupine#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#biloveyou|hug|goodboy#k (Level 1 ~ 30)\r\n#btalk|chat|say#k (Level 1 ~ 30)\r\n#bcushion|sleep|knit|poop#k (Level 1 ~ 30)\r\n#bcomb|beach#k (Level 10 ~ 30)\r\n#btreeninja#k (Level 20 ~ 30)\r\n#bdart#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rPorcupine#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bno|bad|badgirl|badboy#k (Level 1 ~ 30)\r\n#biloveyou|hug|goodboy#k (Level 1 ~ 30)\r\n#btalk|chat|say#k (Level 1 ~ 30)\r\n#bcushion|sleep|knit|poop#k (Level 1 ~ 30)\r\n#bcomb|beach#k (Level 10 ~ 30)\r\n#btreeninja#k (Level 20 ~ 30)\r\n#bdart#k (Level 20 ~ 30)");
|
||||||
else if (selection == 25)
|
} else if (selection == 25) {
|
||||||
cm.sendNext("These are the commands for #rSnowman#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#bloveyou, mylove, ilikeyou#k (Level 1 ~ 30)\r\n#bmerrychristmas#k (Level 1 ~ 30)\r\n#bcutie, adorable, cute, pretty#k (Level 1 ~ 30)\r\n#bcomb, beach/bad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#btalk, chat, say/sleep, sleepy, gotobed#k (Level 10 ~ 30)\r\n#bchang#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rSnowman#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bstupid, ihateyou, dummy#k (Level 1 ~ 30)\r\n#bloveyou, mylove, ilikeyou#k (Level 1 ~ 30)\r\n#bmerrychristmas#k (Level 1 ~ 30)\r\n#bcutie, adorable, cute, pretty#k (Level 1 ~ 30)\r\n#bcomb, beach/bad, no, badgirl, badboy#k (Level 1 ~ 30)\r\n#btalk, chat, say/sleep, sleepy, gotobed#k (Level 10 ~ 30)\r\n#bchang#k (Level 20 ~ 30)");
|
||||||
else if (selection == 26)
|
} else if (selection == 26) {
|
||||||
cm.sendNext("These are the commands for #rSkunk#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad/no/badgirl/badboy#k (Level 1 ~ 30)\r\n#brestandrelax, poop#k (Level 1 ~ 30)\r\n#btalk/chat/say, iloveyou#k (Level 1 ~ 30)\r\n#bsnuggle/hug, sleep, goodboy#k (Level 1 ~ 30)\r\n#bfatty, blind, badbreath#k (Level 10 ~ 30)\r\n#bsuitup, bringthefunk#k (Level 20 ~ 30)");
|
cm.sendNext("These are the commands for #rSkunk#k. The level mentioned next to the command shows the pet level required for it to respond.\r\n#bsit#k (Level 1 ~ 30)\r\n#bbad/no/badgirl/badboy#k (Level 1 ~ 30)\r\n#brestandrelax, poop#k (Level 1 ~ 30)\r\n#btalk/chat/say, iloveyou#k (Level 1 ~ 30)\r\n#bsnuggle/hug, sleep, goodboy#k (Level 1 ~ 30)\r\n#bfatty, blind, badbreath#k (Level 10 ~ 30)\r\n#bsuitup, bringthefunk#k (Level 20 ~ 30)");
|
||||||
else if (selection == 27) {
|
} else if (selection == 27) {
|
||||||
status = 14;
|
status = 14;
|
||||||
cm.sendNext("In order to transfer the pet ability points, closeness and level, Pet AP Reset Scroll is required. If you take this\r\nscroll to Mar the Fairy in Ellinia, she will transfer the level and closeness of the pet to another one. I am especially giving it to you because I can feel your heart for your pet. However, I can't give this out for free. I can give you this book for 250,000 mesos. Oh, I almost forgot! Even if you have this book, it is no use if you do not have a new pet to transfer the Ability points.");
|
cm.sendNext("In order to transfer the pet ability points, closeness and level, Pet AP Reset Scroll is required. If you take this\r\nscroll to Mar the Fairy in Ellinia, she will transfer the level and closeness of the pet to another one. I am especially giving it to you because I can feel your heart for your pet. However, I can't give this out for free. I can give you this book for 250,000 mesos. Oh, I almost forgot! Even if you have this book, it is no use if you do not have a new pet to transfer the Ability points.");
|
||||||
}
|
}
|
||||||
if(selection > 2 && selection < 27)
|
if (selection > 2 && selection < 27) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if(sel == 0)
|
if (sel == 0) {
|
||||||
cm.sendNextPrev("But Water of Life only comes out little at the very bottom of the World Tree, so I can't give him too much time in life... I know, it's very unfortunate... but even if it becomes a doll again I can always bring life back into it so be good to it while you're with it.");
|
cm.sendNextPrev("But Water of Life only comes out little at the very bottom of the World Tree, so I can't give him too much time in life... I know, it's very unfortunate... but even if it becomes a doll again I can always bring life back into it so be good to it while you're with it.");
|
||||||
else if (sel == 1)
|
} else if (sel == 1) {
|
||||||
cm.sendNextPrev("Talk to the pet, pay attention to it and its intimacy level will go up and eventually his overall level will go up too. As the intimacy level rises, the pet's overall level will rise soon after. As the overall level rises, one day the pet may even talk like a person a little bit, so try hard raising it. Of course it won't be easy doing so...");
|
cm.sendNextPrev("Talk to the pet, pay attention to it and its intimacy level will go up and eventually his overall level will go up too. As the intimacy level rises, the pet's overall level will rise soon after. As the overall level rises, one day the pet may even talk like a person a little bit, so try hard raising it. Of course it won't be easy doing so...");
|
||||||
else if (sel == 2)
|
} else if (sel == 2) {
|
||||||
cm.sendNextPrev("After some time... that's correct, they stop moving. They just turn back to being a doll, after the effect of magic dies down and Water of Life dries out. But that doesn't mean it's stopped forever, because once you pour Water of Life over, it's going to be back alive.");
|
cm.sendNextPrev("After some time... that's correct, they stop moving. They just turn back to being a doll, after the effect of magic dies down and Water of Life dries out. But that doesn't mean it's stopped forever, because once you pour Water of Life over, it's going to be back alive.");
|
||||||
else if (sel == 27)
|
} else if (sel == 27) {
|
||||||
cm.sendYesNo("250,000 mesos will be deducted. Do you really want to buy?");
|
cm.sendYesNo("250,000 mesos will be deducted. Do you really want to buy?");
|
||||||
|
}
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (sel == 0)
|
if (sel == 0) {
|
||||||
cm.sendNextPrev("Oh yeah, they'll react when you give them special commands. You can scold them, love them... it all\r\ndepends on how you take care of them. They are afraid to leave their masters so be nice to them, show them love. They can get sad and lonely fast...");
|
cm.sendNextPrev("Oh yeah, they'll react when you give them special commands. You can scold them, love them... it all\r\ndepends on how you take care of them. They are afraid to leave their masters so be nice to them, show them love. They can get sad and lonely fast...");
|
||||||
else if (sel == 1){
|
} else if (sel == 1) {
|
||||||
cm.sendNextPrev("It may be a live doll but they also have life so they can feel the hunger too. #bFullness#k shows the level of hunger the pet's in. 100 is the max, and the lower it gets, it means that the pet is getting hungrier. After a while, it won't even follow your command and be on the offensive, so watch out over that.");
|
cm.sendNextPrev("It may be a live doll but they also have life so they can feel the hunger too. #bFullness#k shows the level of hunger the pet's in. 100 is the max, and the lower it gets, it means that the pet is getting hungrier. After a while, it won't even follow your command and be on the offensive, so watch out over that.");
|
||||||
return;
|
|
||||||
}else if (sel == 2)
|
} else if (sel == 2) {
|
||||||
cm.sendNextPrev("Even if it someday moves again, it's sad to see them stop altogether. Please be nice to them while they are alive and moving. Feed them well, too. Isn't it nice to know that there's something alive that follows and listens to only you?");
|
cm.sendNextPrev("Even if it someday moves again, it's sad to see them stop altogether. Please be nice to them while they are alive and moving. Feed them well, too. Isn't it nice to know that there's something alive that follows and listens to only you?");
|
||||||
else if (sel == 27){
|
} else if (sel == 27) {
|
||||||
if (cm.getMeso() < 250000 || !cm.canHold(4160011))
|
if (cm.getMeso() < 250000 || !cm.canHold(4160011)) {
|
||||||
cm.sendOk("Please check if your inventory has empty slot or you don't have enough mesos.");
|
cm.sendOk("Please check if your inventory has empty slot or you don't have enough mesos.");
|
||||||
else {
|
} else {
|
||||||
cm.gainMeso(-250000);
|
cm.gainMeso(-250000);
|
||||||
cm.gainItem(4160011, 1);
|
cm.gainItem(4160011, 1);
|
||||||
}
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (status == 4) {
|
} else if (status == 4) {
|
||||||
if(sel != 1)
|
if (sel != 1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
cm.sendNextPrev("Oh yes! Pets can't eat the normal human food. Instead my disciple #bDoofus#k sells #bPet Food#k at the Henesys Market so if you need food for your pet, find Henesys. It'll be a good idea to buy the food in advance and feed the pet before it gets really hungry.");
|
cm.sendNextPrev("Oh yes! Pets can't eat the normal human food. Instead my disciple #bDoofus#k sells #bPet Food#k at the Henesys Market so if you need food for your pet, find Henesys. It'll be a good idea to buy the food in advance and feed the pet before it gets really hungry.");
|
||||||
} else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("Oh, and if you don't feed the pet for a long period of time, it goes back home by itself. You can take it out of its home and feed it but it's not really good for the pet's health, so try feeding him on a regular basis so it doesn't go down to that level, alright? I think this will do.");
|
cm.sendNextPrev("Oh, and if you don't feed the pet for a long period of time, it goes back home by itself. You can take it out of its home and feed it but it's not really good for the pet's health, so try feeding him on a regular basis so it doesn't go down to that level, alright? I think this will do.");
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@@ -43,8 +43,9 @@ function action(mode, type, selection) {
|
|||||||
if (cm.haveItem(4031035)) {
|
if (cm.haveItem(4031035)) {
|
||||||
cm.sendNext("Get that letter, jump over obstacles with your pet, and take that letter to my brother Trainer Frod. Give him the letter and something good is going to happen to your pet.");
|
cm.sendNext("Get that letter, jump over obstacles with your pet, and take that letter to my brother Trainer Frod. Give him the letter and something good is going to happen to your pet.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else
|
} else {
|
||||||
cm.sendYesNo("This is the road where you can go take a walk with your pet. You can just walk around with it, or you can train your pet to go through the obstacles here. If you aren't too close with your pet yet, that may present a problem and he will not follow your command as much... So, what do you think? Wanna train your pet?");
|
cm.sendYesNo("This is the road where you can go take a walk with your pet. You can just walk around with it, or you can train your pet to go through the obstacles here. If you aren't too close with your pet yet, that may present a problem and he will not follow your command as much... So, what do you think? Wanna train your pet?");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cm.sendOk("Hey, are you sure you've met #bMar the Fairy#k? Don't lie to me if you've never met her before because it's obvious. That wasn't even a good lie!!");
|
cm.sendOk("Hey, are you sure you've met #bMar the Fairy#k? Don't lie to me if you've never met her before because it's obvious. That wasn't even a good lie!!");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Author: Xterminator
|
/* Author: Xterminator
|
||||||
NPC Name: Trainer Frod
|
NPC Name: Trainer Frod
|
||||||
Map(s): Victoria Road : Pet-Walking Road (100000202)
|
Map(s): Victoria Road : Pet-Walking Road (100000202)
|
||||||
@@ -26,21 +27,21 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
if (cm.haveItem(4031035))
|
if (cm.haveItem(4031035)) {
|
||||||
cm.sendNext("Eh, that's my brother's letter! Probably scolding me for thinking I'm not working and stuff...Eh? Ahhh...you followed my brother's advice and trained your pet and got up here, huh? Nice!! Since you worked hard to get here, I'll boost your intimacy level with your pet.");
|
cm.sendNext("Eh, that's my brother's letter! Probably scolding me for thinking I'm not working and stuff...Eh? Ahhh...you followed my brother's advice and trained your pet and got up here, huh? Nice!! Since you worked hard to get here, I'll boost your intimacy level with your pet.");
|
||||||
else {
|
} else {
|
||||||
cm.sendOk("My brother told me to take care of the pet obstacle course, but ... since I'm so far away from him, I can't help but wanting to goof around ...hehe, since I don't see him in sight, might as well just chill for a few minutes.");
|
cm.sendOk("My brother told me to take care of the pet obstacle course, but ... since I'm so far away from him, I can't help but wanting to goof around ...hehe, since I don't see him in sight, might as well just chill for a few minutes.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode < 1)
|
if (mode < 1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (cm.getPlayer().getNoPets() == 0)
|
if (cm.getPlayer().getNoPets() == 0) {
|
||||||
cm.sendNextPrev("Hmmm ... did you really get here with your pet? These obstacles are for pets. What are you here for without it?? Get outta here!");
|
cm.sendNextPrev("Hmmm ... did you really get here with your pet? These obstacles are for pets. What are you here for without it?? Get outta here!");
|
||||||
else {
|
} else {
|
||||||
cm.gainItem(4031035, -1);
|
cm.gainItem(4031035, -1);
|
||||||
cm.gainCloseness(2, 0);
|
cm.gainCloseness(2, 0);
|
||||||
cm.sendNextPrev("What do you think? Don't you think you have gotten much closer with your pet? If you have time, train your pet again on this obstacle course...of course, with my brother's permission.");
|
cm.sendNextPrev("What do you think? Don't you think you have gotten much closer with your pet? If you have time, train your pet again on this obstacle course...of course, with my brother's permission.");
|
||||||
|
|||||||
@@ -71,16 +71,16 @@ function action(mode, type, selection) {
|
|||||||
cm.sendNextPrev("Every game of Match Cards will cost you #r100 mesos#k. Even if you don't have #bA set of Match Cards#k, you can enter the room and play. However, if you don't possess 100 mesos, then you won't be allowed to enter in the room at all. The person opening the game room also needs 100 mesos to open the room (or else there's no game). If you run out of mesos during the game, then you're automatically kicked out of the room!");
|
cm.sendNextPrev("Every game of Match Cards will cost you #r100 mesos#k. Even if you don't have #bA set of Match Cards#k, you can enter the room and play. However, if you don't possess 100 mesos, then you won't be allowed to enter in the room at all. The person opening the game room also needs 100 mesos to open the room (or else there's no game). If you run out of mesos during the game, then you're automatically kicked out of the room!");
|
||||||
|
|
||||||
} else if (current == 3) {
|
} else if (current == 3) {
|
||||||
for (var i = 0; i < omok.length; i++)
|
for (var i = 0; i < omok.length; i++) {
|
||||||
text += "\r\n#L" + i + "##b#t" + omok[i] + "##k#l";
|
text += "\r\n#L" + i + "##b#t" + omok[i] + "##k#l";
|
||||||
|
}
|
||||||
cm.sendSimple(text);
|
cm.sendSimple(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (status == 4) {
|
} else if (status == 4) {
|
||||||
if (current == 1 || current == 2) {
|
if (current == 1 || current == 2) {
|
||||||
cm.sendNextPrev("Enter the room, and when you're ready to play, click on #bReady#k.\r\nOnce the visitor clicks on #bReady#k, the room owner can press #bStart#k to begin the game. If an unwanted visitor walks in, and you don't want to play with that person, the room owner has the right to kick the visitor out of the room. There will be a square box with x written on the right of that person. Click on that for a cold goodbye, okay?"); //Oh yeah, because people WALK in Omok Rooms.
|
cm.sendNextPrev("Enter the room, and when you're ready to play, click on #bReady#k.\r\nOnce the visitor clicks on #bReady#k, the room owner can press #bStart#k to begin the game. If an unwanted visitor walks in, and you don't want to play with that person, the room owner has the right to kick the visitor out of the room. There will be a square box with x written on the right of that person. Click on that for a cold goodbye, okay?"); //Oh yeah, because people WALK in Omok Rooms.
|
||||||
}
|
} else if (current == 3) {
|
||||||
else if (current == 3) {
|
|
||||||
if (cm.haveItem(omok1piece[selection], 99) && cm.haveItem(omok2piece[selection], 99) && cm.haveItem(4030009, 1)) {
|
if (cm.haveItem(omok1piece[selection], 99) && cm.haveItem(omok2piece[selection], 99) && cm.haveItem(4030009, 1)) {
|
||||||
cm.gainItem(omok1piece[selection], -omokamount);
|
cm.gainItem(omok1piece[selection], -omokamount);
|
||||||
cm.gainItem(omok2piece[selection], -omokamount);
|
cm.gainItem(omok2piece[selection], -omokamount);
|
||||||
|
|||||||
@@ -50,13 +50,14 @@ function start() {
|
|||||||
cm.sendNext("So you decided to become a #rbowman#k? There are some standards to meet, y'know... #bYour level should be at least 10, with at least " + cm.getFirstJobStatRequirement(jobType) + "#k. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
cm.sendNext("So you decided to become a #rbowman#k? There are some standards to meet, y'know... #bYour level should be at least 10, with at least " + cm.getFirstJobStatRequirement(jobType) + "#k. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
||||||
} else if (cm.getLevel() >= 30 && cm.getJobId() == 300) {
|
} else if (cm.getLevel() >= 30 && cm.getJobId() == 300) {
|
||||||
actionx["2ndJob"] = true;
|
actionx["2ndJob"] = true;
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendNext("Haha...I knew you'd breeze through that test. I'll admit, you are a great bowman. I'll make you much stronger than you're right now. before that, however... you;ll need to choose one of two paths given to you. It'll be a difficult decision for you to make, but... if there's any question to ask, please do so.");
|
cm.sendNext("Haha...I knew you'd breeze through that test. I'll admit, you are a great bowman. I'll make you much stronger than you're right now. before that, however... you;ll need to choose one of two paths given to you. It'll be a difficult decision for you to make, but... if there's any question to ask, please do so.");
|
||||||
else if (cm.haveItem(4031011)){
|
} else if (cm.haveItem(4031011)) {
|
||||||
cm.sendOk("Go and see the #b#p1072002##k.");
|
cm.sendOk("Go and see the #b#p1072002##k.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else
|
} else {
|
||||||
cm.sendYesNo("Hmmm... you have grown a lot since I last saw you. I don't see the weakling I saw before, and instead, look much more like a bowman now. Well, what do you think? Don't you want to get even more powerful than that? Pass a simple test and I'll do just that for you. Do you want to do it?");
|
cm.sendYesNo("Hmmm... you have grown a lot since I last saw you. I don't see the weakling I saw before, and instead, look much more like a bowman now. Well, what do you think? Don't you want to get even more powerful than that? Pass a simple test and I'll do just that for you. Do you want to do it?");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 3 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 3 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
||||||
actionx["3thJobI"] = true;
|
actionx["3thJobI"] = true;
|
||||||
cm.sendNext("There you are. A few days ago, #b#p2020010##k of Ossyria talked to me about you. I see that you are interested in making the leap to the amazing world of the third job advancement for archers. To achieve that goal, I will have to test your strength in order to see whether you are worthy of the advancement. There is an opening in the middle of a deep forest in Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat her and bring #b#t4031059##k back with you.");
|
cm.sendNext("There you are. A few days ago, #b#p2020010##k of Ossyria talked to me about you. I see that you are interested in making the leap to the amazing world of the third job advancement for archers. To achieve that goal, I will have to test your strength in order to see whether you are worthy of the advancement. There is an opening in the middle of a deep forest in Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat her and bring #b#t4031059##k back with you.");
|
||||||
@@ -108,8 +109,9 @@ function action(mode, type, selection) {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
||||||
if (mode == 0 && status == 2 && type == 1)
|
if (mode == 0 && status == 2 && type == 1) {
|
||||||
cm.sendOk("You know there is no other choice...");
|
cm.sendOk("You know there is no other choice...");
|
||||||
|
}
|
||||||
if (!(mode == 0 && type != 1)) {
|
if (!(mode == 0 && type != 1)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
@@ -139,25 +141,29 @@ function action(mode, type, selection) {
|
|||||||
cm.sendNext("Make some room in your inventory and talk back to me.");
|
cm.sendNext("Make some room in your inventory and talk back to me.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Bowman.");
|
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Bowman.");
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
} else if (actionx["2ndJob"]) {
|
} else if (actionx["2ndJob"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Hunter is all about.\r\n#L1#Please explain to me what being the Crossbowman is all about.\r\n#L3#I'll choose my occupation!");
|
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Hunter is all about.\r\n#L1#Please explain to me what being the Crossbowman is all about.\r\n#L3#I'll choose my occupation!");
|
||||||
else {
|
} else {
|
||||||
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
||||||
if(!cm.isQuestStarted(100000)) cm.startQuest(100000);
|
if (!cm.isQuestStarted(100000)) {
|
||||||
|
cm.startQuest(100000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (!cm.haveItem(4031012)) {
|
if (!cm.haveItem(4031012)) {
|
||||||
if (cm.canHold(4031010)) {
|
if (cm.canHold(4031010)) {
|
||||||
if (!cm.haveItem(4031010))
|
if (!cm.haveItem(4031010)) {
|
||||||
cm.gainItem(4031010, 1);
|
cm.gainItem(4031010, 1);
|
||||||
|
}
|
||||||
cm.sendNextPrev("Please get this letter to #b#p1072002##k who's around #b#m106010000##k near Henesys. She is taking care of the job of an instructor in place of me. Give her the letter and she'll test you in place of me. Best of luck to you.");
|
cm.sendNextPrev("Please get this letter to #b#p1072002##k who's around #b#m106010000##k near Henesys. She is taking care of the job of an instructor in place of me. Give her the letter and she'll test you in place of me. Best of luck to you.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
@@ -173,25 +179,29 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
status -= 2;
|
status -= 2;
|
||||||
} else
|
} else {
|
||||||
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Hunter\r\n#L1#Crossbowman");
|
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Hunter\r\n#L1#Crossbowman");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
job += selection * 10;
|
job += selection * 10;
|
||||||
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 310 ? "#bHunter#k" : "#bCrossbowman#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right?");
|
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 310 ? "#bHunter#k" : "#bCrossbowman#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right?");
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.gainItem(4031012, -1);
|
cm.gainItem(4031012, -1);
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendNext("Alright, you're the " + (job == 310 ? "#bHunter#k" : "#bCrossbowman#k") + " from here on out. " + (job == 310 ? "#bHunter#k" : "#bCrossbowman#k") + "s are the intelligent bunch with incredible vision, able to pierce the arrow through the heart of the monsters with ease... please train yourself each and everyday. I'll help you become even stronger than you already are.");
|
cm.sendNext("Alright, you're the " + (job == 310 ? "#bHunter#k" : "#bCrossbowman#k") + " from here on out. " + (job == 310 ? "#bHunter#k" : "#bCrossbowman#k") + "s are the intelligent bunch with incredible vision, able to pierce the arrow through the heart of the monsters with ease... please train yourself each and everyday. I'll help you become even stronger than you already are.");
|
||||||
if (cm.getJobId() != job)
|
if (cm.getJobId() != job) {
|
||||||
cm.changeJobById(job);
|
cm.changeJobById(job);
|
||||||
} else if (status == 4)
|
}
|
||||||
|
} else if (status == 4) {
|
||||||
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 310 ? "hunter" : "crossbowman") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 310 ? "hunter" : "crossbowman") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
||||||
else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
||||||
else if (status == 6)
|
} else if (status == 6) {
|
||||||
cm.sendNextPrev((job == 310 ? "Hunter" : "Crossbowman") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
cm.sendNextPrev((job == 310 ? "Hunter" : "Crossbowman") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"]) {
|
} else if (actionx["3thJobI"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
||||||
|
|||||||
@@ -48,25 +48,30 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
status++;
|
status++;
|
||||||
if (status == 0)
|
if (status == 0) {
|
||||||
cm.sendSimple("I'm the head of this hair salon. If you have a #b#t5150001##k or a #b#t5151001##k allow me to take care of your hairdo. Please choose the one you want.\r\n#L1#Haircut: #i5150001##t5150001##l\r\n#L2#Dye your hair: #i5151001##t5151001##l");
|
cm.sendSimple("I'm the head of this hair salon. If you have a #b#t5150001##k or a #b#t5151001##k allow me to take care of your hairdo. Please choose the one you want.\r\n#L1#Haircut: #i5150001##t5150001##l\r\n#L2#Dye your hair: #i5151001##t5151001##l");
|
||||||
else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (selection == 1) {
|
if (selection == 1) {
|
||||||
beauty = 1;
|
beauty = 1;
|
||||||
hairnew = Array();
|
hairnew = Array();
|
||||||
if (cm.getPlayer().getGender() == 0)
|
if (cm.getPlayer().getGender() == 0) {
|
||||||
for(var i = 0; i < mhair_v.length; i++)
|
for (var i = 0; i < mhair_v.length; i++) {
|
||||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
if (cm.getPlayer().getGender() == 1)
|
}
|
||||||
for(var i = 0; i < fhair_v.length; i++)
|
}
|
||||||
|
if (cm.getPlayer().getGender() == 1) {
|
||||||
|
for (var i = 0; i < fhair_v.length; i++) {
|
||||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
|
}
|
||||||
|
}
|
||||||
cm.sendStyle("I can totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150001##k I'll change it for you. Choose the one to your liking~.", hairnew);
|
cm.sendStyle("I can totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150001##k I'll change it for you. Choose the one to your liking~.", hairnew);
|
||||||
} else if (selection == 2) {
|
} else if (selection == 2) {
|
||||||
beauty = 2;
|
beauty = 2;
|
||||||
haircolor = Array();
|
haircolor = Array();
|
||||||
var current = parseInt(cm.getPlayer().getHair() / 10) * 10;
|
var current = parseInt(cm.getPlayer().getHair() / 10) * 10;
|
||||||
for(var i = 0; i < 8; i++)
|
for (var i = 0; i < 8; i++) {
|
||||||
pushIfItemExists(haircolor, current + i);
|
pushIfItemExists(haircolor, current + i);
|
||||||
|
}
|
||||||
cm.sendStyle("I can totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t51051001##k I'll change it for you. Choose the one to your liking.", haircolor);
|
cm.sendStyle("I can totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t51051001##k I'll change it for you. Choose the one to your liking.", haircolor);
|
||||||
}
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
@@ -79,17 +84,19 @@ function action(mode, type, selection) {
|
|||||||
cm.gainItem(5150001, -1);
|
cm.gainItem(5150001, -1);
|
||||||
cm.setHair(hairnew[selection]);
|
cm.setHair(hairnew[selection]);
|
||||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (beauty == 2) {
|
if (beauty == 2) {
|
||||||
if (cm.haveItem(5151001)) {
|
if (cm.haveItem(5151001)) {
|
||||||
cm.gainItem(5151001, -1);
|
cm.gainItem(5151001, -1);
|
||||||
cm.setHair(haircolor[selection]);
|
cm.setHair(haircolor[selection]);
|
||||||
cm.sendOk("Enjoy your new and improved haircolor!");
|
cm.sendOk("Enjoy your new and improved haircolor!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (beauty == 0) {
|
if (beauty == 0) {
|
||||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||||
cm.gainMeso(-hairprice);
|
cm.gainMeso(-hairprice);
|
||||||
@@ -99,9 +106,10 @@ function action(mode, type, selection) {
|
|||||||
cm.gainMeso(-haircolorprice);
|
cm.gainMeso(-haircolorprice);
|
||||||
cm.gainItem(5151001, 1);
|
cm.gainItem(5151001, 1);
|
||||||
cm.sendOk("Enjoy!");
|
cm.sendOk("Enjoy!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ function pushIfItemExists(array, itemid) {
|
|||||||
array.push(itemid);
|
array.push(itemid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -48,10 +49,11 @@ function action(mode, type, selection) {
|
|||||||
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("I'm Brittany the assistant. If you have #b#t5150000##k, #b#t5150010##k or #b#t5151000##k by any chance, then how about letting me change your hairdo?\r\n#L0#Haircut: #i5150000##t5150000##l\r\n#L1#Haircut: #i5150010##t5150010##l\r\n#L2#Dye your hair: #i5151000##t5151000##l");
|
cm.sendSimple("I'm Brittany the assistant. If you have #b#t5150000##k, #b#t5150010##k or #b#t5151000##k by any chance, then how about letting me change your hairdo?\r\n#L0#Haircut: #i5150000##t5150000##l\r\n#L1#Haircut: #i5150010##t5150010##l\r\n#L2#Dye your hair: #i5151000##t5151000##l");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
@@ -59,36 +61,40 @@ function action(mode, type, selection) {
|
|||||||
beauty = 3;
|
beauty = 3;
|
||||||
hairnew = Array();
|
hairnew = Array();
|
||||||
if (cm.getPlayer().getGender() == 0) {
|
if (cm.getPlayer().getGender() == 0) {
|
||||||
for(var i = 0; i < mhair_r.length; i++)
|
for (var i = 0; i < mhair_r.length; i++) {
|
||||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (cm.getPlayer().getGender() == 1) {
|
if (cm.getPlayer().getGender() == 1) {
|
||||||
for(var i = 0; i < fhair_r.length; i++)
|
for (var i = 0; i < fhair_r.length; i++) {
|
||||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150000##k and really change your hairstyle?");
|
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150000##k and really change your hairstyle?");
|
||||||
} else if (selection == 1) {
|
} else if (selection == 1) {
|
||||||
beauty = 1;
|
beauty = 1;
|
||||||
hairnew = Array();
|
hairnew = Array();
|
||||||
if (cm.getPlayer().getGender() == 0) {
|
if (cm.getPlayer().getGender() == 0) {
|
||||||
for(var i = 0; i < mhair_e.length; i++)
|
for (var i = 0; i < mhair_e.length; i++) {
|
||||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (cm.getPlayer().getGender() == 1) {
|
if (cm.getPlayer().getGender() == 1) {
|
||||||
for(var i = 0; i < fhair_e.length; i++)
|
for (var i = 0; i < fhair_e.length; i++) {
|
||||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150010##k and really change your hairstyle?");
|
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150010##k and really change your hairstyle?");
|
||||||
} else if (selection == 2) {
|
} else if (selection == 2) {
|
||||||
beauty = 2;
|
beauty = 2;
|
||||||
haircolor = Array();
|
haircolor = Array();
|
||||||
var current = parseInt(cm.getPlayer().getHair() / 10) * 10;
|
var current = parseInt(cm.getPlayer().getHair() / 10) * 10;
|
||||||
for(var i = 0; i < 8; i++)
|
for (var i = 0; i < 8; i++) {
|
||||||
pushIfItemExists(haircolor, current + i);
|
pushIfItemExists(haircolor, current + i);
|
||||||
|
}
|
||||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151000##k and change it up?");
|
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151000##k and change it up?");
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 2) {
|
||||||
else if (status == 2){
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
if (beauty == 1) {
|
if (beauty == 1) {
|
||||||
if (cm.haveItem(5150010) == true) {
|
if (cm.haveItem(5150010) == true) {
|
||||||
|
|||||||
@@ -35,25 +35,24 @@ function action(mode, type, selection) {
|
|||||||
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("Well, hello! Welcome to the Henesys Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With a #b#t5153000##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L1#Skin Care: #i5153000##t5153000##l");
|
cm.sendSimple("Well, hello! Welcome to the Henesys Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With a #b#t5153000##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L1#Skin Care: #i5153000##t5153000##l");
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if (status == 1) {
|
|
||||||
if (cm.haveItem(5153000)) {
|
if (cm.haveItem(5153000)) {
|
||||||
cm.sendStyle("With our specialized machine, you can see yourself after the treatment in advance. What kind of skin-treatment would you like to do? Choose the style of your liking.", skin);
|
cm.sendStyle("With our specialized machine, you can see yourself after the treatment in advance. What kind of skin-treatment would you like to do? Choose the style of your liking.", skin);
|
||||||
} else {
|
} else {
|
||||||
cm.sendOk("Um... you don't have the skin-care coupon you need to receive the treatment. Sorry, but I am afraid we can't do it for you...");
|
cm.sendOk("Um... you don't have the skin-care coupon you need to receive the treatment. Sorry, but I am afraid we can't do it for you...");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.gainItem(5153000, -1);
|
cm.gainItem(5153000, -1);
|
||||||
cm.setSkin(selection);
|
cm.setSkin(selection);
|
||||||
cm.sendOk("Enjoy your new and improved skin!");
|
cm.sendOk("Enjoy your new and improved skin!");
|
||||||
|
|||||||
@@ -41,10 +41,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (cm.getMapId() == 100000200) {
|
if (cm.getMapId() == 100000200) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
@@ -73,8 +74,7 @@ function action(mode, type, selection) {
|
|||||||
if (!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
|
if (!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
|
||||||
cm.sendOk("Someone is already attempting the PQ. Please wait for them to finish, or find another channel.");
|
cm.sendOk("Someone is already attempting the PQ. Please wait for them to finish, or find another channel.");
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,8 +109,7 @@ function action(mode, type, selection) {
|
|||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (cm.getEventInstance().giveEventReward(cm.getPlayer())) {
|
if (cm.getEventInstance().giveEventReward(cm.getPlayer())) {
|
||||||
cm.warp(100000200);
|
cm.warp(100000200);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.sendOk("It seems you are short on space in one of your inventories. Please check that first to get rewarded properly.");
|
cm.sendOk("It seems you are short on space in one of your inventories. Please check that first to get rewarded properly.");
|
||||||
}
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
* @npc Tommy (HPQ)
|
* @npc Tommy (HPQ)
|
||||||
*/
|
*/
|
||||||
var status = 0;
|
var status = 0;
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -41,18 +42,17 @@ function action(mode, type, selection) {
|
|||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (cm.isEventLeader()) {
|
if (cm.isEventLeader()) {
|
||||||
cm.sendYesNo("What do you think about making your way there with your party members and teach those rowdy pigs a lesson?");
|
cm.sendYesNo("What do you think about making your way there with your party members and teach those rowdy pigs a lesson?");
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.sendOk("Interessed? Tell your party leader to talk to me to head there!");
|
cm.sendOk("Interessed? Tell your party leader to talk to me to head there!");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
cm.getEventInstance().startEventTimer(5 * 60000);
|
cm.getEventInstance().startEventTimer(5 * 60000);
|
||||||
cm.getEventInstance().warpEventTeam(910010200);
|
cm.getEventInstance().warpEventTeam(910010200);
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (cm.getPlayer().getMap().getId() == 910010200) { //Bonus map
|
} else if (cm.getPlayer().getMap().getId() == 910010200) { //Bonus map
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
@@ -60,7 +60,7 @@ function action(mode, type, selection) {
|
|||||||
} else {
|
} else {
|
||||||
cm.warp(910010400);
|
cm.warp(910010400);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (cm.getPlayer().getMap().getId() == 910010300) { //Exit map
|
} else if (cm.getPlayer().getMap().getId() == 910010300) { //Exit map
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
@@ -68,7 +68,7 @@ function action(mode, type, selection) {
|
|||||||
} else {
|
} else {
|
||||||
cm.warp(100000200);
|
cm.warp(100000200);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,16 +23,17 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode < 0) {
|
if (mode < 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
if (mode == 0 && status == 0) {
|
if (mode == 0 && status == 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 0)
|
if (mode == 0) {
|
||||||
status += ((chosen == 2) ? 1 : -1);
|
status += ((chosen == 2) ? 1 : -1);
|
||||||
else
|
} else {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isEventLeader()) {
|
if (cm.isEventLeader()) {
|
||||||
@@ -41,8 +42,9 @@ function action(mode, type, selection) {
|
|||||||
cm.sendSimple("Growl! I am Growlie, always ready to protect this place. What brought you here?\r\n#b#L0# Please tell me what this place is all about.#l\r\n#L2# I would like to leave this place.#l");
|
cm.sendSimple("Growl! I am Growlie, always ready to protect this place. What brought you here?\r\n#b#L0# Please tell me what this place is all about.#l\r\n#L2# I would like to leave this place.#l");
|
||||||
}
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (chosen == -1)
|
if (chosen == -1) {
|
||||||
chosen = selection;
|
chosen = selection;
|
||||||
|
}
|
||||||
if (chosen == 0) {
|
if (chosen == 0) {
|
||||||
cm.sendNext("This place can be best described as the prime spot where you can taste the delicious rice cakes made by Moon Bunny every full moon.");
|
cm.sendNext("This place can be best described as the prime spot where you can taste the delicious rice cakes made by Moon Bunny every full moon.");
|
||||||
} else if (chosen == 1) {
|
} else if (chosen == 1) {
|
||||||
@@ -54,10 +56,9 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
} else if (chosen == 2) {
|
} else if (chosen == 2) {
|
||||||
cm.sendYesNo("Are you sure you want to leave?");
|
cm.sendYesNo("Are you sure you want to leave?");
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (chosen == 0) {
|
if (chosen == 0) {
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ function pushIfItemExists(array, itemid) {
|
|||||||
array.push(itemid);
|
array.push(itemid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -51,10 +52,11 @@ function action(mode, type, selection) {
|
|||||||
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("Hi, I'm #p1012117#, the most charming and stylish stylist around. If you're looking for the best looking hairdos around, look no further!\r\n\#L0##i5150040##t5150040##l\r\n\#L1##i5150044##t5150044##l");
|
cm.sendSimple("Hi, I'm #p1012117#, the most charming and stylish stylist around. If you're looking for the best looking hairdos around, look no further!\r\n\#L0##i5150040##t5150040##l\r\n\#L1##i5150044##t5150044##l");
|
||||||
@@ -70,8 +72,7 @@ function action(mode, type, selection) {
|
|||||||
for (var i = 0; i < mhair_v.length; i++) {
|
for (var i = 0; i < mhair_v.length; i++) {
|
||||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
for (var i = 0; i < fhair_v.length; i++) {
|
for (var i = 0; i < fhair_v.length; i++) {
|
||||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
@@ -87,8 +88,7 @@ function action(mode, type, selection) {
|
|||||||
for (var i = 0; i < mhair_r.length; i++) {
|
for (var i = 0; i < mhair_r.length; i++) {
|
||||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
for (var i = 0; i < fhair_r.length; i++) {
|
for (var i = 0; i < fhair_r.length; i++) {
|
||||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ function action(mode, type, selection) {
|
|||||||
if (cm.getLevel() >= 20) {
|
if (cm.getLevel() >= 20) {
|
||||||
cm.sendOk("This training ground is available only for those under level 20.");
|
cm.sendOk("This training ground is available only for those under level 20.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
|
} else if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
|
||||||
cm.sendYesNo("Would you like to go in the special Training Center?");
|
cm.sendYesNo("Would you like to go in the special Training Center?");
|
||||||
status = 1;
|
status = 1;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ function action(mode, type, selection) {
|
|||||||
if (cm.getLevel() >= 20) {
|
if (cm.getLevel() >= 20) {
|
||||||
cm.sendOk("This training ground is available only for those under level 20.");
|
cm.sendOk("This training ground is available only for those under level 20.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
|
} else if (cm.isQuestActive(22515) || cm.isQuestActive(22516) || cm.isQuestActive(22517) || cm.isQuestActive(22518)) {
|
||||||
cm.sendYesNo("Would you like to enter the special Training Center?");
|
cm.sendYesNo("Would you like to enter the special Training Center?");
|
||||||
status = 1;
|
status = 1;
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if(mode == 0)
|
if (mode == 0) {
|
||||||
cm.sendNext("If you wish to experience what it's like to be a Bowman, come see me again.");
|
cm.sendNext("If you wish to experience what it's like to be a Bowman, come see me again.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if(mode == 0)
|
if (mode == 0) {
|
||||||
cm.sendNext("If you wish to experience what it's like to be a Magician, come see me again.");
|
cm.sendNext("If you wish to experience what it's like to be a Magician, come see me again.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if(mode == 0)
|
if (mode == 0) {
|
||||||
cm.sendNext("If you wish to experience what it's like to be a Warrior, come see me again.");
|
cm.sendNext("If you wish to experience what it's like to be a Warrior, come see me again.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if(mode == 0)
|
if (mode == 0) {
|
||||||
cm.sendNext("If you wish to experience what it's like to be a Thief, come see me again.");
|
cm.sendNext("If you wish to experience what it's like to be a Thief, come see me again.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
if (mode != 1) {
|
if (mode != 1) {
|
||||||
if(mode == 0)
|
if (mode == 0) {
|
||||||
cm.sendNext("If you wish to experience what it's like to be a Pirate, come see me again.");
|
cm.sendNext("If you wish to experience what it's like to be a Pirate, come see me again.");
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,13 +51,14 @@ function start() {
|
|||||||
cm.sendNext("Do you want to become a #rwarrior#k? You need to meet some criteria in order to do so.#b You should be at least in level 10, and at least " + cm.getFirstJobStatRequirement(jobType) + "#k. Let's see..."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
cm.sendNext("Do you want to become a #rwarrior#k? You need to meet some criteria in order to do so.#b You should be at least in level 10, and at least " + cm.getFirstJobStatRequirement(jobType) + "#k. Let's see..."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
||||||
} else if (cm.getLevel() >= 30 && cm.getJobId() == 100) {
|
} else if (cm.getLevel() >= 30 && cm.getJobId() == 100) {
|
||||||
actionx["2ndJob"] = true;
|
actionx["2ndJob"] = true;
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendNext("Oh... you came back safe! I knew you'd breeze through. I'll admit, you are a strong, formidable Warrior! Alright, I'll make you an even stronger Warrior than you already are. But before that, you need to choose one of the three paths that you'll be given. It isn't going to be easy, so if you have and questions, feel free to ask.");
|
cm.sendNext("Oh... you came back safe! I knew you'd breeze through. I'll admit, you are a strong, formidable Warrior! Alright, I'll make you an even stronger Warrior than you already are. But before that, you need to choose one of the three paths that you'll be given. It isn't going to be easy, so if you have and questions, feel free to ask.");
|
||||||
else if (cm.haveItem(4031008)){
|
} else if (cm.haveItem(4031008)) {
|
||||||
cm.sendOk("Go and see the #b#p1072000##k.");
|
cm.sendOk("Go and see the #b#p1072000##k.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else
|
} else {
|
||||||
cm.sendNext("The progress you have made is astonishing.");
|
cm.sendNext("The progress you have made is astonishing.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && (cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 1 && !cm.getPlayer().gotPartyQuestItem("JBP")))) {
|
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && (cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 1 && !cm.getPlayer().gotPartyQuestItem("JBP")))) {
|
||||||
actionx["3thJobI"] = true;
|
actionx["3thJobI"] = true;
|
||||||
cm.sendNext("I was waiting for you. Few days ago, I heard about you from #b#p2020008##k in Ossyria. Well... I'd like to test your strength. There is a secret passage near the ant tunnel. Nobody but you can go into that passage. If you go into the passage, you will meat my the other self. Beat him and bring #b#t4031059##k to me.");
|
cm.sendNext("I was waiting for you. Few days ago, I heard about you from #b#p2020008##k in Ossyria. Well... I'd like to test your strength. There is a secret passage near the ant tunnel. Nobody but you can go into that passage. If you go into the passage, you will meat my the other self. Beat him and bring #b#t4031059##k to me.");
|
||||||
@@ -109,8 +110,9 @@ function action(mode, type, selection) {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJob"] && status == 1)) {
|
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJob"] && status == 1)) {
|
||||||
if (mode == 0 && status == 2 && type == 1)
|
if (mode == 0 && status == 2 && type == 1) {
|
||||||
cm.sendOk("Make up your mind and visit me again.");
|
cm.sendOk("Make up your mind and visit me again.");
|
||||||
|
}
|
||||||
if (!(mode == 0 && type != 1)) {
|
if (!(mode == 0 && type != 1)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
@@ -139,25 +141,29 @@ function action(mode, type, selection) {
|
|||||||
cm.sendNext("Make some room in your inventory and talk back to me.");
|
cm.sendNext("Make some room in your inventory and talk back to me.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Warrior.");
|
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Warrior.");
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
} else if (actionx["2ndJob"]) {
|
} else if (actionx["2ndJob"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Fighter is all about.\r\n#L1#Please explain to me what being the Page is all about.\r\n#L2#Please explain to me what being the Spearman is all about.\r\n#L3#I'll choose my occupation!");
|
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Fighter is all about.\r\n#L1#Please explain to me what being the Page is all about.\r\n#L2#Please explain to me what being the Spearman is all about.\r\n#L3#I'll choose my occupation!");
|
||||||
else {
|
} else {
|
||||||
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
||||||
if(!cm.isQuestStarted(100003)) cm.startQuest(100003);
|
if (!cm.isQuestStarted(100003)) {
|
||||||
|
cm.startQuest(100003);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (!cm.haveItem(4031012)) {
|
if (!cm.haveItem(4031012)) {
|
||||||
if (cm.canHold(4031008)) {
|
if (cm.canHold(4031008)) {
|
||||||
if(!cm.haveItem(4031008))
|
if (!cm.haveItem(4031008)) {
|
||||||
cm.gainItem(4031008, 1);
|
cm.gainItem(4031008, 1);
|
||||||
|
}
|
||||||
cm.sendNextPrev("Please get this letter to #b#p1072000##k who's around #b#m102020300##k near Perion. He is taking care of the job of an instructor in place of me. Give him the letter and he'll test you in place of me. Best of luck to you.");
|
cm.sendNextPrev("Please get this letter to #b#p1072000##k who's around #b#m102020300##k near Perion. He is taking care of the job of an instructor in place of me. Give him the letter and he'll test you in place of me. Best of luck to you.");
|
||||||
} else {
|
} else {
|
||||||
cm.sendNext("Please, make some space in your inventory.");
|
cm.sendNext("Please, make some space in your inventory.");
|
||||||
@@ -174,9 +180,10 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
status -= 2;
|
status -= 2;
|
||||||
} else
|
} else {
|
||||||
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Fighter\r\n#L1#Page\r\n#L2#Spearman");
|
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Fighter\r\n#L1#Page\r\n#L2#Spearman");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (cm.haveItem(4031008)) {
|
if (cm.haveItem(4031008)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
@@ -185,21 +192,28 @@ function action(mode, type, selection) {
|
|||||||
job += selection * 10;
|
job += selection * 10;
|
||||||
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 110 ? "#bFighter#k" : job == 120 ? "#bPage#k" : "#bSpearman#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right? Are you sure about this?");
|
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 110 ? "#bFighter#k" : job == 120 ? "#bPage#k" : "#bSpearman#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right? Are you sure about this?");
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.gainItem(4031012, -1);
|
cm.gainItem(4031012, -1);
|
||||||
|
}
|
||||||
cm.completeQuest(100005);
|
cm.completeQuest(100005);
|
||||||
|
|
||||||
if(job == 110) cm.sendNext("Alright, you have now become the #bFighter#k. A fighter strives to become the strongest of the strong, and never stops fighting. Don't ever lose that will to fight, and push forward 24/7. I'll help you become even stronger than you already are.");
|
if (job == 110) {
|
||||||
else if(job == 120) cm.sendNext("Alright, you have now become a #bPage#k! Pages have high intelligence and bravery, which I hope you'll employ throughout your journey to the right path. I'll help you become much stronger than you already are.");
|
cm.sendNext("Alright, you have now become the #bFighter#k. A fighter strives to become the strongest of the strong, and never stops fighting. Don't ever lose that will to fight, and push forward 24/7. I'll help you become even stronger than you already are.");
|
||||||
else cm.sendNext("Alright, you have now become the #bSpearman#k. The Spearman use the power of darkness to take out the enemies, always in shadows... Please believe in yourself and your awesome power as you go in your journey. I'll help you become much stronger than you are right now.");
|
} else if (job == 120) {
|
||||||
if (cm.getJobId() != job)
|
cm.sendNext("Alright, you have now become a #bPage#k! Pages have high intelligence and bravery, which I hope you'll employ throughout your journey to the right path. I'll help you become much stronger than you already are.");
|
||||||
|
} else {
|
||||||
|
cm.sendNext("Alright, you have now become the #bSpearman#k. The Spearman use the power of darkness to take out the enemies, always in shadows... Please believe in yourself and your awesome power as you go in your journey. I'll help you become much stronger than you are right now.");
|
||||||
|
}
|
||||||
|
if (cm.getJobId() != job) {
|
||||||
cm.changeJobById(job);
|
cm.changeJobById(job);
|
||||||
} else if (status == 4)
|
}
|
||||||
|
} else if (status == 4) {
|
||||||
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 110 ? "fighter" : job == 120 ? "page" : "spearman") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 110 ? "fighter" : job == 120 ? "page" : "spearman") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
||||||
else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
||||||
else if (status == 6)
|
} else if (status == 6) {
|
||||||
cm.sendNextPrev((job == 110 ? "Fighter" : job == 120 ? "Page" : "Spearman") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
cm.sendNextPrev((job == 110 ? "Fighter" : job == 120 ? "Page" : "Spearman") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"]) {
|
} else if (actionx["3thJobI"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
||||||
|
|||||||
@@ -20,17 +20,20 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
var selStr = "";
|
var selStr = "";
|
||||||
if (cm.getJobId() == 0)
|
if (cm.getJobId() == 0) {
|
||||||
selStr += "We have a special 90% discount for beginners.";
|
selStr += "We have a special 90% discount for beginners.";
|
||||||
|
}
|
||||||
selStr += "Choose your destination, for fees will change from place to place.#b";
|
selStr += "Choose your destination, for fees will change from place to place.#b";
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
||||||
|
|||||||
@@ -45,80 +45,76 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
var selStr = "Hm? Who might you be? Oh, you've heard about my forging skills? In that case, I'd be glad to process some of your ores... for a fee.#b"
|
var selStr = "Hm? Who might you be? Oh, you've heard about my forging skills? In that case, I'd be glad to process some of your ores... for a fee.#b"
|
||||||
var options = new Array("Refine a mineral ore","Refine a jewel ore","Upgrade a helmet","Upgrade a shield");
|
var options = ["Refine a mineral ore", "Refine a jewel ore", "Upgrade a helmet", "Upgrade a shield"];
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (status == 1 && mode == 1) {
|
||||||
else if (status == 1 && mode == 1) {
|
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
if (selectedType == 0) { //mineral refine
|
if (selectedType == 0) { //mineral refine
|
||||||
var selStr = "So, what kind of mineral ore would you like to refine?#b";
|
var selStr = "So, what kind of mineral ore would you like to refine?#b";
|
||||||
var minerals = new Array ("Bronze","Steel","Mithril","Adamantium","Silver","Orihalcon","Gold");
|
var minerals = ["Bronze", "Steel", "Mithril", "Adamantium", "Silver", "Orihalcon", "Gold"];
|
||||||
for (var i = 0; i < minerals.length; i++) {
|
for (var i = 0; i < minerals.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + minerals[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + minerals[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = false;
|
equip = false;
|
||||||
}
|
} else if (selectedType == 1) { //jewel refine
|
||||||
else if (selectedType == 1){ //jewel refine
|
|
||||||
var selStr = "So, what kind of jewel ore would you like to refine?#b";
|
var selStr = "So, what kind of jewel ore would you like to refine?#b";
|
||||||
var jewels = new Array ("Garnet","Amethyst","Aquamarine","Emerald","Opal","Sapphire","Topaz","Diamond","Black Crystal");
|
var jewels = ["Garnet", "Amethyst", "Aquamarine", "Emerald", "Opal", "Sapphire", "Topaz", "Diamond", "Black Crystal"];
|
||||||
for (var i = 0; i < jewels.length; i++) {
|
for (var i = 0; i < jewels.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + jewels[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + jewels[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = false;
|
equip = false;
|
||||||
}
|
} else if (selectedType == 2) { //helmet refine
|
||||||
else if (selectedType == 2){ //helmet refine
|
|
||||||
var selStr = "Ah, you wish to upgrade a helmet? Then tell me, which one?#b";
|
var selStr = "Ah, you wish to upgrade a helmet? Then tell me, which one?#b";
|
||||||
var helmets = new Array ("Blue Metal Gear#k - Common Lv. 15#b","Yellow Metal Gear#k - Common Lv. 15#b","Metal Koif#k - Warrior Lv. 10#b","Mithril Koif#k - Warrior Lv. 10#b","Steel Helmet#k - Warrior Lv. 12#b","Mithril Helmet#k - Warrior Lv. 12#b","Steel Full Helm#k - Warrior Lv. 15#b",
|
var helmets = ["Blue Metal Gear#k - Common Lv. 15#b", "Yellow Metal Gear#k - Common Lv. 15#b", "Metal Koif#k - Warrior Lv. 10#b", "Mithril Koif#k - Warrior Lv. 10#b", "Steel Helmet#k - Warrior Lv. 12#b", "Mithril Helmet#k - Warrior Lv. 12#b", "Steel Full Helm#k - Warrior Lv. 15#b",
|
||||||
"Mithril Full Helm#k - Warrior Lv. 15#b", "Iron Viking Helm#k - Warrior Lv. 20#b", "Mithril Viking Helm#k - Warrior Lv. 20#b", "Steel Football Helmet#k - Warrior Lv. 20#b", "Mithrill Football Helmet#k - Warrior Lv. 20#b", "Mithril Sharp Helm#k - Warrior Lv. 22#b", "Gold Sharp Helm#k - Warrior Lv. 22#b",
|
"Mithril Full Helm#k - Warrior Lv. 15#b", "Iron Viking Helm#k - Warrior Lv. 20#b", "Mithril Viking Helm#k - Warrior Lv. 20#b", "Steel Football Helmet#k - Warrior Lv. 20#b", "Mithrill Football Helmet#k - Warrior Lv. 20#b", "Mithril Sharp Helm#k - Warrior Lv. 22#b", "Gold Sharp Helm#k - Warrior Lv. 22#b",
|
||||||
"Orihalcon Burgernet Helm#k - Warrior Lv. 25#b", "Gold Burgernet Helm#k - Warrior Lv. 25#b", "Great Red Helmet#k - Warrior Lv. 35#b", "Great Blue Helmet#k - Warrior Lv. 35#b", "Mithril Nordic Helm#k - Warrior Lv. 40#b", "Gold Nordic Helm#k - Warrior Lv. 40#b", "Mithril Crusader Helm#k - Warrior Lv. 50#b",
|
"Orihalcon Burgernet Helm#k - Warrior Lv. 25#b", "Gold Burgernet Helm#k - Warrior Lv. 25#b", "Great Red Helmet#k - Warrior Lv. 35#b", "Great Blue Helmet#k - Warrior Lv. 35#b", "Mithril Nordic Helm#k - Warrior Lv. 40#b", "Gold Nordic Helm#k - Warrior Lv. 40#b", "Mithril Crusader Helm#k - Warrior Lv. 50#b",
|
||||||
"Silver Crusader Helm#k - Warrior Lv. 50#b","Old Steel Nordic Helm#k - Warrior Lv. 55#b","Old Mithril Nordic Helm#k - Warrior Lv. 55#b");
|
"Silver Crusader Helm#k - Warrior Lv. 50#b", "Old Steel Nordic Helm#k - Warrior Lv. 55#b", "Old Mithril Nordic Helm#k - Warrior Lv. 55#b"];
|
||||||
for (var i = 0; i < helmets.length; i++) {
|
for (var i = 0; i < helmets.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + helmets[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + helmets[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = true;
|
equip = true;
|
||||||
}
|
} else if (selectedType == 3) { //shield refine
|
||||||
else if (selectedType == 3){ //shield refine
|
|
||||||
var selStr = "Ah, you wish to upgrade a shield? Then tell me, which one?#b";
|
var selStr = "Ah, you wish to upgrade a shield? Then tell me, which one?#b";
|
||||||
var shields = new Array ("Adamantium Tower Shield#k - Warrior Lv. 40#b","Mithril Tower Shield#k - Warrior Lv. 40#b","Silver Legend Shield#k - Warrior Lv. 60#b","Adamantium Legend Shield#k - Warrior Lv. 60#b");
|
var shields = ["Adamantium Tower Shield#k - Warrior Lv. 40#b", "Mithril Tower Shield#k - Warrior Lv. 40#b", "Silver Legend Shield#k - Warrior Lv. 60#b", "Adamantium Legend Shield#k - Warrior Lv. 60#b"];
|
||||||
for (var i = 0; i < shields.length; i++) {
|
for (var i = 0; i < shields.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + shields[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + shields[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = true;
|
equip = true;
|
||||||
}
|
}
|
||||||
if (equip)
|
if (equip) {
|
||||||
status++;
|
status++;
|
||||||
}
|
}
|
||||||
else if (status == 2 && mode == 1) {
|
} else if (status == 2 && mode == 1) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
if (selectedType == 0) { //mineral refine
|
if (selectedType == 0) { //mineral refine
|
||||||
var itemSet = new Array(4011000,4011001,4011002,4011003,4011004,4011005,4011006);
|
var itemSet = [4011000, 4011001, 4011002, 4011003, 4011004, 4011005, 4011006];
|
||||||
var matSet = new Array(4010000,4010001,4010002,4010003,4010004,4010005,4010006);
|
var matSet = [4010000, 4010001, 4010002, 4010003, 4010004, 4010005, 4010006];
|
||||||
var matQtySet = new Array(10,10,10,10,10,10,10);
|
var matQtySet = [10, 10, 10, 10, 10, 10, 10];
|
||||||
var costSet = new Array(300,300,300,500,500,500,800);
|
var costSet = [300, 300, 300, 500, 500, 500, 800];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 1) { //jewel refine
|
||||||
else if (selectedType == 1){ //jewel refine
|
var itemSet = [4021000, 4021001, 4021002, 4021003, 4021004, 4021005, 4021006, 4021007, 4021008];
|
||||||
var itemSet = new Array(4021000,4021001,4021002,4021003,4021004,4021005,4021006,4021007,4021008);
|
var matSet = [4020000, 4020001, 4020002, 4020003, 4020004, 4020005, 4020006, 4020007, 4020008];
|
||||||
var matSet = new Array(4020000,4020001,4020002,4020003,4020004,4020005,4020006,4020007,4020008);
|
var matQtySet = [10, 10, 10, 10, 10, 10, 10, 10, 10];
|
||||||
var matQtySet = new Array(10,10,10,10,10,10,10,10,10);
|
var costSet = [500, 500, 500, 500, 500, 500, 500, 1000, 3000];
|
||||||
var costSet = new Array (500,500,500,500,500,500,500,1000,3000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -128,87 +124,86 @@ function action(mode, type, selection) {
|
|||||||
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
||||||
|
|
||||||
cm.sendGetNumber(prompt, 1, 1, 100)
|
cm.sendGetNumber(prompt, 1, 1, 100)
|
||||||
}
|
} else if (status == 3 && mode == 1) {
|
||||||
else if (status == 3 && mode == 1) {
|
if (equip) {
|
||||||
if (equip)
|
|
||||||
{
|
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
qty = 1;
|
qty = 1;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedType == 2) { //helmet refine
|
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);
|
var itemSet = [1002042, 1002041, 1002002, 1002044, 1002003, 1002040, 1002007, 1002052, 1002011, 1002058, 1002009, 1002056, 1002087, 1002088, 1002050, 1002049, 1002047, 1002048, 1002099, 1002098, 1002085, 1002028, 1002022, 1002101];
|
||||||
var matSet = new Array(new Array(1002001,4011002),new Array(1002001,4021006),new Array(1002043,4011001),new Array(1002043,4011002),new Array(1002039,4011001),new Array(1002039,4011002),new Array(1002051,4011001),new Array(1002051,4011002),new Array(1002059,4011001),new Array(1002059,4011002),
|
var matSet = [[1002001, 4011002], [1002001, 4021006], [1002043, 4011001], [1002043, 4011002], [1002039, 4011001], [1002039, 4011002], [1002051, 4011001], [1002051, 4011002], [1002059, 4011001], [1002059, 4011002],
|
||||||
new Array(1002055,4011001),new Array(1002055,4011002),new Array(1002027,4011002),new Array(1002027,4011006),new Array(1002005,4011005),new Array(1002005,4011006),new Array(1002004,4021000),new Array(1002004,4021005),new Array(1002021,4011002),new Array(1002021,4011006),new Array(1002086,4011002),
|
[1002055, 4011001], [1002055, 4011002], [1002027, 4011002], [1002027, 4011006], [1002005, 4011005], [1002005, 4011006], [1002004, 4021000], [1002004, 4021005], [1002021, 4011002], [1002021, 4011006], [1002086, 4011002],
|
||||||
new Array(1002086,4011004),new Array(1002100,4011007,4011001),new Array(1002100,4011007,4011002));
|
[1002086, 4011004], [1002100, 4011007, 4011001], [1002100, 4011007, 4011002]];
|
||||||
var matQtySet = new Array(new Array(1,1),new Array(1,1),new Array(1,1),new Array(1,1),new Array(1,1),new Array(1,1),new Array(1,2),new Array(1,2),new Array(1,3),new Array(1,3),new Array(1,3),new Array(1,3),new Array(1,4),new Array(1,4),new Array(1,5),new Array(1,5),new Array(1,3),new Array(1,3),
|
var matQtySet = [[1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 2], [1, 2], [1, 3], [1, 3], [1, 3], [1, 3], [1, 4], [1, 4], [1, 5], [1, 5], [1, 3], [1, 3],
|
||||||
new Array(1,5),new Array(1,6),new Array(1,5),new Array(1,4),new Array(1,1,7),new Array(1,1,7));
|
[1, 5], [1, 6], [1, 5], [1, 4], [1, 1, 7], [1, 1, 7]];
|
||||||
var costSet = new Array(500,300,500,800,500,800,1000,1500,1500,2000,1500,2000,2000,4000,4000,5000,8000,10000,12000,15000,20000,25000,30000,30000);
|
var costSet = [500, 300, 500, 800, 500, 800, 1000, 1500, 1500, 2000, 1500, 2000, 2000, 4000, 4000, 5000, 8000, 10000, 12000, 15000, 20000, 25000, 30000, 30000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 3) { //shield refine
|
||||||
else if (selectedType == 3){ //shield refine
|
var itemSet = [1092014, 1092013, 1092010, 1092011];
|
||||||
var itemSet = new Array (1092014,1092013,1092010,1092011);
|
var matSet = [[1092012, 4011003], [1092012, 4011002], [1092009, 4011007, 4011004], [1092009, 4011007, 4011003]];
|
||||||
var matSet = new Array(new Array (1092012,4011003),new Array (1092012,4011002),new Array (1092009,4011007,4011004),new Array (1092009,4011007,4011003));
|
var matQtySet = [[1, 10], [1, 10], [1, 1, 15], [1, 1, 15]];
|
||||||
var matQtySet = new Array (new Array (1,10),new Array (1,10),new Array (1,1,15),new Array (1,1,15));
|
var costSet = [100000, 100000, 120000, 120000];
|
||||||
var costSet = new Array (100000,100000,120000,120000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
}
|
||||||
var prompt = "You want me to make ";
|
var prompt = "You want me to make ";
|
||||||
if (qty == 1)
|
if (qty == 1) {
|
||||||
prompt += "a #t" + item + "#?";
|
prompt += "a #t" + item + "#?";
|
||||||
else
|
} else {
|
||||||
prompt += qty + " #t" + item + "#?";
|
prompt += qty + " #t" + item + "#?";
|
||||||
|
}
|
||||||
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
||||||
if (mats instanceof Array)
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; i < mats.length; i++)
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
||||||
else {
|
}
|
||||||
|
} else {
|
||||||
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
||||||
}
|
}
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
||||||
cm.sendYesNo(prompt);
|
|
||||||
}
|
}
|
||||||
else if (status == 4 && mode == 1) {
|
cm.sendYesNo(prompt);
|
||||||
|
} else if (status == 4 && mode == 1) {
|
||||||
var complete = true;
|
var complete = true;
|
||||||
|
|
||||||
if (!cm.canHold(item, qty)) {
|
if (!cm.canHold(item, qty)) {
|
||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost * qty) {
|
||||||
else if (cm.getMeso() < cost * qty)
|
|
||||||
{
|
|
||||||
cm.sendOk("I'm afraid you cannot afford my services.");
|
cm.sendOk("I'm afraid you cannot afford my services.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
if (!cm.haveItem(mats[i], matQty[i] * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty * qty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
if (!complete)
|
}
|
||||||
|
if (!complete) {
|
||||||
cm.sendOk("I'm afraid you're missing something for the item you want. See you another time, yes?");
|
cm.sendOk("I'm afraid you're missing something for the item you want. See you another time, yes?");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array)
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++)
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i] * qty);
|
cm.gainItem(mats[i], -matQty[i] * qty);
|
||||||
else
|
}
|
||||||
|
} else {
|
||||||
cm.gainItem(mats, -matQty * qty);
|
cm.gainItem(mats, -matQty * qty);
|
||||||
|
}
|
||||||
cm.gainMeso(-cost * qty);
|
cm.gainMeso(-cost * qty);
|
||||||
cm.gainItem(item, qty);
|
cm.gainItem(item, qty);
|
||||||
cm.sendOk("There, finished. What do you think, a piece of art, isn't it? Well, if you need anything else, you nkow where to find me.");
|
cm.sendOk("There, finished. What do you think, a piece of art, isn't it? Well, if you need anything else, you nkow where to find me.");
|
||||||
|
|||||||
@@ -44,61 +44,59 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
var selStr = "Um... Hi, I'm Mr. Thunder's apprentice. He's getting up there in age, so he handles most of the heavy-duty work while I handle some of the lighter jobs. What can I do for you?#b"
|
var selStr = "Um... Hi, I'm Mr. Thunder's apprentice. He's getting up there in age, so he handles most of the heavy-duty work while I handle some of the lighter jobs. What can I do for you?#b"
|
||||||
var options = new Array("Make a glove","Upgrade a glove","Create materials");
|
var options = ["Make a glove", "Upgrade a glove", "Create materials"];
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (status == 1 && mode == 1) {
|
||||||
else if (status == 1 && mode == 1) {
|
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
if (selectedType == 0) { //glove refine
|
if (selectedType == 0) { //glove refine
|
||||||
var selStr = "Okay, so which glove do you want me to make?#b";
|
var selStr = "Okay, so which glove do you want me to make?#b";
|
||||||
var items = new Array ("Juno#k - Warrior Lv. 10#b","Steel Fingerless Gloves#k - Warrior Lv. 15#b","Venon#k - Warrior Lv. 20#b","White Fingerless Gloves#k - Warrior Lv. 25#b",
|
var items = ["Juno#k - Warrior Lv. 10#b", "Steel Fingerless Gloves#k - Warrior Lv. 15#b", "Venon#k - Warrior Lv. 20#b", "White Fingerless Gloves#k - Warrior Lv. 25#b",
|
||||||
"Bronze Missel#k - Warrior Lv. 30#b","Steel Briggon#k - Warrior Lv. 35#b","Iron Knuckle#k - Warrior Lv. 40#b","Steel Brist#k - Warrior Lv. 50#b","Bronze Clench#k - Warrior Lv. 60#b");
|
"Bronze Missel#k - Warrior Lv. 30#b", "Steel Briggon#k - Warrior Lv. 35#b", "Iron Knuckle#k - Warrior Lv. 40#b", "Steel Brist#k - Warrior Lv. 50#b", "Bronze Clench#k - Warrior Lv. 60#b"];
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = true;
|
equip = true;
|
||||||
}
|
} else if (selectedType == 1) { //glove upgrade
|
||||||
else if (selectedType == 1){ //glove upgrade
|
|
||||||
var selStr = "Upgrade a glove? That shouldn't be too difficult. Which did you have in mind?#b";
|
var selStr = "Upgrade a glove? That shouldn't be too difficult. Which did you have in mind?#b";
|
||||||
var crystals = new Array ("Steel Missel#k - Warrior Lv. 30#b","Orihalcon Missel#k - Warrior Lv. 30#b","Yellow Briggon#k - Warrior Lv. 35#b","Dark Briggon#k - Warrior Lv. 35#b",
|
var crystals = ["Steel Missel#k - Warrior Lv. 30#b", "Orihalcon Missel#k - Warrior Lv. 30#b", "Yellow Briggon#k - Warrior Lv. 35#b", "Dark Briggon#k - Warrior Lv. 35#b",
|
||||||
"Adamantium Knuckle#k - Warrior Lv. 40#b", "Dark Knuckle#k - Warrior Lv. 40#b", "Mithril Brist#k - Warrior Lv. 50#b", "Gold Brist#k - Warrior Lv. 50#b",
|
"Adamantium Knuckle#k - Warrior Lv. 40#b", "Dark Knuckle#k - Warrior Lv. 40#b", "Mithril Brist#k - Warrior Lv. 50#b", "Gold Brist#k - Warrior Lv. 50#b",
|
||||||
"Sapphire Clench#k - Warrior Lv. 60#b","Dark Clench#k - Warrior Lv. 60#b");
|
"Sapphire Clench#k - Warrior Lv. 60#b", "Dark Clench#k - Warrior Lv. 60#b"];
|
||||||
for (var i = 0; i < crystals.length; i++) {
|
for (var i = 0; i < crystals.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + crystals[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + crystals[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = true;
|
equip = true;
|
||||||
}
|
} else if (selectedType == 2) { //material refine
|
||||||
else if (selectedType == 2){ //material refine
|
|
||||||
var selStr = "Materials? I know of a few materials that I can make for you...#b";
|
var selStr = "Materials? I know of a few materials that I can make for you...#b";
|
||||||
var materials = new Array ("Make Processed Wood with Tree Branch","Make Processed Wood with Firewood","Make Screws (packs of 15)");
|
var materials = ["Make Processed Wood with Tree Branch", "Make Processed Wood with Firewood", "Make Screws (packs of 15)"];
|
||||||
for (var i = 0; i < materials.length; i++) {
|
for (var i = 0; i < materials.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + materials[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + materials[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
equip = false;
|
equip = false;
|
||||||
}
|
}
|
||||||
if (equip)
|
if (equip) {
|
||||||
status++;
|
status++;
|
||||||
}
|
}
|
||||||
else if (status == 2 && mode == 1) {
|
} else if (status == 2 && mode == 1) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
if (selectedType == 2) { //material refine
|
if (selectedType == 2) { //material refine
|
||||||
var itemSet = new Array (4003001,4003001,4003000);
|
var itemSet = [4003001, 4003001, 4003000];
|
||||||
var matSet = new Array(4000003,4000018,new Array (4011000,4011001));
|
var matSet = [4000003, 4000018, [4011000, 4011001]];
|
||||||
var matQtySet = new Array (10,5,new Array (1,1));
|
var matQtySet = [10, 5, [1, 1]];
|
||||||
var costSet = new Array (0,0,0);
|
var costSet = [0, 0, 0];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -108,33 +106,30 @@ function action(mode, type, selection) {
|
|||||||
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
||||||
|
|
||||||
cm.sendGetNumber(prompt, 1, 1, 100)
|
cm.sendGetNumber(prompt, 1, 1, 100)
|
||||||
}
|
} else if (status == 3 && mode == 1) {
|
||||||
else if (status == 3 && mode == 1) {
|
if (equip) {
|
||||||
if (equip)
|
|
||||||
{
|
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
qty = 1;
|
qty = 1;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedType == 0) { //glove refine
|
if (selectedType == 0) { //glove refine
|
||||||
var itemSet = new Array(1082003,1082000,1082004,1082001,1082007,1082008,1082023,1082009,1082059);
|
var itemSet = [1082003, 1082000, 1082004, 1082001, 1082007, 1082008, 1082023, 1082009, 1082059];
|
||||||
var matSet = new Array(new Array(4000021,4011001),4011001,new Array(4000021,4011000),4011001,new Array(4011000,4011001,4003000),new Array(4000021,4011001,4003000),new Array(4000021,4011001,4003000),
|
var matSet = [[4000021, 4011001], 4011001, [4000021, 4011000], 4011001, [4011000, 4011001, 4003000], [4000021, 4011001, 4003000], [4000021, 4011001, 4003000],
|
||||||
new Array(4011001,4021007,4000030,4003000),new Array(4011007,4011000,4011006,4000030,4003000));
|
[4011001, 4021007, 4000030, 4003000], [4011007, 4011000, 4011006, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(new Array(15,1),2,new Array(40,2),2,new Array(3,2,15),new Array(30,4,15),new Array(50,5,40),new Array(3,2,30,45),new Array(1,8,2,50,50));
|
var matQtySet = [[15, 1], 2, [40, 2], 2, [3, 2, 15], [30, 4, 15], [50, 5, 40], [3, 2, 30, 45], [1, 8, 2, 50, 50]];
|
||||||
var costSet = new Array(1000,2000,5000,10000,20000,30000,40000,50000,70000);
|
var costSet = [1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 70000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 1) { //glove upgrade
|
||||||
else if (selectedType == 1){ //glove upgrade
|
var itemSet = [1082005, 1082006, 1082035, 1082036, 1082024, 1082025, 1082010, 1082011, 1082060, 1082061];
|
||||||
var itemSet = new Array(1082005,1082006,1082035,1082036,1082024,1082025,1082010,1082011,1082060,1082061);
|
var matSet = [[1082007, 4011001], [1082007, 4011005], [1082008, 4021006], [1082008, 4021008], [1082023, 4011003], [1082023, 4021008],
|
||||||
var matSet = new Array(new Array(1082007,4011001),new Array(1082007,4011005),new Array(1082008,4021006),new Array(1082008,4021008),new Array(1082023,4011003),new Array(1082023,4021008),
|
[1082009, 4011002], [1082009, 4011006], [1082059, 4011002, 4021005], [1082059, 4021007, 4021008]];
|
||||||
new Array(1082009,4011002),new Array(1082009,4011006),new Array(1082059,4011002,4021005),new Array(1082059,4021007,4021008));
|
var matQtySet = [[1, 1], [1, 2], [1, 3], [1, 1], [1, 4], [1, 2], [1, 5], [1, 4], [1, 3, 5], [1, 2, 2]];
|
||||||
var matQtySet = new Array (new Array(1,1),new Array(1,2),new Array(1,3),new Array(1,1),new Array(1,4),new Array(1,2),new Array(1,5),new Array(1,4),new Array(1,3,5),new Array(1,2,2));
|
var costSet = [20000, 25000, 30000, 40000, 45000, 50000, 55000, 60000, 70000, 80000];
|
||||||
var costSet = new Array (20000,25000,30000,40000,45000,50000,55000,60000,70000,80000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -142,10 +137,11 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var prompt = "You want me to make ";
|
var prompt = "You want me to make ";
|
||||||
if (qty == 1)
|
if (qty == 1) {
|
||||||
prompt += "a #t" + item + "#?";
|
prompt += "a #t" + item + "#?";
|
||||||
else
|
} else {
|
||||||
prompt += qty + " #t" + item + "#?";
|
prompt += qty + " #t" + item + "#?";
|
||||||
|
}
|
||||||
|
|
||||||
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
||||||
|
|
||||||
@@ -153,60 +149,60 @@ function action(mode, type, selection) {
|
|||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendYesNo(prompt);
|
cm.sendYesNo(prompt);
|
||||||
}
|
} else if (status == 4 && mode == 1) {
|
||||||
else if (status == 4 && mode == 1) {
|
|
||||||
var complete = true;
|
var complete = true;
|
||||||
var recvItem = item, recvQty;
|
var recvItem = item, recvQty;
|
||||||
|
|
||||||
if (item == 4003000)//screws
|
if (item == 4003000)//screws
|
||||||
|
{
|
||||||
recvQty = 15 * qty;
|
recvQty = 15 * qty;
|
||||||
else
|
} else {
|
||||||
recvQty = qty;
|
recvQty = qty;
|
||||||
|
}
|
||||||
|
|
||||||
if (!cm.canHold(recvItem, recvQty)) {
|
if (!cm.canHold(recvItem, recvQty)) {
|
||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost * qty) {
|
||||||
else if (cm.getMeso() < cost * qty)
|
|
||||||
{
|
|
||||||
cm.sendOk("I may still be an apprentice, but I do need to earn a living.");
|
cm.sendOk("I may still be an apprentice, but I do need to earn a living.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
if (!cm.haveItem(mats[i], matQty[i] * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty * qty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!complete)
|
if (!complete) {
|
||||||
cm.sendOk("I'm still an apprentice, I don't know if I can substitute other items in yet... Can you please bring what the recipe calls for?");
|
cm.sendOk("I'm still an apprentice, I don't know if I can substitute other items in yet... Can you please bring what the recipe calls for?");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i] * qty);
|
cm.gainItem(mats[i], -matQty[i] * qty);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
cm.gainItem(mats, -matQty * qty);
|
cm.gainItem(mats, -matQty * qty);
|
||||||
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
cm.gainMeso(-cost * qty);
|
cm.gainMeso(-cost * qty);
|
||||||
|
}
|
||||||
|
|
||||||
cm.gainItem(recvItem, recvQty);
|
cm.gainItem(recvItem, recvQty);
|
||||||
cm.sendOk("Did that come out right? Come by me again if you have anything for me to practice on.");
|
cm.sendOk("Did that come out right? Come by me again if you have anything for me to practice on.");
|
||||||
|
|||||||
@@ -38,10 +38,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("Santa told me to go to here, only he didn't told me when... I hope I'm here on the right time! Oh! By the way, I'm Rooney, I can take you to #bHappyVille#k. Are you ready to go?");
|
cm.sendYesNo("Santa told me to go to here, only he didn't told me when... I hope I'm here on the right time! Oh! By the way, I'm Rooney, I can take you to #bHappyVille#k. Are you ready to go?");
|
||||||
|
|||||||
@@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
var itemToUse = 4001126;
|
var itemToUse = 4001126;
|
||||||
|
|
||||||
var chairs = new Array(3010000, 3010001, 3010002, 3010003, 3010004, 3010005, 3010006, 3010007, 3010008, 3010009, 3010010, 3010011, 3010012, 3010013, 3010015, 3010016, 3010017, 3010018, 3010019, 3010022, 3010023, 3010024, 3010025, 3010026, 3010028, 3010040, 3010041, 3010043, 3010045, 3010046, 3010047,3010057,3010058,3010060,3010061,3010062,3010063, 3010064,3010065,3010066,3010067,3010069,3010071,3010072,3010073,3010080,3010081,3010082,3010083, 3010084,3010085,3010097,3010098,3010099,3010101,3010106,3010116,3011000,3012005,3012010,3012011);
|
var chairs = [3010000, 3010001, 3010002, 3010003, 3010004, 3010005, 3010006, 3010007, 3010008, 3010009, 3010010, 3010011, 3010012, 3010013, 3010015, 3010016, 3010017, 3010018, 3010019, 3010022, 3010023, 3010024, 3010025, 3010026, 3010028, 3010040, 3010041, 3010043, 3010045, 3010046, 3010047, 3010057, 3010058, 3010060, 3010061, 3010062, 3010063, 3010064, 3010065, 3010066, 3010067, 3010069, 3010071, 3010072, 3010073, 3010080, 3010081, 3010082, 3010083, 3010084, 3010085, 3010097, 3010098, 3010099, 3010101, 3010106, 3010116, 3011000, 3012005, 3012010, 3012011];
|
||||||
var scrolls = new Array(2040603,2044503,2041024,2041025,2044703,2044603,2043303,2040807,2040806,2040006,2040007,2043103,2043203,2043003,2040506,2044403,2040903,2040709,2040710,2040711,2044303,2043803,2040403,2044103,2044203,2044003,2043703);
|
var scrolls = [2040603, 2044503, 2041024, 2041025, 2044703, 2044603, 2043303, 2040807, 2040806, 2040006, 2040007, 2043103, 2043203, 2043003, 2040506, 2044403, 2040903, 2040709, 2040710, 2040711, 2044303, 2043803, 2040403, 2044103, 2044203, 2044003, 2043703];
|
||||||
var weapons = new Array(1302020, 1302030, 1302033, 1302058, 1302064, 1302080, 1312032, 1322054, 1332025, 1332055, 1332056, 1372034, 1382009, 1382012, 1382039, 1402039, 1412011, 1412027, 1422014, 1422029, 1432012, 1432040, 1432046, 1442024, 1442030, 1442051, 1452016, 1452022, 1452045, 1462014, 1462019, 1462040, 1472030, 1472032, 1472055, 1482020, 1482021, 1482022, 1492020, 1492021, 1492022, 1092030, 1092045, 1092046, 1092047);
|
var weapons = [1302020, 1302030, 1302033, 1302058, 1302064, 1302080, 1312032, 1322054, 1332025, 1332055, 1332056, 1372034, 1382009, 1382012, 1382039, 1402039, 1412011, 1412027, 1422014, 1422029, 1432012, 1432040, 1432046, 1442024, 1442030, 1442051, 1452016, 1452022, 1452045, 1462014, 1462019, 1462040, 1472030, 1472032, 1472055, 1482020, 1482021, 1482022, 1492020, 1492021, 1492022, 1092030, 1092045, 1092046, 1092047];
|
||||||
|
|
||||||
var nxAmount = 3000;
|
var nxAmount = 3000;
|
||||||
var chairAmount = 2;
|
var chairAmount = 2;
|
||||||
@@ -52,13 +52,14 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode < 0)
|
if (mode < 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
if (cm.getPlayer().getLevel() < 20) {
|
if (cm.getPlayer().getLevel() < 20) {
|
||||||
cm.sendOk("Hello, I am the Vote Point exchanger for #rMapleSolaxia#k!\r\n\r\nI am sorry, but I can only exchange Vote Points for players #blevel 20 or over#k.");
|
cm.sendOk("Hello, I am the Vote Point exchanger for #rMapleSolaxia#k!\r\n\r\nI am sorry, but I can only exchange Vote Points for players #blevel 20 or over#k.");
|
||||||
@@ -113,8 +114,9 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
var useVP = false;
|
var useVP = false;
|
||||||
if(!cm.hasItem(itemToUse) && vp > 0)
|
if (!cm.hasItem(itemToUse) && vp > 0) {
|
||||||
useVP = true;
|
useVP = true;
|
||||||
|
}
|
||||||
|
|
||||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||||
if (choice == 0) {
|
if (choice == 0) {
|
||||||
@@ -130,10 +132,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else if (choice == 1) {
|
} else if (choice == 1) {
|
||||||
// Leaf for Cash
|
// Leaf for Cash
|
||||||
if(useVP)
|
if (useVP) {
|
||||||
cm.getClient().useVotePoints(1);
|
cm.getClient().useVotePoints(1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(itemToUse, -1);
|
cm.gainItem(itemToUse, -1);
|
||||||
|
}
|
||||||
|
|
||||||
cm.getPlayer().getCashShop().gainCash(1, nxAmount);
|
cm.getPlayer().getCashShop().gainCash(1, nxAmount);
|
||||||
const PacketCreator = Java.type('tools.PacketCreator');
|
const PacketCreator = Java.type('tools.PacketCreator');
|
||||||
@@ -150,10 +153,11 @@ function action(mode, type, selection) {
|
|||||||
chairStr += chair + " ";
|
chairStr += chair + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(useVP)
|
if (useVP) {
|
||||||
cm.getClient().useVotePoints(1);
|
cm.getClient().useVotePoints(1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(itemToUse, -1);
|
cm.gainItem(itemToUse, -1);
|
||||||
|
}
|
||||||
|
|
||||||
cm.logLeaf("Chair ID: " + chairStr);
|
cm.logLeaf("Chair ID: " + chairStr);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
@@ -170,10 +174,11 @@ function action(mode, type, selection) {
|
|||||||
weaponStr += weapon + " ";
|
weaponStr += weapon + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(useVP)
|
if (useVP) {
|
||||||
cm.getClient().useVotePoints(1);
|
cm.getClient().useVotePoints(1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(itemToUse, -1);
|
cm.gainItem(itemToUse, -1);
|
||||||
|
}
|
||||||
|
|
||||||
cm.logLeaf("Maple Weapon IDs: " + weaponStr);
|
cm.logLeaf("Maple Weapon IDs: " + weaponStr);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
@@ -195,10 +200,11 @@ function action(mode, type, selection) {
|
|||||||
if (!cm.getPlayer().getInventory(InventoryType.CASH).isFull(1)) {
|
if (!cm.getPlayer().getInventory(InventoryType.CASH).isFull(1)) {
|
||||||
cm.gainItem(5030000, 1, false, true, 1000 * 60 * 60 * 24 * hiredMerchantLength);
|
cm.gainItem(5030000, 1, false, true, 1000 * 60 * 60 * 24 * hiredMerchantLength);
|
||||||
|
|
||||||
if(useVP)
|
if (useVP) {
|
||||||
cm.getClient().useVotePoints(1);
|
cm.getClient().useVotePoints(1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(itemToUse, -1);
|
cm.gainItem(itemToUse, -1);
|
||||||
|
}
|
||||||
|
|
||||||
cm.logLeaf(hiredMerchantLength + " day hired merchant");
|
cm.logLeaf(hiredMerchantLength + " day hired merchant");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -21,17 +21,20 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
var selStr = "";
|
var selStr = "";
|
||||||
if (cm.getJobId() == 0)
|
if (cm.getJobId() == 0) {
|
||||||
selStr += "We have a special 90% discount for beginners.";
|
selStr += "We have a special 90% discount for beginners.";
|
||||||
|
}
|
||||||
selStr += "Choose your destination, for fees will change from place to place.#b";
|
selStr += "Choose your destination, for fees will change from place to place.#b";
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (maps[selection] == 100000000 && cm.getMapId() == 101000000 && cm.haveItem(4032288)) {
|
if (maps[selection] == 100000000 && cm.getMapId() == 101000000 && cm.haveItem(4032288)) {
|
||||||
|
|||||||
@@ -51,13 +51,14 @@ function start() {
|
|||||||
cm.sendNext("Want to be a #rmagician#k? There are some standards to meet. because we can't just accept EVERYONE in... #bYour level should be at least 8#k, with getting " + cm.getFirstJobStatRequirement(jobType) + " as your top priority. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
cm.sendNext("Want to be a #rmagician#k? There are some standards to meet. because we can't just accept EVERYONE in... #bYour level should be at least 8#k, with getting " + cm.getFirstJobStatRequirement(jobType) + " as your top priority. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
||||||
} else if (cm.getLevel() >= 30 && cm.getJobId() == 200) {
|
} else if (cm.getLevel() >= 30 && cm.getJobId() == 200) {
|
||||||
actionx["2ndJob"] = true;
|
actionx["2ndJob"] = true;
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendNext("I see you have done well. I will allow you to take the next step on your long road.");
|
cm.sendNext("I see you have done well. I will allow you to take the next step on your long road.");
|
||||||
else if (cm.haveItem(4031009)){
|
} else if (cm.haveItem(4031009)) {
|
||||||
cm.sendOk("Go and see the #b#p1072001##k.");
|
cm.sendOk("Go and see the #b#p1072001##k.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else
|
} else {
|
||||||
cm.sendNext("The progress you have made is astonishing.");
|
cm.sendNext("The progress you have made is astonishing.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 2 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 2 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
||||||
actionx["3thJobI"] = true;
|
actionx["3thJobI"] = true;
|
||||||
cm.sendNext("There you are. A few days ago, #b#p2020009##k of Ossyria talked to me about you. I see that you are interested in making the leap to the enlightened of the third job advancement for magicians. To archieve that goal, I will have to test your strength in order to see whether you are worthy of the advancement. There is an opening in the middle of a deep forest of evil in Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat him and bring #b#t4031059##k back with you.");
|
cm.sendNext("There you are. A few days ago, #b#p2020009##k of Ossyria talked to me about you. I see that you are interested in making the leap to the enlightened of the third job advancement for magicians. To archieve that goal, I will have to test your strength in order to see whether you are worthy of the advancement. There is an opening in the middle of a deep forest of evil in Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat him and bring #b#t4031059##k back with you.");
|
||||||
@@ -109,8 +110,9 @@ function action(mode, type, selection) {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (mode != 1 || status == 7 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
if (mode != 1 || status == 7 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
||||||
if (mode == 0 && status == 2 && type == 1)
|
if (mode == 0 && status == 2 && type == 1) {
|
||||||
cm.sendOk("You know there is no other choice...");
|
cm.sendOk("You know there is no other choice...");
|
||||||
|
}
|
||||||
if (!(mode == 0 && type == 0)) {
|
if (!(mode == 0 && type == 0)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
@@ -139,29 +141,33 @@ function action(mode, type, selection) {
|
|||||||
cm.sendNext("Make some room in your inventory and talk back to me.");
|
cm.sendNext("Make some room in your inventory and talk back to me.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendNextPrev("But remember, skills aren't everything. Your stats should support your skills as a Magician, also. Magicians use INT as their main stat, and LUK as their secondary stat. If raising stats is difficult, just use #bAuto-Assign#k");
|
cm.sendNextPrev("But remember, skills aren't everything. Your stats should support your skills as a Magician, also. Magicians use INT as their main stat, and LUK as their secondary stat. If raising stats is difficult, just use #bAuto-Assign#k");
|
||||||
else if (status == 4)
|
} else if (status == 4) {
|
||||||
cm.sendNextPrev("Now, one more word of warning to you. If you fail in battle from this point on, you will lose a portion of your total EXP. Be extra mindful of this, since you have less HP than most.");
|
cm.sendNextPrev("Now, one more word of warning to you. If you fail in battle from this point on, you will lose a portion of your total EXP. Be extra mindful of this, since you have less HP than most.");
|
||||||
else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("This is all I can teach you. Good luck on your journey, young Magician.");
|
cm.sendNextPrev("This is all I can teach you. Good luck on your journey, young Magician.");
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
} else if (actionx["2ndJob"]) {
|
} else if (actionx["2ndJob"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Wizard (Fire / Poison) is all about.\r\n#L1#Please explain to me what being the Wizard (Ice / Lighting) is all about.\r\n#L2#Please explain to me what being the Cleric is all about.\r\n#L3#I'll choose my occupation!");
|
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Wizard (Fire / Poison) is all about.\r\n#L1#Please explain to me what being the Wizard (Ice / Lighting) is all about.\r\n#L2#Please explain to me what being the Cleric is all about.\r\n#L3#I'll choose my occupation!");
|
||||||
else {
|
} else {
|
||||||
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
||||||
if(!cm.isQuestStarted(100006)) cm.startQuest(100006);
|
if (!cm.isQuestStarted(100006)) {
|
||||||
|
cm.startQuest(100006);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (!cm.haveItem(4031012)) {
|
if (!cm.haveItem(4031012)) {
|
||||||
if (cm.canHold(4031009)) {
|
if (cm.canHold(4031009)) {
|
||||||
if(!cm.haveItem(4031009))
|
if (!cm.haveItem(4031009)) {
|
||||||
cm.gainItem(4031009, 1);
|
cm.gainItem(4031009, 1);
|
||||||
|
}
|
||||||
cm.sendNextPrev("Please get this letter to #b#p1072001##k who's around #b#m101020000##k near Ellinia. He is taking care of the job of an instructor in place of me. Give him the letter and he'll test you in place of me. Best of luck to you.");
|
cm.sendNextPrev("Please get this letter to #b#p1072001##k who's around #b#m101020000##k near Ellinia. He is taking care of the job of an instructor in place of me. Give him the letter and he'll test you in place of me. Best of luck to you.");
|
||||||
} else {
|
} else {
|
||||||
cm.sendNext("Please, make some space in your inventory.");
|
cm.sendNext("Please, make some space in your inventory.");
|
||||||
@@ -178,9 +184,10 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
status -= 2;
|
status -= 2;
|
||||||
} else
|
} else {
|
||||||
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Wizard (Fire / Poison)\r\n#L1#Wizard (Ice / Lighting)\r\n#L2#Cleric");
|
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Wizard (Fire / Poison)\r\n#L1#Wizard (Ice / Lighting)\r\n#L2#Cleric");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (cm.haveItem(4031009)) {
|
if (cm.haveItem(4031009)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
@@ -189,18 +196,21 @@ function action(mode, type, selection) {
|
|||||||
job += selection * 10;
|
job += selection * 10;
|
||||||
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 210 ? "#bWizard (Fire / Poison)#k" : job == 220 ? "#bWizard (Ice / Lighting)#k" : "#bCleric#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right?");
|
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 210 ? "#bWizard (Fire / Poison)#k" : job == 220 ? "#bWizard (Ice / Lighting)#k" : "#bCleric#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right?");
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.gainItem(4031012, -1);
|
cm.gainItem(4031012, -1);
|
||||||
|
}
|
||||||
cm.completeQuest(100008);
|
cm.completeQuest(100008);
|
||||||
cm.sendNext("Alright, you're the " + (job == 210 ? "#bWizard (Fire / Poison)#k" : job == 220 ? "#bWizard (Ice / Lighting)#k" : "#bCleric#k") + " from here on out. Mages and wizards are the intelligent bunch with incredible magical prowess, able to pierce the mind and the psychological structure of the monsters with ease... please train yourself each and everyday. I'll help you become even stronger than you already are.");
|
cm.sendNext("Alright, you're the " + (job == 210 ? "#bWizard (Fire / Poison)#k" : job == 220 ? "#bWizard (Ice / Lighting)#k" : "#bCleric#k") + " from here on out. Mages and wizards are the intelligent bunch with incredible magical prowess, able to pierce the mind and the psychological structure of the monsters with ease... please train yourself each and everyday. I'll help you become even stronger than you already are.");
|
||||||
if (cm.getJobId() != job)
|
if (cm.getJobId() != job) {
|
||||||
cm.changeJobById(job);
|
cm.changeJobById(job);
|
||||||
} else if (status == 4)
|
}
|
||||||
|
} else if (status == 4) {
|
||||||
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 210 ? "#bWizard (Fire / Poison)#k" : job == 220 ? "#bWizard (Ice / Lighting)#k" : "#bCleric#k") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 210 ? "#bWizard (Fire / Poison)#k" : job == 220 ? "#bWizard (Ice / Lighting)#k" : "#bCleric#k") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
||||||
else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure you remember that.");
|
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure you remember that.");
|
||||||
else if (status == 6)
|
} else if (status == 6) {
|
||||||
cm.sendNextPrev((job == 210 ? "Wizard (Fire / Poison)" : job == 220 ? "Wizard (Ice / Lighting)" : "Cleric") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
cm.sendNextPrev((job == 210 ? "Wizard (Fire / Poison)" : job == 220 ? "Wizard (Ice / Lighting)" : "Cleric") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"]) {
|
} else if (actionx["3thJobI"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
||||||
|
|||||||
@@ -45,121 +45,112 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
var selStr = "Welcome to my eco-safe refining operation! What would you like today?#b"
|
var selStr = "Welcome to my eco-safe refining operation! What would you like today?#b"
|
||||||
var options = new Array("Make a glove","Upgrade a glove","Upgrade a hat","Make a wand","Make a staff");
|
var options = ["Make a glove", "Upgrade a glove", "Upgrade a hat", "Make a wand", "Make a staff"];
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (status == 1 && mode == 1) {
|
||||||
else if (status == 1 && mode == 1) {
|
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
if (selectedType == 0) { //glove refine
|
if (selectedType == 0) { //glove refine
|
||||||
var selStr = "So, what kind of glove would you like me to make?#b";
|
var selStr = "So, what kind of glove would you like me to make?#b";
|
||||||
var items = new Array ("Lemona#k - Magician Lv. 15#b","Blue Morrican#k - Magician Lv. 20#b","Ocean Mesana#k - Magician Lv. 25#b","Red Lutia#k - Magician Lv. 30#b","Red Noel#k - Magician Lv. 35#b","Red Arten#k - Magician Lv. 40#b",
|
var items = ["Lemona#k - Magician Lv. 15#b", "Blue Morrican#k - Magician Lv. 20#b", "Ocean Mesana#k - Magician Lv. 25#b", "Red Lutia#k - Magician Lv. 30#b", "Red Noel#k - Magician Lv. 35#b", "Red Arten#k - Magician Lv. 40#b",
|
||||||
"Red Pennance#k - Magician Lv. 50#b","Steel Manute#k - Magician Lv. 60#b");
|
"Red Pennance#k - Magician Lv. 50#b", "Steel Manute#k - Magician Lv. 60#b"];
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 1) { //glove upgrade
|
||||||
else if (selectedType == 1){ //glove upgrade
|
|
||||||
var selStr = "So, what kind of glove are you looking to upgrade to?#b";
|
var selStr = "So, what kind of glove are you looking to upgrade to?#b";
|
||||||
var items = new Array ("Green Morrican#k - Magician Lv. 20#b","Purple Morrican#k - Magician Lv. 20#b","Blood Mesana#k - Magician Lv. 25#b","Dark Mesana#k - Magician Lv. 25#b","Blue Lutia#k - Magician Lv. 30#b","Black Lutia#k - Magician Lv. 30#b",
|
var items = ["Green Morrican#k - Magician Lv. 20#b", "Purple Morrican#k - Magician Lv. 20#b", "Blood Mesana#k - Magician Lv. 25#b", "Dark Mesana#k - Magician Lv. 25#b", "Blue Lutia#k - Magician Lv. 30#b", "Black Lutia#k - Magician Lv. 30#b",
|
||||||
"Blue Noel#k - Magician Lv. 35#b", "Dark Noel#k - Magician Lv. 35#b", "Blue Arten#k - Magician Lv. 40#b", "Dark Arten#k - Magician Lv. 40#b", "Blue Pennance#k - Magician Lv. 50#b", "Dark Pennance#k - Magician Lv. 50#b",
|
"Blue Noel#k - Magician Lv. 35#b", "Dark Noel#k - Magician Lv. 35#b", "Blue Arten#k - Magician Lv. 40#b", "Dark Arten#k - Magician Lv. 40#b", "Blue Pennance#k - Magician Lv. 50#b", "Dark Pennance#k - Magician Lv. 50#b",
|
||||||
"Gold Manute#k - Magician Lv. 60#b","Dark Manute#k - Magician Lv. 60#b");
|
"Gold Manute#k - Magician Lv. 60#b", "Dark Manute#k - Magician Lv. 60#b"];
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 2) { //hat upgrade
|
||||||
else if (selectedType == 2){ //hat upgrade
|
|
||||||
var selStr = "A hat? Which one were you thinking of?#b";
|
var selStr = "A hat? Which one were you thinking of?#b";
|
||||||
var items = new Array ("Steel Pride#k - Magician Lv. 30#b","Golden Pride#k - Magician Lv. 30#b");
|
var items = ["Steel Pride#k - Magician Lv. 30#b", "Golden Pride#k - Magician Lv. 30#b"];
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 3) { //wand refine
|
||||||
else if (selectedType == 3){ //wand refine
|
|
||||||
var selStr = "A wand, huh? Prefer the smaller weapon that fits in your pocket? Which type are you seeking?#b";
|
var selStr = "A wand, huh? Prefer the smaller weapon that fits in your pocket? Which type are you seeking?#b";
|
||||||
var items = new Array ("Wooden Wand#k - Common Lv. 8#b","Hardwood Wand#k - Common Lv. 13#b","Metal Wand#k - Common Lv. 18#b","Ice Wand#k - Magician Lv. 23#b","Mithril Wand#k - Magician Lv. 28#b",
|
var items = ["Wooden Wand#k - Common Lv. 8#b", "Hardwood Wand#k - Common Lv. 13#b", "Metal Wand#k - Common Lv. 18#b", "Ice Wand#k - Magician Lv. 23#b", "Mithril Wand#k - Magician Lv. 28#b",
|
||||||
"Wizard Wand#k - Magician Lv. 33#b","Fairy Wand#k - Magician Lv. 38#b","Cromi#k - Magician Lv. 48#b");
|
"Wizard Wand#k - Magician Lv. 33#b", "Fairy Wand#k - Magician Lv. 38#b", "Cromi#k - Magician Lv. 48#b"];
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 4) { //staff refine
|
||||||
else if (selectedType == 4){ //staff refine
|
|
||||||
var selStr = "Ah, a staff, a great symbol of one's power! Which are you looking to make?#b";
|
var selStr = "Ah, a staff, a great symbol of one's power! Which are you looking to make?#b";
|
||||||
var items = new Array ("Wooden Staff#k - Magician Lv. 10#b","Sapphire Staff#k - Magician Lv. 15#b","Emerald Staff#k - Magician Lv. 15#b","Old Wooden Staff#k - Magician Lv. 20#b","Wizard Staff#k - Magician Lv. 25#b",
|
var items = ["Wooden Staff#k - Magician Lv. 10#b", "Sapphire Staff#k - Magician Lv. 15#b", "Emerald Staff#k - Magician Lv. 15#b", "Old Wooden Staff#k - Magician Lv. 20#b", "Wizard Staff#k - Magician Lv. 25#b",
|
||||||
"Arc Staff#k - Magician Lv. 45#b");
|
"Arc Staff#k - Magician Lv. 45#b"];
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + items[i] + "#l";
|
||||||
}
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 2 && mode == 1) {
|
||||||
else if (status == 2 && mode == 1) {
|
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
|
|
||||||
if (selectedType == 0) { //glove refine
|
if (selectedType == 0) { //glove refine
|
||||||
var itemSet = new Array(1082019,1082020,1082026,1082051,1082054,1082062,1082081,1082086);
|
var itemSet = [1082019, 1082020, 1082026, 1082051, 1082054, 1082062, 1082081, 1082086];
|
||||||
var matSet = new Array(4000021,new Array(4000021,4011001),new Array(4000021,4011006),new Array(4000021,4021006,4021000),new Array(4000021,4011006,4011001,4021000),
|
var matSet = [4000021, [4000021, 4011001], [4000021, 4011006], [4000021, 4021006, 4021000], [4000021, 4011006, 4011001, 4021000],
|
||||||
new Array(4000021,4021000,4021006,4003000),new Array(4021000,4011006,4000030,4003000),new Array(4011007,4011001,4021007,4000030,4003000));
|
[4000021, 4021000, 4021006, 4003000], [4021000, 4011006, 4000030, 4003000], [4011007, 4011001, 4021007, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(15,new Array(30,1),new Array(50,2),new Array(60,1,2),new Array(70,1,3,2),new Array(80,3,3,30),new Array(3,2,35,40),new Array(1,8,1,50,50));
|
var matQtySet = [15, [30, 1], [50, 2], [60, 1, 2], [70, 1, 3, 2], [80, 3, 3, 30], [3, 2, 35, 40], [1, 8, 1, 50, 50]];
|
||||||
var costSet = new Array(7000,15000,20000,25000,30000,40000,50000,70000);
|
var costSet = [7000, 15000, 20000, 25000, 30000, 40000, 50000, 70000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 1) { //glove upgrade
|
||||||
else if (selectedType == 1){ //glove upgrade
|
var itemSet = [1082021, 1082022, 1082027, 1082028, 1082052, 1082053, 1082055, 1082056, 1082063, 1082064, 1082082, 1082080, 1082087, 1082088];
|
||||||
var itemSet = new Array(1082021,1082022,1082027,1082028,1082052,1082053,1082055,1082056,1082063,1082064,1082082,1082080,1082087,1082088);
|
var matSet = [[1082020, 4011001], [1082020, 4021001], [1082026, 4021000], [1082026, 4021008], [1082051, 4021005],
|
||||||
var matSet = new Array(new Array(1082020,4011001),new Array(1082020,4021001),new Array(1082026,4021000),new Array(1082026,4021008),new Array(1082051,4021005),
|
[1082051, 4021008], [1082054, 4021005], [1082054, 4021008], [1082062, 4021002], [1082062, 4021008],
|
||||||
new Array(1082051,4021008),new Array(1082054,4021005),new Array(1082054,4021008),new Array(1082062,4021002),new Array(1082062,4021008),
|
[1082081, 4021002], [1082081, 4021008], [1082086, 4011004, 4011006], [1082086, 4021008, 4011006]];
|
||||||
new Array(1082081,4021002),new Array(1082081,4021008),new Array(1082086,4011004,4011006),new Array(1082086,4021008,4011006));
|
var matQtySet = [[1, 1], [1, 2], [1, 3], [1, 1], [1, 3], [1, 1], [1, 3], [1, 1], [1, 4],
|
||||||
var matQtySet = new Array(new Array(1,1),new Array(1,2),new Array(1,3),new Array(1,1),new Array(1,3),new Array(1,1),new Array(1,3),new Array(1,1),new Array(1,4),
|
[1, 2], [1, 5], [1, 3], [1, 3, 5], [1, 2, 3]];
|
||||||
new Array(1,2),new Array(1,5),new Array(1,3),new Array(1,3,5),new Array(1,2,3));
|
var costSet = [20000, 25000, 30000, 40000, 35000, 40000, 40000, 45000, 45000, 50000, 55000, 60000, 70000, 80000];
|
||||||
var costSet = new Array (20000,25000,30000,40000,35000,40000,40000,45000,45000,50000,55000,60000,70000,80000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 2) { //hat upgrade
|
||||||
else if (selectedType == 2){ //hat upgrade
|
var itemSet = [1002065, 1002013];
|
||||||
var itemSet = new Array(1002065,1002013);
|
var matSet = [[1002064, 4011001], [1002064, 4011006]];
|
||||||
var matSet = new Array(new Array(1002064,4011001),new Array(1002064,4011006));
|
var matQtySet = [[1, 3], [1, 3]];
|
||||||
var matQtySet = new Array(new Array(1,3),new Array(1,3));
|
var costSet = [40000, 50000];
|
||||||
var costSet = new Array(40000,50000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 3) { //wand refine
|
||||||
else if (selectedType == 3){ //wand refine
|
var itemSet = [1372005, 1372006, 1372002, 1372004, 1372003, 1372001, 1372000, 1372007];
|
||||||
var itemSet = new Array (1372005,1372006,1372002,1372004,1372003,1372001,1372000,1372007);
|
var matSet = [4003001, [4003001, 4000001], [4011001, 4000009, 4003000], [4011002, 4003002, 4003000], [4011002, 4021002, 4003000],
|
||||||
var matSet = new Array(4003001,new Array(4003001,4000001),new Array(4011001,4000009,4003000),new Array(4011002,4003002,4003000),new Array(4011002,4021002,4003000),
|
[4021006, 4011002, 4011001, 4003000], [4021006, 4021005, 4021007, 4003003, 4003000], [4011006, 4021003, 4021007, 4021002, 4003002, 4003000]];
|
||||||
new Array(4021006,4011002,4011001,4003000),new Array(4021006,4021005,4021007,4003003,4003000),new Array(4011006,4021003,4021007,4021002,4003002,4003000));
|
var matQtySet = [5, [10, 50], [1, 30, 5], [2, 1, 10], [3, 1, 10], [5, 3, 1, 15], [5, 5, 1, 1, 20], [4, 3, 2, 1, 1, 30]];
|
||||||
var matQtySet = new Array (5,new Array(10,50),new Array(1,30,5),new Array(2,1,10),new Array(3,1,10),new Array(5,3,1,15),new Array(5,5,1,1,20),new Array(4,3,2,1,1,30));
|
var costSet = [1000, 3000, 5000, 12000, 30000, 60000, 120000, 200000];
|
||||||
var costSet = new Array (1000,3000,5000,12000,30000,60000,120000,200000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 4) { //staff refine
|
||||||
else if (selectedType == 4){ //staff refine
|
var itemSet = [1382000, 1382003, 1382005, 1382004, 1382002, 1382001];
|
||||||
var itemSet = new Array (1382000,1382003,1382005,1382004,1382002,1382001);
|
var matSet = [4003001, [4021005, 4011001, 4003000], [4021003, 4011001, 4003000], [4003001, 4011001, 4003000],
|
||||||
var matSet = new Array(4003001,new Array(4021005,4011001,4003000),new Array(4021003,4011001,4003000),new Array(4003001,4011001,4003000),
|
[4021006, 4021001, 4011001, 4003000], [4011001, 4021006, 4021001, 4021005, 4003000, 4000010, 4003003]];
|
||||||
new Array(4021006,4021001,4011001,4003000),new Array(4011001,4021006,4021001,4021005,4003000,4000010,4003003));
|
var matQtySet = [5, [1, 1, 5], [1, 1, 5], [50, 1, 10], [2, 1, 1, 15], [8, 5, 5, 5, 30, 50, 1]];
|
||||||
var matQtySet = new Array (5,new Array(1,1,5),new Array(1,1,5),new Array(50,1,10),new Array(2,1,1,15),new Array(8,5,5,5,30,50,1));
|
var costSet = [2000, 2000, 2000, 5000, 12000, 180000];
|
||||||
var costSet = new Array (2000,2000,2000,5000,12000,180000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -172,54 +163,52 @@ function action(mode, type, selection) {
|
|||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] + " #t" + mats[i] + "#";
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
prompt += "\r\n#i" + mats + "# " + matQty + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + matQty + " #t" + mats + "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
prompt += "\r\n#i4031138# " + cost + " meso";
|
prompt += "\r\n#i4031138# " + cost + " meso";
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendYesNo(prompt);
|
cm.sendYesNo(prompt);
|
||||||
}
|
} else if (status == 3 && mode == 1) {
|
||||||
else if (status == 3 && mode == 1) {
|
|
||||||
var complete = true;
|
var complete = true;
|
||||||
|
|
||||||
if (!cm.canHold(item, 1)) {
|
if (!cm.canHold(item, 1)) {
|
||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost) {
|
||||||
else if (cm.getMeso() < cost)
|
|
||||||
{
|
|
||||||
cm.sendOk("Sorry, but all of us need money to live. Come back when you can pay my fees, yes?")
|
cm.sendOk("Sorry, but all of us need money to live. Come back when you can pay my fees, yes?")
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i]))
|
if (!cm.haveItem(mats[i], matQty[i])) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!complete)
|
if (!complete) {
|
||||||
cm.sendOk("Uhm... I don't keep extra material on me. Sorry. ");
|
cm.sendOk("Uhm... I don't keep extra material on me. Sorry. ");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i]);
|
cm.gainItem(mats[i], -matQty[i]);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
cm.gainItem(mats, -matQty);
|
cm.gainItem(mats, -matQty);
|
||||||
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
cm.gainMeso(-cost);
|
cm.gainMeso(-cost);
|
||||||
|
}
|
||||||
|
|
||||||
cm.gainItem(item, 1);
|
cm.gainItem(item, 1);
|
||||||
cm.sendOk("It's a success! Oh, I've never felt so alive! Please come back again!");
|
cm.sendOk("It's a success! Oh, I've never felt so alive! Please come back again!");
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ function start() {
|
|||||||
cm.sendOk("You must be a higher level to enter the Forest of Patience.");
|
cm.sendOk("You must be a higher level to enter the Forest of Patience.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
check = 1;
|
check = 1;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
cm.sendYesNo("Hi, i'm Shane. I can let you into the Forest of Patience for a small fee. Would you like to enter for #b5000#k mesos?");
|
cm.sendYesNo("Hi, i'm Shane. I can let you into the Forest of Patience for a small fee. Would you like to enter for #b5000#k mesos?");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1) {
|
if (mode == -1) {
|
||||||
@@ -53,25 +53,26 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
if (check != 1) {
|
if (check != 1) {
|
||||||
if (cm.getPlayer().getMeso() < 5000) {
|
if (cm.getPlayer().getMeso() < 5000) {
|
||||||
cm.sendOk("Sorry but it doesn't like you have enough mesos!")
|
cm.sendOk("Sorry but it doesn't like you have enough mesos!")
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
} else {
|
||||||
|
if (cm.isQuestStarted(2050)) {
|
||||||
|
cm.warp(101000100, 0);
|
||||||
|
} else if (cm.isQuestStarted(2051)) {
|
||||||
|
cm.warp(101000102, 0);
|
||||||
|
} else if (cm.getLevel() >= 25 && cm.getLevel() < 50) {
|
||||||
|
cm.warp(101000100, 0);
|
||||||
|
} else if (cm.getLevel() >= 50) {
|
||||||
|
cm.warp(101000102, 0);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if (cm.isQuestStarted(2050))
|
|
||||||
cm.warp(101000100, 0);
|
|
||||||
else if (cm.isQuestStarted(2051))
|
|
||||||
cm.warp(101000102, 0);
|
|
||||||
else if (cm.getLevel() >= 25 && cm.getLevel() < 50)
|
|
||||||
cm.warp(101000100, 0);
|
|
||||||
else if (cm.getLevel() >= 50)
|
|
||||||
cm.warp(101000102, 0);
|
|
||||||
cm.gainMeso(-5000);
|
cm.gainMeso(-5000);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Shane 1032004
|
/* Shane 1032004
|
||||||
* @Author Moogra
|
* @Author Moogra
|
||||||
*/
|
*/
|
||||||
@@ -28,7 +29,8 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode > 0)
|
if (mode > 0) {
|
||||||
cm.warp(101000000, 0);
|
cm.warp(101000000, 0);
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -50,9 +50,9 @@ function action(mode, type, selection) {
|
|||||||
cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?");
|
cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?");
|
||||||
cost /= ((cm.getJobId() == 0) ? 10 : 1);
|
cost /= ((cm.getJobId() == 0) ? 10 : 1);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (cm.getMeso() < cost)
|
if (cm.getMeso() < cost) {
|
||||||
cm.sendNext("It looks like you don't have enough mesos. Sorry but you won't be able to use this without it.")
|
cm.sendNext("It looks like you don't have enough mesos. Sorry but you won't be able to use this without it.")
|
||||||
else {
|
} else {
|
||||||
cm.gainMeso(-cost);
|
cm.gainMeso(-cost);
|
||||||
cm.warp(105070001);
|
cm.warp(105070001);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if(mode == -1)
|
if (mode == -1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (mode == 0) {
|
if (mode == 0) {
|
||||||
cm.sendNext("You must have some business to take care of here, right?");
|
cm.sendNext("You must have some business to take care of here, right?");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
function start() {
|
function start() {
|
||||||
if (cm.haveItem(4031045)) {
|
if (cm.haveItem(4031045)) {
|
||||||
var em = cm.getEventManager("Boats");
|
var em = cm.getEventManager("Boats");
|
||||||
if (em.getProperty("entry") == "true")
|
if (em.getProperty("entry") == "true") {
|
||||||
cm.sendYesNo("Do you want to go to Orbis?");
|
cm.sendYesNo("Do you want to go to Orbis?");
|
||||||
else{
|
} else {
|
||||||
cm.sendOk("The boat to Orbis is already travelling, please be patient for the next one.");
|
cm.sendOk("The boat to Orbis is already travelling, please be patient for the next one.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -12,6 +12,7 @@ function start() {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode <= 0) {
|
if (mode <= 0) {
|
||||||
cm.sendOk("Okay, talk to me if you change your mind!");
|
cm.sendOk("Okay, talk to me if you change your mind!");
|
||||||
@@ -23,8 +24,7 @@ function action(mode, type, selection) {
|
|||||||
cm.warp(101000301);
|
cm.warp(101000301);
|
||||||
cm.gainItem(4031045, -1);
|
cm.gainItem(4031045, -1);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
cm.sendOk("The boat to Orbis is ready to take off, please be patient for the next one.");
|
cm.sendOk("The boat to Orbis is ready to take off, please be patient for the next one.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,10 +50,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getLevel() >= 40) {
|
if (cm.getLevel() >= 40) {
|
||||||
cm.sendNext("Yeah... I am the master alchemist of the fairies. But the fairies are not supposed to be in contact with a human being for a long period of time... A strong person like you will be fine, though. If you get me the materials, I'll make you a special item.");
|
cm.sendNext("Yeah... I am the master alchemist of the fairies. But the fairies are not supposed to be in contact with a human being for a long period of time... A strong person like you will be fine, though. If you get me the materials, I'll make you a special item.");
|
||||||
|
|||||||
@@ -25,10 +25,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("I am Mar the Fairy. If you have a dragon at level 15 or higher and a rock of evolution, I can evolve your dragon. If you are lucky, you may even get a black one! Would you like me to do so?");
|
cm.sendYesNo("I am Mar the Fairy. If you have a dragon at level 15 or higher and a rock of evolution, I can evolve your dragon. If you are lucky, you may even get a black one! Would you like me to do so?");
|
||||||
|
|||||||
@@ -21,33 +21,35 @@ function action(mode, type, selection){
|
|||||||
if (mode == -1 || (mode == 0 && status == 0)) {
|
if (mode == -1 || (mode == 0 && status == 0)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (mode == 0) {
|
||||||
else if(mode == 0)
|
|
||||||
status--;
|
status--;
|
||||||
else
|
} else {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendOk("A mysterious black figure appeared and summoned a lot of angry monsters!");
|
cm.sendOk("A mysterious black figure appeared and summoned a lot of angry monsters!");
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if(status == 1){
|
|
||||||
var player = cm.getPlayer();
|
var player = cm.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
for(var i = 0; i < 10; i++)
|
for (var i = 0; i < 10; i++) {
|
||||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(117, 183));
|
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(117, 183));
|
||||||
for(var i = 0; i < 10; i++)
|
}
|
||||||
|
for (var i = 0; i < 10; i++) {
|
||||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(4, 183));
|
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(4, 183));
|
||||||
for(var i = 0; i < 10; i++)
|
}
|
||||||
|
for (var i = 0; i < 10; i++) {
|
||||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-109, 183));
|
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-109, 183));
|
||||||
|
}
|
||||||
|
|
||||||
cm.completeQuest(20718, 1103003);
|
cm.completeQuest(20718, 1103003);
|
||||||
cm.gainExp(4000 * cm.getPlayer().getExpRate());
|
cm.gainExp(4000 * cm.getPlayer().getExpRate());
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,18 +15,17 @@ function action(mode, type, selection){
|
|||||||
if (mode == -1 || (mode == 0 && status == 0)) {
|
if (mode == -1 || (mode == 0 && status == 0)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (mode == 0) {
|
||||||
else if(mode == 0)
|
|
||||||
status--;
|
status--;
|
||||||
else
|
} else {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendOk("Nothing remarkable here.");
|
cm.sendOk("Nothing remarkable here.");
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if(status == 1){
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,11 +15,11 @@ function action(mode, type, selection){
|
|||||||
if (mode == -1 || (mode == 0 && status == 0)) {
|
if (mode == -1 || (mode == 0 && status == 0)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (mode == 0) {
|
||||||
else if(mode == 0)
|
|
||||||
status--;
|
status--;
|
||||||
else
|
} else {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
@@ -28,18 +28,17 @@ function action(mode, type, selection){
|
|||||||
if (cm.canHold(4032142)) {
|
if (cm.canHold(4032142)) {
|
||||||
cm.gainItem(4032142, 1);
|
cm.gainItem(4032142, 1);
|
||||||
cm.sendOk("You bottled up some of the clear tree sap. #i4032142#");
|
cm.sendOk("You bottled up some of the clear tree sap. #i4032142#");
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
cm.sendOk("Make sure you have a free spot in your ETC inventory.");
|
cm.sendOk("Make sure you have a free spot in your ETC inventory.");
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
cm.sendOk("A never ending flow of sap is coming from this small tree stump.");
|
cm.sendOk("A never ending flow of sap is coming from this small tree stump.");
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
cm.sendOk("A never ending flow of sap is coming from this small tree stump.");
|
cm.sendOk("A never ending flow of sap is coming from this small tree stump.");
|
||||||
}
|
}
|
||||||
else if(status == 1){
|
} else if (status == 1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,10 +33,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestStarted(28177) && !cm.haveItem(4032479)) {
|
if (cm.isQuestStarted(28177) && !cm.haveItem(4032479)) {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Sabi JQ herb pile #1
|
/* Sabi JQ herb pile #1
|
||||||
*/
|
*/
|
||||||
function start() {
|
function start() {
|
||||||
@@ -28,11 +29,13 @@ function start() {
|
|||||||
var choice = 0;
|
var choice = 0;
|
||||||
for (var i = 0; i < chances.length; i++) {
|
for (var i = 0; i < chances.length; i++) {
|
||||||
var itemGender = (Math.floor(prizes[i] / 1000) % 10);
|
var itemGender = (Math.floor(prizes[i] / 1000) % 10);
|
||||||
if ((cm.getPlayer().getGender() != itemGender) && (itemGender != 2))
|
if ((cm.getPlayer().getGender() != itemGender) && (itemGender != 2)) {
|
||||||
chances[i] = 0;
|
chances[i] = 0;
|
||||||
}
|
}
|
||||||
for (var i = 0; i < chances.length; i++)
|
}
|
||||||
|
for (var i = 0; i < chances.length; i++) {
|
||||||
totalodds += chances[i];
|
totalodds += chances[i];
|
||||||
|
}
|
||||||
var randomPick = Math.floor(Math.random() * totalodds) + 1;
|
var randomPick = Math.floor(Math.random() * totalodds) + 1;
|
||||||
for (var i = 0; i < chances.length; i++) {
|
for (var i = 0; i < chances.length; i++) {
|
||||||
randomPick -= chances[i];
|
randomPick -= chances[i];
|
||||||
@@ -41,8 +44,9 @@ function start() {
|
|||||||
randomPick = totalodds + 100;
|
randomPick = totalodds + 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cm.isQuestStarted(2050))
|
if (cm.isQuestStarted(2050)) {
|
||||||
cm.gainItem(4031020, 1);
|
cm.gainItem(4031020, 1);
|
||||||
|
}
|
||||||
cm.gainItem(prizes[choice], 1);
|
cm.gainItem(prizes[choice], 1);
|
||||||
cm.warp(101000000, 0);
|
cm.warp(101000000, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Sabi JQ herb pile #1
|
/* Sabi JQ herb pile #1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -29,11 +30,13 @@ function start() {
|
|||||||
var choice = 0;
|
var choice = 0;
|
||||||
for (var i = 0; i < chances.length; i++) {
|
for (var i = 0; i < chances.length; i++) {
|
||||||
var itemGender = (Math.floor(prizes[i] / 1000) % 10);
|
var itemGender = (Math.floor(prizes[i] / 1000) % 10);
|
||||||
if ((cm.getPlayer().getGender() != itemGender) && (itemGender != 2))
|
if ((cm.getPlayer().getGender() != itemGender) && (itemGender != 2)) {
|
||||||
chances[i] = 0;
|
chances[i] = 0;
|
||||||
}
|
}
|
||||||
for (var i = 0; i < chances.length; i++)
|
}
|
||||||
|
for (var i = 0; i < chances.length; i++) {
|
||||||
totalodds += chances[i];
|
totalodds += chances[i];
|
||||||
|
}
|
||||||
var randomPick = Math.floor(Math.random() * totalodds) + 1;
|
var randomPick = Math.floor(Math.random() * totalodds) + 1;
|
||||||
for (var i = 0; i < chances.length; i++) {
|
for (var i = 0; i < chances.length; i++) {
|
||||||
randomPick -= chances[i];
|
randomPick -= chances[i];
|
||||||
@@ -42,8 +45,9 @@ function start() {
|
|||||||
randomPick = totalodds + 100;
|
randomPick = totalodds + 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cm.isQuestStarted(2051))
|
if (cm.isQuestStarted(2051)) {
|
||||||
cm.gainItem(4031032, 1);
|
cm.gainItem(4031032, 1);
|
||||||
|
}
|
||||||
cm.gainItem(prizes[choice], 1);
|
cm.gainItem(prizes[choice], 1);
|
||||||
cm.warp(101000000, 0);
|
cm.warp(101000000, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -50,13 +50,14 @@ function start() {
|
|||||||
cm.sendNext("Want to be a #rthief#k? There are some standards to meet. because we can't just accept EVERYONE in... #bYour level should be at least 10, with at least your " + cm.getFirstJobStatRequirement(jobType) + "#k. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
cm.sendNext("Want to be a #rthief#k? There are some standards to meet. because we can't just accept EVERYONE in... #bYour level should be at least 10, with at least your " + cm.getFirstJobStatRequirement(jobType) + "#k. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
||||||
} else if (cm.getLevel() >= 30 && cm.getJobId() == 400) {
|
} else if (cm.getLevel() >= 30 && cm.getJobId() == 400) {
|
||||||
actionx["2ndJob"] = true;
|
actionx["2ndJob"] = true;
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendNext("I see you have done well. I will allow you to take the next step on your long road.");
|
cm.sendNext("I see you have done well. I will allow you to take the next step on your long road.");
|
||||||
else if (cm.haveItem(4031011)){
|
} else if (cm.haveItem(4031011)) {
|
||||||
cm.sendOk("Go and see the #b#p1072003##k.");
|
cm.sendOk("Go and see the #b#p1072003##k.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else
|
} else {
|
||||||
cm.sendNext("The progress you have made is astonishing.");
|
cm.sendNext("The progress you have made is astonishing.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 4 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 4 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
||||||
actionx["3thJobI"] = true;
|
actionx["3thJobI"] = true;
|
||||||
cm.sendNext("There you are. A few days ago, #b#p2020011##k of Ossyria talked to me about you. I see that you are interested in making the leap to the dark world of the third job advancement for thieves. To archieve that goal, I will have to test your strength in orden to see whether you are worthy of the advancement. There is an opening in the middle of a deep swamp in Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat him and bring #b#t4031059##k back with you.");
|
cm.sendNext("There you are. A few days ago, #b#p2020011##k of Ossyria talked to me about you. I see that you are interested in making the leap to the dark world of the third job advancement for thieves. To archieve that goal, I will have to test your strength in orden to see whether you are worthy of the advancement. There is an opening in the middle of a deep swamp in Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat him and bring #b#t4031059##k back with you.");
|
||||||
@@ -110,8 +111,9 @@ function action(mode, type, selection) {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
||||||
if (mode == 0 && status == 2 && type == 1)
|
if (mode == 0 && status == 2 && type == 1) {
|
||||||
cm.sendOk("You know there is no other choice...");
|
cm.sendOk("You know there is no other choice...");
|
||||||
|
}
|
||||||
if (!(mode == 0 && type != 1)) {
|
if (!(mode == 0 && type != 1)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
@@ -122,9 +124,9 @@ function action(mode, type, selection) {
|
|||||||
|
|
||||||
if (actionx["1stJob"]) {
|
if (actionx["1stJob"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getLevel() >= 10 && cm.canGetFirstJob(jobType))
|
if (cm.getLevel() >= 10 && cm.canGetFirstJob(jobType)) {
|
||||||
cm.sendYesNo("Oh...! You look like someone that can definitely be a part of us... all you need is a little sinister mind, and... yeah... so, what do you think? Wanna be the Rogue?");
|
cm.sendYesNo("Oh...! You look like someone that can definitely be a part of us... all you need is a little sinister mind, and... yeah... so, what do you think? Wanna be the Rogue?");
|
||||||
else {
|
} else {
|
||||||
cm.sendOk("Train a bit more until you reach the base requirements and I can show you the way of the #rThief#k.");
|
cm.sendOk("Train a bit more until you reach the base requirements and I can show you the way of the #rThief#k.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -142,25 +144,29 @@ function action(mode, type, selection) {
|
|||||||
cm.sendNext("Make some room in your inventory and talk back to me.");
|
cm.sendNext("Make some room in your inventory and talk back to me.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Thief.");
|
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Thief.");
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
} else if (actionx["2ndJob"]) {
|
} else if (actionx["2ndJob"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Assassin is all about.\r\n#L1#Please explain to me what being the Bandit is all about.\r\n#L3#I'll choose my occupation!");
|
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Assassin is all about.\r\n#L1#Please explain to me what being the Bandit is all about.\r\n#L3#I'll choose my occupation!");
|
||||||
else {
|
} else {
|
||||||
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine. Here, take my letter first... make sure you don't lose it!");
|
||||||
if(!cm.isQuestStarted(100009)) cm.startQuest(100009);
|
if (!cm.isQuestStarted(100009)) {
|
||||||
|
cm.startQuest(100009);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (!cm.haveItem(4031012)) {
|
if (!cm.haveItem(4031012)) {
|
||||||
if (cm.canHold(4031011)) {
|
if (cm.canHold(4031011)) {
|
||||||
if(!cm.haveItem(4031011))
|
if (!cm.haveItem(4031011)) {
|
||||||
cm.gainItem(4031011, 1);
|
cm.gainItem(4031011, 1);
|
||||||
|
}
|
||||||
cm.sendNextPrev("Please get this letter to #b#p1072003##k who's around #b#m102040000##k near Kerning City. He is taking care of the job of an instructor in place of me. Give him the letter and he'll test you in place of me. Best of luck to you.");
|
cm.sendNextPrev("Please get this letter to #b#p1072003##k who's around #b#m102040000##k near Kerning City. He is taking care of the job of an instructor in place of me. Give him the letter and he'll test you in place of me. Best of luck to you.");
|
||||||
} else {
|
} else {
|
||||||
cm.sendNext("Please, make some space in your inventory.");
|
cm.sendNext("Please, make some space in your inventory.");
|
||||||
@@ -175,9 +181,10 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
status -= 2;
|
status -= 2;
|
||||||
} else
|
} else {
|
||||||
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Assassin\r\n#L1#Bandit");
|
cm.sendSimple("Now... have you made up your mind? Please choose the job you'd like to select for your 2nd job advancement. #b\r\n#L0#Assassin\r\n#L1#Bandit");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (cm.haveItem(4031011)) {
|
if (cm.haveItem(4031011)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
@@ -186,21 +193,27 @@ function action(mode, type, selection) {
|
|||||||
job += selection * 10;
|
job += selection * 10;
|
||||||
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 410 ? "#bAssassin#k" : "#bBandit#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right?");
|
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 410 ? "#bAssassin#k" : "#bBandit#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your desicion here, right?");
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.gainItem(4031012, -1);
|
cm.gainItem(4031012, -1);
|
||||||
|
}
|
||||||
cm.completeQuest(100011);
|
cm.completeQuest(100011);
|
||||||
|
|
||||||
if(job == 410) cm.sendNext("Alright, from here on out you are the #bAssassin#k. Assassins have quick hands and quicker feets to dominate the enemies. Please keep training. I'll make you even more powerful than you are right now!");
|
if (job == 410) {
|
||||||
else cm.sendNext("Alright, you're the #bBandit from here on out. Bandits revel in shadows and darkness, waiting until the right time comes for them to stick a dagger through the enemy's hearth, suddenly and swiftly... please keep training. I'll make you even more powerful than you are right now.");
|
cm.sendNext("Alright, from here on out you are the #bAssassin#k. Assassins have quick hands and quicker feets to dominate the enemies. Please keep training. I'll make you even more powerful than you are right now!");
|
||||||
|
} else {
|
||||||
|
cm.sendNext("Alright, you're the #bBandit from here on out. Bandits revel in shadows and darkness, waiting until the right time comes for them to stick a dagger through the enemy's hearth, suddenly and swiftly... please keep training. I'll make you even more powerful than you are right now.");
|
||||||
|
}
|
||||||
|
|
||||||
if (cm.getJobId() != job)
|
if (cm.getJobId() != job) {
|
||||||
cm.changeJobById(job);
|
cm.changeJobById(job);
|
||||||
} else if (status == 4)
|
}
|
||||||
|
} else if (status == 4) {
|
||||||
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 410 ? "assassin" : "bandit") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 410 ? "assassin" : "bandit") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
||||||
else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottomleft corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
||||||
else if (status == 6)
|
} else if (status == 6) {
|
||||||
cm.sendNextPrev((job == 410 ? "Assassin" : "Bandit") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
cm.sendNextPrev((job == 410 ? "Assassin" : "Bandit") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"]) {
|
} else if (actionx["3thJobI"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
||||||
|
|||||||
@@ -51,76 +51,75 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
var selStr = "Pst... If you have the right goods, I can turn it into something niice...#b"
|
var selStr = "Pst... If you have the right goods, I can turn it into something niice...#b"
|
||||||
var options = new Array("Create a glove","Upgrade a glove","Create a claw","Upgrade a claw","Create materials");
|
var options = ["Create a glove", "Upgrade a glove", "Create a claw", "Upgrade a claw", "Create materials"];
|
||||||
for (var i = 0; i < options.length; i++)
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
cm.sendSimple(selStr);
|
|
||||||
}
|
}
|
||||||
else if (status == 1 && mode == 1) {
|
cm.sendSimple(selStr);
|
||||||
|
} else if (status == 1 && mode == 1) {
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
if (selectedType == 0) { //glove refine
|
if (selectedType == 0) { //glove refine
|
||||||
var selStr = "So, what kind of glove would you like me to make?#b";
|
var selStr = "So, what kind of glove would you like me to make?#b";
|
||||||
var gloves = new Array ("Work Gloves#k - Common Lv. 10#b","Brown Duo#k - Thief Lv. 15#b","Blue Duo#k - Thief Lv. 15#b","Black Duo#k - Thief Lv. 15#b","Bronze Mischief#k - Thief Lv. 20#b","Bronze Wolfskin#k - Thief Lv. 25#b","Steel Sylvia#k - Thief Lv. 30#b",
|
var gloves = ["Work Gloves#k - Common Lv. 10#b", "Brown Duo#k - Thief Lv. 15#b", "Blue Duo#k - Thief Lv. 15#b", "Black Duo#k - Thief Lv. 15#b", "Bronze Mischief#k - Thief Lv. 20#b", "Bronze Wolfskin#k - Thief Lv. 25#b", "Steel Sylvia#k - Thief Lv. 30#b",
|
||||||
"Steel Arbion#k - Thief Lv. 35#b","Red Cleave#k - Thief Lv. 40#b","Blue Moon Glove#k - Thief Lv. 50#b","Bronze Pow#k - Thief Lv. 60#b");
|
"Steel Arbion#k - Thief Lv. 35#b", "Red Cleave#k - Thief Lv. 40#b", "Blue Moon Glove#k - Thief Lv. 50#b", "Bronze Pow#k - Thief Lv. 60#b"];
|
||||||
for (var i = 0; i < gloves.length; i++)
|
for (var i = 0; i < gloves.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + gloves[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + gloves[i] + "#l";
|
||||||
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 1) { //glove upgrade
|
||||||
else if (selectedType == 1){ //glove upgrade
|
|
||||||
var selStr = "An upgraded glove? Sure thing, but note that upgrades won't carry over to the new item... #b";
|
var selStr = "An upgraded glove? Sure thing, but note that upgrades won't carry over to the new item... #b";
|
||||||
var gloves = new Array ("Mithril Mischief#k - Thief Lv. 20#b","Dark Mischief#k - Thief Lv. 20#b","Mithril Wolfskin#k - Thief Lv. 25#b",
|
var gloves = ["Mithril Mischief#k - Thief Lv. 20#b", "Dark Mischief#k - Thief Lv. 20#b", "Mithril Wolfskin#k - Thief Lv. 25#b",
|
||||||
"Dark Wolfskin#k - Thief Lv. 25#b", "Silver Sylvia#k - Thief Lv. 30#b", "Gold Sylvia#k - Thief Lv. 30#b", "Orihalcon Arbion#k - Thief Lv. 35#b", "Gold Arbion#k - Thief Lv. 35#b", "Gold Cleave#k - Thief Lv. 40#b",
|
"Dark Wolfskin#k - Thief Lv. 25#b", "Silver Sylvia#k - Thief Lv. 30#b", "Gold Sylvia#k - Thief Lv. 30#b", "Orihalcon Arbion#k - Thief Lv. 35#b", "Gold Arbion#k - Thief Lv. 35#b", "Gold Cleave#k - Thief Lv. 40#b",
|
||||||
"Dark Cleave#k - Thief Lv. 40#b","Red Moon Glove#k - Thief Lv. 50#b","Brown Moon Glove#k - Thief Lv. 50#b","Silver Pow#k - Thief Lv. 60#b","Gold Pow#k - Thief Lv. 60#b");
|
"Dark Cleave#k - Thief Lv. 40#b", "Red Moon Glove#k - Thief Lv. 50#b", "Brown Moon Glove#k - Thief Lv. 50#b", "Silver Pow#k - Thief Lv. 60#b", "Gold Pow#k - Thief Lv. 60#b"];
|
||||||
for (var i = 0; i < gloves.length; i++)
|
for (var i = 0; i < gloves.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + gloves[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + gloves[i] + "#l";
|
||||||
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 2) { //claw refine
|
||||||
else if (selectedType == 2){ //claw refine
|
|
||||||
var selStr = "So, what kind of claw would you like me to make?#b";
|
var selStr = "So, what kind of claw would you like me to make?#b";
|
||||||
var claws = new Array ("Steel Titans#k - Thief Lv. 15#b","Bronze Igor#k - Thief Lv. 20#b","Meba#k - Thief Lv. 25#b","Steel Guards#k - Thief Lv. 30#b","Bronze Guardian#k - Thief Lv. 35#b","Steel Avarice#k - Thief Lv. 40#b","Steel Slain#k - Thief Lv. 50#b");
|
var claws = ["Steel Titans#k - Thief Lv. 15#b", "Bronze Igor#k - Thief Lv. 20#b", "Meba#k - Thief Lv. 25#b", "Steel Guards#k - Thief Lv. 30#b", "Bronze Guardian#k - Thief Lv. 35#b", "Steel Avarice#k - Thief Lv. 40#b", "Steel Slain#k - Thief Lv. 50#b"];
|
||||||
for (var i = 0; i < claws.length; i++) {
|
for (var i = 0; i < claws.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + claws[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + claws[i] + "#l";
|
||||||
}
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 3) { //claw upgrade
|
||||||
else if (selectedType == 3){ //claw upgrade
|
|
||||||
var selStr = "An upgraded claw? Sure thing, but note that upgrades won't carry over to the new item...#b";
|
var selStr = "An upgraded claw? Sure thing, but note that upgrades won't carry over to the new item...#b";
|
||||||
var claws = new Array ("Mithril Titans#k - Thief Lv. 15#b","Gold Titans#k - Thief Lv. 15#b","Steel Igor#k - Thief Lv. 20#b","Adamantium Igor#k - Thief Lv. 20#b","Mithril Guards#k - Thief Lv. 30#b","Adamantium Guards#k - Thief Lv. 30#b",
|
var claws = ["Mithril Titans#k - Thief Lv. 15#b", "Gold Titans#k - Thief Lv. 15#b", "Steel Igor#k - Thief Lv. 20#b", "Adamantium Igor#k - Thief Lv. 20#b", "Mithril Guards#k - Thief Lv. 30#b", "Adamantium Guards#k - Thief Lv. 30#b",
|
||||||
"Silver Guardian#k - Thief Lv. 35#b","Dark Guardian#k - Thief Lv. 35#b","Blood Avarice#k - Thief Lv. 40#b","Adamantium Avarice#k - Thief Lv. 40#b","Dark Avarice#k - Thief Lv. 40#b","Blood Slain#k - Thief Lv. 50#b","Sapphire Slain#k - Thief Lv. 50#b");
|
"Silver Guardian#k - Thief Lv. 35#b", "Dark Guardian#k - Thief Lv. 35#b", "Blood Avarice#k - Thief Lv. 40#b", "Adamantium Avarice#k - Thief Lv. 40#b", "Dark Avarice#k - Thief Lv. 40#b", "Blood Slain#k - Thief Lv. 50#b", "Sapphire Slain#k - Thief Lv. 50#b"];
|
||||||
for (var i = 0; i < claws.length; i++) {
|
for (var i = 0; i < claws.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + claws[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + claws[i] + "#l";
|
||||||
}
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 4) { //material refine
|
||||||
else if (selectedType == 4){ //material refine
|
|
||||||
var selStr = "Materials? I know of a few materials that I can make for you...#b";
|
var selStr = "Materials? I know of a few materials that I can make for you...#b";
|
||||||
var materials = new Array ("Make Processed Wood with Tree Branch","Make Processed Wood with Firewood","Make Screws (packs of 15)");
|
var materials = ["Make Processed Wood with Tree Branch", "Make Processed Wood with Firewood", "Make Screws (packs of 15)"];
|
||||||
for (var i = 0; i < materials.length; i++) {
|
for (var i = 0; i < materials.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + materials[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + materials[i] + "#l";
|
||||||
}
|
}
|
||||||
equip = false;
|
equip = false;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
if (equip)
|
if (equip) {
|
||||||
status++;
|
status++;
|
||||||
}
|
}
|
||||||
else if (status == 2 && mode == 1) {
|
} else if (status == 2 && mode == 1) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
if (selectedType == 4) { //material refine
|
if (selectedType == 4) { //material refine
|
||||||
var itemSet = new Array (4003001,4003001,4003000);
|
var itemSet = [4003001, 4003001, 4003000];
|
||||||
var matSet = new Array(4000003,4000018,new Array (4011000,4011001));
|
var matSet = [4000003, 4000018, [4011000, 4011001]];
|
||||||
var matQtySet = new Array (10,5,new Array (1,1));
|
var matQtySet = [10, 5, [1, 1]];
|
||||||
var costSet = new Array (0,0,0);
|
var costSet = [0, 0, 0];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -130,51 +129,46 @@ function action(mode, type, selection) {
|
|||||||
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
||||||
|
|
||||||
cm.sendGetNumber(prompt, 1, 1, 100)
|
cm.sendGetNumber(prompt, 1, 1, 100)
|
||||||
}
|
} else if (status == 3 && mode == 1) {
|
||||||
else if (status == 3 && mode == 1) {
|
if (equip) {
|
||||||
if (equip)
|
|
||||||
{
|
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
qty = 1;
|
qty = 1;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedType == 0) { //glove refine
|
if (selectedType == 0) { //glove refine
|
||||||
var itemSet = new Array(1082002,1082029,1082030,1082031,1082032,1082037,1082042,1082046,1082075,1082065,1082092);
|
var itemSet = [1082002, 1082029, 1082030, 1082031, 1082032, 1082037, 1082042, 1082046, 1082075, 1082065, 1082092];
|
||||||
var matSet = new Array(4000021,new Array(4000021,4000018),new Array(4000021,4000015),new Array(4000021,4000020),new Array(4011000,4000021),new Array(4011000,4011001,4000021),new Array(4011001,4000021,4003000),new Array(4011001,4011000,4000021,4003000),new Array(4021000,4000014,4000021,4003000),new Array(4021005,4021008,4000030,4003000),new Array(4011007,4011000,4021007,4000030,4003000));
|
var matSet = [4000021, [4000021, 4000018], [4000021, 4000015], [4000021, 4000020], [4011000, 4000021], [4011000, 4011001, 4000021], [4011001, 4000021, 4003000], [4011001, 4011000, 4000021, 4003000], [4021000, 4000014, 4000021, 4003000], [4021005, 4021008, 4000030, 4003000], [4011007, 4011000, 4021007, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(15,new Array(30,20),new Array(30,20),new Array(30,20),new Array(2,40),new Array(2,1,10),new Array(2,50,10),new Array(3,1,60,15),new Array(3,200,80,30),new Array(3,1,40,30),new Array(1,8,1,50,50));
|
var matQtySet = [15, [30, 20], [30, 20], [30, 20], [2, 40], [2, 1, 10], [2, 50, 10], [3, 1, 60, 15], [3, 200, 80, 30], [3, 1, 40, 30], [1, 8, 1, 50, 50]];
|
||||||
var costSet = new Array(1000,7000,7000,7000,10000,15000,25000,30000,40000,50000,70000);
|
var costSet = [1000, 7000, 7000, 7000, 10000, 15000, 25000, 30000, 40000, 50000, 70000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 1) { //glove upgrade
|
||||||
else if (selectedType == 1){ //glove upgrade
|
var itemSet = [1082033, 1082034, 1082038, 1082039, 1082043, 1082044, 1082047, 1082045, 1082076, 1082074, 1082067, 1082066, 1082093, 1082094];
|
||||||
var itemSet = new Array(1082033,1082034,1082038,1082039,1082043,1082044,1082047,1082045,1082076,1082074,1082067,1082066,1082093,1082094);
|
var matSet = [[1082032, 4011002], [1082032, 4021004], [1082037, 4011002], [1082037, 4021004], [1082042, 4011004], [1082042, 4011006], [1082046, 4011005], [1082046, 4011006], [1082075, 4011006], [1082075, 4021008], [1082065, 4021000], [1082065, 4011006, 4021008], [1082092, 4011001, 4000014], [1082092, 4011006, 4000027]];
|
||||||
var matSet = new Array(new Array(1082032,4011002),new Array(1082032,4021004),new Array(1082037,4011002),new Array(1082037,4021004),new Array(1082042,4011004),new Array(1082042,4011006),new Array(1082046,4011005),new Array(1082046,4011006),new Array(1082075,4011006),new Array(1082075,4021008),new Array(1082065,4021000),new Array(1082065,4011006,4021008),new Array(1082092,4011001,4000014),new Array(1082092,4011006,4000027));
|
var matQtySet = [[1, 1], [1, 1], [1, 2], [1, 2], [1, 2], [1, 1], [1, 3], [1, 2], [1, 4], [1, 2], [1, 5], [1, 2, 1], [1, 7, 200], [1, 7, 150]];
|
||||||
var matQtySet = new Array(new Array(1,1),new Array(1,1),new Array(1,2),new Array(1,2),new Array(1,2),new Array(1,1),new Array(1,3),new Array(1,2),new Array(1,4),new Array(1,2),new Array(1,5),new Array(1,2,1),new Array(1,7,200),new Array(1,7,150));
|
var costSet = [5000, 7000, 10000, 12000, 15000, 20000, 22000, 25000, 40000, 50000, 55000, 60000, 70000, 80000];
|
||||||
var costSet = new Array (5000,7000,10000,12000,15000,20000,22000,25000,40000,50000,55000,60000,70000,80000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 2) { //claw refine
|
||||||
else if (selectedType == 2){ //claw refine
|
var itemSet = [1472001, 1472004, 1472007, 1472008, 1472011, 1472014, 1472018];
|
||||||
var itemSet = new Array(1472001,1472004,1472007,1472008,1472011,1472014,1472018);
|
var matSet = [[4011001, 4000021, 4003000], [4011000, 4011001, 4000021, 4003000], [1472000, 4011001, 4000021, 4003001], [4011000, 4011001, 4000021, 4003000], [4011000, 4011001, 4000021, 4003000], [4011000, 4011001, 4000021, 4003000], [4011000, 4011001, 4000030, 4003000]];
|
||||||
var matSet = new Array(new Array(4011001,4000021,4003000),new Array(4011000,4011001,4000021,4003000),new Array(1472000,4011001,4000021,4003001),new Array(4011000,4011001,4000021,4003000),new Array(4011000,4011001,4000021,4003000),new Array(4011000,4011001,4000021,4003000),new Array(4011000,4011001,4000030,4003000));
|
var matQtySet = [[1, 20, 5], [2, 1, 30, 10], [1, 3, 20, 30], [3, 2, 50, 20], [4, 2, 80, 25], [3, 2, 100, 30], [4, 2, 40, 35]];
|
||||||
var matQtySet = new Array(new Array(1,20,5),new Array(2,1,30,10),new Array(1,3,20,30),new Array(3,2,50,20),new Array(4,2,80,25),new Array(3,2,100,30),new Array(4,2,40,35));
|
var costSet = [2000, 3000, 5000, 15000, 30000, 40000, 50000];
|
||||||
var costSet = new Array(2000,3000,5000,15000,30000,40000,50000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 3) { //claw upgrade
|
||||||
else if (selectedType == 3){ //claw upgrade
|
var itemSet = [1472002, 1472003, 1472005, 1472006, 1472009, 1472010, 1472012, 1472013, 1472015, 1472016, 1472017, 1472019, 1472020];
|
||||||
var itemSet = new Array (1472002,1472003,1472005,1472006,1472009,1472010,1472012,1472013,1472015,1472016,1472017,1472019,1472020);
|
var matSet = [[1472001, 4011002], [1472001, 4011006], [1472004, 4011001], [1472004, 4011003], [1472008, 4011002], [1472008, 4011003], [1472011, 4011004], [1472011, 4021008], [1472014, 4021000], [1472014, 4011003], [1472014, 4021008], [1472018, 4021000], [1472018, 4021005]];
|
||||||
var matSet = new Array(new Array(1472001,4011002),new Array(1472001,4011006),new Array(1472004,4011001),new Array(1472004,4011003),new Array(1472008,4011002),new Array(1472008,4011003),new Array(1472011,4011004),new Array(1472011,4021008),new Array(1472014,4021000),new Array(1472014,4011003),new Array(1472014,4021008),new Array(1472018,4021000),new Array(1472018,4021005));
|
var matQtySet = [[1, 1], [1, 1], [1, 2], [1, 2], [1, 3], [1, 3], [1, 4], [1, 1], [1, 5], [1, 5], [1, 2], [1, 6], [1, 6]];
|
||||||
var matQtySet = new Array (new Array(1,1),new Array(1,1),new Array(1,2),new Array(1,2),new Array(1,3),new Array(1,3),new Array(1,4),new Array(1,1),new Array(1,5),new Array(1,5),new Array(1,2),new Array(1,6),new Array(1,6));
|
var costSet = [1000, 2000, 3000, 5000, 10000, 15000, 20000, 25000, 30000, 30000, 35000, 40000, 40000];
|
||||||
var costSet = new Array (1000,2000,3000,5000,10000,15000,20000,25000,30000,30000,35000,40000,40000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -182,10 +176,11 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var prompt = "You want me to make ";
|
var prompt = "You want me to make ";
|
||||||
if (qty == 1)
|
if (qty == 1) {
|
||||||
prompt += "a #t" + item + "#?";
|
prompt += "a #t" + item + "#?";
|
||||||
else
|
} else {
|
||||||
prompt += qty + " #t" + item + "#?";
|
prompt += qty + " #t" + item + "#?";
|
||||||
|
}
|
||||||
|
|
||||||
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
||||||
|
|
||||||
@@ -193,59 +188,59 @@ function action(mode, type, selection) {
|
|||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendYesNo(prompt);
|
cm.sendYesNo(prompt);
|
||||||
}
|
} else if (status == 4 && mode == 1) {
|
||||||
else if (status == 4 && mode == 1) {
|
|
||||||
var complete = true;
|
var complete = true;
|
||||||
var recvItem = item, recvQty;
|
var recvItem = item, recvQty;
|
||||||
|
|
||||||
if (item == 4003000)//screws
|
if (item == 4003000)//screws
|
||||||
|
{
|
||||||
recvQty = 15 * qty;
|
recvQty = 15 * qty;
|
||||||
else
|
} else {
|
||||||
recvQty = qty;
|
recvQty = qty;
|
||||||
|
}
|
||||||
|
|
||||||
if (!cm.canHold(recvItem, recvQty)) {
|
if (!cm.canHold(recvItem, recvQty)) {
|
||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost * qty) {
|
||||||
else if (cm.getMeso() < cost * qty)
|
|
||||||
{
|
|
||||||
cm.sendOk("I'm afraid you cannot afford my services.");
|
cm.sendOk("I'm afraid you cannot afford my services.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
if (!cm.haveItem(mats[i], matQty[i] * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty * qty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!complete)
|
if (!complete) {
|
||||||
cm.sendOk("What are you trying to pull? I can't make anything unless you bring me what I ask for.");
|
cm.sendOk("What are you trying to pull? I can't make anything unless you bring me what I ask for.");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i] * qty);
|
cm.gainItem(mats[i], -matQty[i] * qty);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
cm.gainItem(mats, -matQty * qty);
|
cm.gainItem(mats, -matQty * qty);
|
||||||
if (cost > 0)
|
}
|
||||||
|
if (cost > 0) {
|
||||||
cm.gainMeso(-cost * qty);
|
cm.gainMeso(-cost * qty);
|
||||||
|
}
|
||||||
|
|
||||||
cm.gainItem(recvItem, recvQty);
|
cm.gainItem(recvItem, recvQty);
|
||||||
cm.sendOk("All done. If you need anything else... Well, I'm not going anywhere.");
|
cm.sendOk("All done. If you need anything else... Well, I'm not going anywhere.");
|
||||||
|
|||||||
@@ -33,84 +33,79 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
var selStr = "Yes, I do own this forge. If you're willing to pay, I can offer you some of my services.#b"
|
var selStr = "Yes, I do own this forge. If you're willing to pay, I can offer you some of my services.#b"
|
||||||
var options = new Array("Refine a mineral ore","Refine a jewel ore","I have Iron Hog's Metal Hoof...","Upgrade a claw");
|
var options = ["Refine a mineral ore", "Refine a jewel ore", "I have Iron Hog's Metal Hoof...", "Upgrade a claw"];
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if (status == 1) {
|
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
if (selectedType == 0) { //mineral refine
|
if (selectedType == 0) { //mineral refine
|
||||||
var selStr = "So, what kind of mineral ore would you like to refine?#b";
|
var selStr = "So, what kind of mineral ore would you like to refine?#b";
|
||||||
var minerals = new Array ("Bronze","Steel","Mithril","Adamantium","Silver","Orihalcon","Gold");
|
var minerals = ["Bronze", "Steel", "Mithril", "Adamantium", "Silver", "Orihalcon", "Gold"];
|
||||||
for (var i = 0; i < minerals.length; i++) {
|
for (var i = 0; i < minerals.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + minerals[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + minerals[i] + "#l";
|
||||||
}
|
}
|
||||||
equip = false;
|
equip = false;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 1) { //jewel refine
|
||||||
else if (selectedType == 1){ //jewel refine
|
|
||||||
var selStr = "So, what kind of jewel ore would you like to refine?#b";
|
var selStr = "So, what kind of jewel ore would you like to refine?#b";
|
||||||
var jewels = new Array ("Garnet","Amethyst","Aquamarine","Emerald","Opal","Sapphire","Topaz","Diamond","Black Crystal");
|
var jewels = ["Garnet", "Amethyst", "Aquamarine", "Emerald", "Opal", "Sapphire", "Topaz", "Diamond", "Black Crystal"];
|
||||||
for (var i = 0; i < jewels.length; i++) {
|
for (var i = 0; i < jewels.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + jewels[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + jewels[i] + "#l";
|
||||||
}
|
}
|
||||||
equip = false;
|
equip = false;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 2) { //foot refine
|
||||||
else if (selectedType == 2){ //foot refine
|
|
||||||
var selStr = "You know about that? Not many people realize the potential in the Iron Hog's Metal Hoof... I can make this into something special, if you want me to.";
|
var selStr = "You know about that? Not many people realize the potential in the Iron Hog's Metal Hoof... I can make this into something special, if you want me to.";
|
||||||
equip = false;
|
equip = false;
|
||||||
cm.sendYesNo(selStr);
|
cm.sendYesNo(selStr);
|
||||||
}
|
} else if (selectedType == 3) { //claw refine
|
||||||
else if (selectedType == 3){ //claw refine
|
|
||||||
var selStr = "Ah, you wish to upgrade a claw? Then tell me, which one?#b";
|
var selStr = "Ah, you wish to upgrade a claw? Then tell me, which one?#b";
|
||||||
var claws = new Array ("Blood Gigantic#k - Thief Lv. 60#b","Sapphire Gigantic#k - Thief Lv. 60#b","Dark Gigantic#k - Thief Lv. 60#b");
|
var claws = ["Blood Gigantic#k - Thief Lv. 60#b", "Sapphire Gigantic#k - Thief Lv. 60#b", "Dark Gigantic#k - Thief Lv. 60#b"];
|
||||||
for (var i = 0; i < claws.length; i++) {
|
for (var i = 0; i < claws.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + claws[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + claws[i] + "#l";
|
||||||
}
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
if (equip)
|
if (equip) {
|
||||||
status++;
|
status++;
|
||||||
}
|
}
|
||||||
else if (status == 2 && mode == 1) {
|
} else if (status == 2 && mode == 1) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
if (selectedType == 0) { //mineral refine
|
if (selectedType == 0) { //mineral refine
|
||||||
var itemSet = new Array(4011000,4011001,4011002,4011003,4011004,4011005,4011006);
|
var itemSet = [4011000, 4011001, 4011002, 4011003, 4011004, 4011005, 4011006];
|
||||||
var matSet = new Array(4010000,4010001,4010002,4010003,4010004,4010005,4010006);
|
var matSet = [4010000, 4010001, 4010002, 4010003, 4010004, 4010005, 4010006];
|
||||||
var matQtySet = new Array(10,10,10,10,10,10,10);
|
var matQtySet = [10, 10, 10, 10, 10, 10, 10];
|
||||||
var costSet = new Array(300,300,300,500,500,500,800);
|
var costSet = [300, 300, 300, 500, 500, 500, 800];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 1) { //jewel refine
|
||||||
else if (selectedType == 1){ //jewel refine
|
var itemSet = [4021000, 4021001, 4021002, 4021003, 4021004, 4021005, 4021006, 4021007, 4021008];
|
||||||
var itemSet = new Array(4021000,4021001,4021002,4021003,4021004,4021005,4021006,4021007,4021008);
|
var matSet = [4020000, 4020001, 4020002, 4020003, 4020004, 4020005, 4020006, 4020007, 4020008];
|
||||||
var matSet = new Array(4020000,4020001,4020002,4020003,4020004,4020005,4020006,4020007,4020008);
|
var matQtySet = [10, 10, 10, 10, 10, 10, 10, 10, 10];
|
||||||
var matQtySet = new Array(10,10,10,10,10,10,10,10,10);
|
var costSet = [500, 500, 500, 500, 500, 500, 500, 1000, 3000];
|
||||||
var costSet = new Array (500,500,500,500,500,500,500,1000,3000);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 2) { //special refine
|
||||||
else if (selectedType == 2){ //special refine
|
var itemSet = [4011001, 1];
|
||||||
var itemSet = new Array(4011001,1);
|
var matSet = [4000039, 1];
|
||||||
var matSet = new Array(4000039,1);
|
var matQtySet = [100, 1];
|
||||||
var matQtySet = new Array (100,1);
|
var costSet = [1000, 1]
|
||||||
var costSet = new Array (1000,1)
|
|
||||||
item = itemSet[0];
|
item = itemSet[0];
|
||||||
mats = matSet[0];
|
mats = matSet[0];
|
||||||
matQty = matQtySet[0];
|
matQty = matQtySet[0];
|
||||||
@@ -120,37 +115,36 @@ function action(mode, type, selection) {
|
|||||||
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";
|
||||||
|
|
||||||
cm.sendGetNumber(prompt, 1, 1, 100)
|
cm.sendGetNumber(prompt, 1, 1, 100)
|
||||||
}
|
} else if (status == 3) {
|
||||||
|
if (equip) {
|
||||||
else if (status == 3) {
|
|
||||||
if (equip)
|
|
||||||
{
|
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
qty = 1;
|
qty = 1;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||||
|
}
|
||||||
|
|
||||||
last_use = false;
|
last_use = false;
|
||||||
|
|
||||||
if (selectedType == 3) { //claw refine
|
if (selectedType == 3) { //claw refine
|
||||||
var itemSet = new Array (1472023,1472024,1472025);
|
var itemSet = [1472023, 1472024, 1472025];
|
||||||
var matSet = new Array(new Array (1472022,4011007,4021000,2012000),new Array (1472022,4011007,4021005,2012002),new Array (1472022,4011007,4021008,4000046));
|
var matSet = [[1472022, 4011007, 4021000, 2012000], [1472022, 4011007, 4021005, 2012002], [1472022, 4011007, 4021008, 4000046]];
|
||||||
var matQtySet = new Array (new Array (1,1,8,10),new Array (1,1,8,10),new Array (1,1,3,5));
|
var matQtySet = [[1, 1, 8, 10], [1, 1, 8, 10], [1, 1, 3, 5]];
|
||||||
var costSet = new Array (80000,80000,100000)
|
var costSet = [80000, 80000, 100000]
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
if (selectedItem != 2)
|
if (selectedItem != 2) {
|
||||||
last_use = true;
|
last_use = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var prompt = "You want me to make ";
|
var prompt = "You want me to make ";
|
||||||
if (qty == 1)
|
if (qty == 1) {
|
||||||
prompt += "a #t" + item + "#?";
|
prompt += "a #t" + item + "#?";
|
||||||
else
|
} else {
|
||||||
prompt += qty + " #t" + item + "#?";
|
prompt += qty + " #t" + item + "#?";
|
||||||
|
}
|
||||||
|
|
||||||
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
||||||
|
|
||||||
@@ -173,24 +167,25 @@ function action(mode, type, selection) {
|
|||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost * qty) {
|
||||||
else if (cm.getMeso() < cost * qty) {
|
|
||||||
cm.sendOk("Cash only, no credit.");
|
cm.sendOk("Cash only, no credit.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
if (!cm.haveItem(mats[i], matQty[i] * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty * qty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty * qty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!complete)
|
if (!complete) {
|
||||||
cm.sendOk("I cannot accept substitutes. If you don't have what I need, then I won't be able to help you.");
|
cm.sendOk("I cannot accept substitutes. If you don't have what I need, then I won't be able to help you.");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i] * qty);
|
cm.gainItem(mats[i], -matQty[i] * qty);
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ function pushIfItemExists(array, itemid) {
|
|||||||
array.push(itemid);
|
array.push(itemid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -43,36 +44,40 @@ function start() {
|
|||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
|
||||||
|
{
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("Well, hello! Welcome to the Henesys Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152001##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152001##t5152001##l");
|
cm.sendSimple("Well, hello! Welcome to the Henesys Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152001##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152001##t5152001##l");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (selection == 2) {
|
if (selection == 2) {
|
||||||
facenew = Array();
|
facenew = Array();
|
||||||
if (cm.getPlayer().getGender() == 0) {
|
if (cm.getPlayer().getGender() == 0) {
|
||||||
for(var i = 0; i < mface_v.length; i++)
|
for (var i = 0; i < mface_v.length; i++) {
|
||||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (cm.getPlayer().getGender() == 1) {
|
if (cm.getPlayer().getGender() == 1) {
|
||||||
for(var i = 0; i < fface_v.length; i++)
|
for (var i = 0; i < fface_v.length; i++) {
|
||||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cm.sendStyle("Let's see... I can totally transform your face into something new. Don't you want to try it? For #b#t5152001##k, you can get the face of your liking. Take your time in choosing the face of your preference.", facenew);
|
cm.sendStyle("Let's see... I can totally transform your face into something new. Don't you want to try it? For #b#t5152001##k, you can get the face of your liking. Take your time in choosing the face of your preference.", facenew);
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 2) {
|
||||||
else if (status == 2){
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
if (cm.haveItem(5152001) == true) {
|
if (cm.haveItem(5152001) == true) {
|
||||||
cm.gainItem(5152001, -1);
|
cm.gainItem(5152001, -1);
|
||||||
cm.setFace(facenew[selection]);
|
cm.setFace(facenew[selection]);
|
||||||
cm.sendOk("Enjoy your new and improved face!");
|
cm.sendOk("Enjoy your new and improved face!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ function pushIfItemExists(array, itemid) {
|
|||||||
array.push(itemid);
|
array.push(itemid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -45,10 +46,11 @@ function action(mode, type, selection) {
|
|||||||
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152000##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152000##t5152000##l");
|
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152000##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152000##t5152000##l");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
@@ -70,8 +72,7 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152000##k?");
|
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152000##k?");
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 2) {
|
||||||
else if (status == 2){
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
if (cm.haveItem(5152000) == true) {
|
if (cm.haveItem(5152000) == true) {
|
||||||
cm.gainItem(5152000, -1);
|
cm.gainItem(5152000, -1);
|
||||||
|
|||||||
@@ -4,13 +4,16 @@ var cost = 1000;
|
|||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
cm.sendNext("Hi, I'm the ticket salesman.");
|
cm.sendNext("Hi, I'm the ticket salesman.");
|
||||||
if (cm.isQuestStarted(2055) || cm.isQuestCompleted(2055))
|
if (cm.isQuestStarted(2055) || cm.isQuestCompleted(2055)) {
|
||||||
zones++;
|
zones++;
|
||||||
if (cm.isQuestStarted(2056) || cm.isQuestCompleted(2056))
|
}
|
||||||
|
if (cm.isQuestStarted(2056) || cm.isQuestCompleted(2056)) {
|
||||||
zones++;
|
zones++;
|
||||||
if (cm.isQuestStarted(2057) || cm.isQuestCompleted(2057))
|
}
|
||||||
|
if (cm.isQuestStarted(2057) || cm.isQuestCompleted(2057)) {
|
||||||
zones++;
|
zones++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
status++;
|
status++;
|
||||||
@@ -19,18 +22,19 @@ function action(mode, type, selection) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (zones == 0)
|
if (zones == 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
var selStr = "Which ticket would you like?#b";
|
var selStr = "Which ticket would you like?#b";
|
||||||
for (var i = 0; i < zones; i++)
|
for (var i = 0; i < zones; i++) {
|
||||||
selStr += "\r\n#L" + i + "#Construction site B" + (i + 1) + " (" + cost + " mesos)#l";
|
selStr += "\r\n#L" + i + "#Construction site B" + (i + 1) + " (" + cost + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (cm.getMeso() < cost)
|
if (cm.getMeso() < cost) {
|
||||||
cm.sendOk("You do not have enough mesos.");
|
cm.sendOk("You do not have enough mesos.");
|
||||||
else {
|
} else {
|
||||||
cm.gainMeso(-cost);
|
cm.gainMeso(-cost);
|
||||||
if (selection < 0 || selection > zones) {
|
if (selection < 0 || selection > zones) {
|
||||||
cm.getClient().disconnect(false, false);
|
cm.getClient().disconnect(false, false);
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
var status = 0;
|
var status = 0;
|
||||||
var ticketSelection = -1;
|
var ticketSelection = -1;
|
||||||
var text = "Here's the ticket reader.";
|
var text = "Here's the ticket reader.";
|
||||||
@@ -31,7 +29,7 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (selection == 1) {
|
} else if (selection == 1) {
|
||||||
if (cm.haveItem(4031036) || cm.haveItem(4031037) || cm.haveItem(4031038)) {
|
if (cm.haveItem(4031036) || cm.haveItem(4031037) || cm.haveItem(4031038)) {
|
||||||
text += " You will be brought in immediately. Which ticket you would like to use?#b";
|
text += " You will be brought in immediately. Which ticket you would like to use?#b";
|
||||||
@@ -45,7 +43,7 @@ function action(mode, type, selection) {
|
|||||||
} else {
|
} else {
|
||||||
cm.sendOk("It seems as though you don't have a ticket!");
|
cm.sendOk("It seems as though you don't have a ticket!");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (selection == 2) {
|
} else if (selection == 2) {
|
||||||
if (!cm.haveItem(4031711) && cm.getPlayer().getMapId() == 103000100) {
|
if (!cm.haveItem(4031711) && cm.getPlayer().getMapId() == 103000100) {
|
||||||
@@ -58,7 +56,7 @@ function action(mode, type, selection) {
|
|||||||
} else {
|
} else {
|
||||||
cm.sendNext("We will begin boarding 1 minute before the takeoff. Please be patient and wait for a few minutes. Be aware that the subway will take off right on time, and we stop receiving tickets 1 minute before that, so please make sure to be here on time.");
|
cm.sendNext("We will begin boarding 1 minute before the takeoff. Please be patient and wait for a few minutes. Be aware that the subway will take off right on time, and we stop receiving tickets 1 minute before that, so please make sure to be here on time.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
@@ -76,14 +74,13 @@ function action(mode, type, selection) {
|
|||||||
if (cm.haveItem(4031711)) {
|
if (cm.haveItem(4031711)) {
|
||||||
if (em.getProperty("entry") == "false") {
|
if (em.getProperty("entry") == "false") {
|
||||||
cm.sendNext("We will begin boarding 1 minute before the takeoff. Please be patient and wait for a few minutes. Be aware that the subway will take off right on time, and we stop receiving tickets 1 minute before that, so please make sure to be here on time.");
|
cm.sendNext("We will begin boarding 1 minute before the takeoff. Please be patient and wait for a few minutes. Be aware that the subway will take off right on time, and we stop receiving tickets 1 minute before that, so please make sure to be here on time.");
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.gainItem(4031711, -1);
|
cm.gainItem(4031711, -1);
|
||||||
cm.warp(600010004);
|
cm.warp(600010004);
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,15 +19,17 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Shumi JQ Chest #1
|
/* Shumi JQ Chest #1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
prizes = [4020000, 4020001, 4020002, 4020003, 4020004];
|
prizes = [4020000, 4020001, 4020002, 4020003, 4020004];
|
||||||
if (cm.isQuestStarted(2055))
|
if (cm.isQuestStarted(2055)) {
|
||||||
cm.gainItem(4031039, 1);
|
cm.gainItem(4031039, 1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(4020000 + ((Math.random() * 5) | 0), 1);
|
cm.gainItem(4020000 + ((Math.random() * 5) | 0), 1);
|
||||||
|
}
|
||||||
cm.warp(103000100, 0);
|
cm.warp(103000100, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -19,15 +19,17 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Shumi JQ Chest #2
|
/* Shumi JQ Chest #2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
prizes = [4020005, 4020006, 4020007, 4020008, 4010000];
|
prizes = [4020005, 4020006, 4020007, 4020008, 4010000];
|
||||||
if (cm.isQuestStarted(2056))
|
if (cm.isQuestStarted(2056)) {
|
||||||
cm.gainItem(4031040, 1);
|
cm.gainItem(4031040, 1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)], 1);
|
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)], 1);
|
||||||
|
}
|
||||||
cm.warp(103000100, 0);
|
cm.warp(103000100, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -19,15 +19,17 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Shumi JQ Chest #3
|
/* Shumi JQ Chest #3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
prizes = [4010001, 4010002, 4010003, 4010004, 4010005, 4010006, 4010007];
|
prizes = [4010001, 4010002, 4010003, 4010004, 4010005, 4010006, 4010007];
|
||||||
if (cm.isQuestStarted(2057))
|
if (cm.isQuestStarted(2057)) {
|
||||||
cm.gainItem(4031041, 1);
|
cm.gainItem(4031041, 1);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)], 1);
|
cm.gainItem(prizes[parseInt(Math.random() * prizes.length)], 1);
|
||||||
|
}
|
||||||
cm.warp(103000100, 0);
|
cm.warp(103000100, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -42,14 +42,13 @@ function action(mode, type, selection) {
|
|||||||
} else if (mode == 0) {
|
} else if (mode == 0) {
|
||||||
cm.sendOk("Alright, see you next time.");
|
cm.sendOk("Alright, see you next time.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
status++;
|
status++;
|
||||||
if (status == 1)
|
if (status == 1) {
|
||||||
cm.sendNextPrev("Are you going to give up and leave this place?")
|
cm.sendNextPrev("Are you going to give up and leave this place?")
|
||||||
else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendYesNo("You'll have to start from scratch the next time you come in...");
|
cm.sendYesNo("You'll have to start from scratch the next time you come in...");
|
||||||
else if (status == 3){
|
} else if (status == 3) {
|
||||||
cm.warp(103000100, 0);
|
cm.warp(103000100, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,10 +41,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("So, are you going to use the Internet Cafe? There is a fee to use the spaces there, that is #b5,000 mesos#k. Are you going to enter the Cafe?");
|
cm.sendYesNo("So, are you going to use the Internet Cafe? There is a fee to use the spaces there, that is #b5,000 mesos#k. Are you going to enter the Cafe?");
|
||||||
|
|||||||
@@ -40,10 +40,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (cm.getMapId() != 193000000) {
|
if (cm.getMapId() != 193000000) {
|
||||||
var eim = cm.getEventInstance();
|
var eim = cm.getEventInstance();
|
||||||
@@ -59,7 +60,7 @@ function action(mode, type, selection) {
|
|||||||
eim.clearPQ();
|
eim.clearPQ();
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
cm.sendYesNo("Your team must collect #r" + couponsNeeded + "#k coupons to complete this instance. Talk to me when you have the right amount in hands... Or you want to #bquit now#k? Note that if you quit now #ryour team will be forced to quit#k as well.");
|
cm.sendYesNo("Your team must collect #r" + couponsNeeded + "#k coupons to complete this instance. Talk to me when you have the right amount in hands... Or you want to #bquit now#k? Note that if you quit now #ryour team will be forced to quit#k as well.");
|
||||||
}
|
}
|
||||||
@@ -117,8 +118,7 @@ function action(mode, type, selection) {
|
|||||||
if (!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
|
if (!em.startInstance(cm.getParty(), cm.getPlayer().getMap(), 1)) {
|
||||||
cm.sendOk("Another party has already entered the #rParty Quest#k in this channel. Please try another channel, or wait for the current party to finish.");
|
cm.sendOk("Another party has already entered the #rParty Quest#k in this channel. Please try another channel, or wait for the current party to finish.");
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
cm.sendOk("You cannot start this party quest yet, because either your party is not in the range size, some of your party members are not eligible to attempt it or they are not in this map. If you're having trouble finding party members, try Party Search.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,10 +70,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1 && advance)
|
if (mode == 1 && advance) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
advance = true;
|
advance = true;
|
||||||
|
|
||||||
@@ -84,18 +85,25 @@ function action(mode, type, selection) {
|
|||||||
var sendStr;
|
var sendStr;
|
||||||
currentTier = getRewardTier();
|
currentTier = getRewardTier();
|
||||||
|
|
||||||
if(currentTier >= 0) sendStr = "With the items you have currently placed, you can retrieve a #r" + levels[currentTier] + "#k prize. Place erasers:";
|
if (currentTier >= 0) {
|
||||||
else sendStr = "You have placed no erasers yet. Place erasers:";
|
sendStr = "With the items you have currently placed, you can retrieve a #r" + levels[currentTier] + "#k prize. Place erasers:";
|
||||||
|
} else {
|
||||||
|
sendStr = "You have placed no erasers yet. Place erasers:";
|
||||||
|
}
|
||||||
|
|
||||||
var listStr = "";
|
var listStr = "";
|
||||||
for (var i = 0; i < tickets.length; i++) {
|
for (var i = 0; i < tickets.length; i++) {
|
||||||
listStr += "#b#L" + i + "##t" + (4001009 + i) + "##k";
|
listStr += "#b#L" + i + "##t" + (4001009 + i) + "##k";
|
||||||
if(tickets[i] > 0) listStr += " - " + tickets[i] + " erasers";
|
if (tickets[i] > 0) {
|
||||||
|
listStr += " - " + tickets[i] + " erasers";
|
||||||
|
}
|
||||||
listStr += "#l\r\n";
|
listStr += "#l\r\n";
|
||||||
}
|
}
|
||||||
if (hasCoin) {
|
if (hasCoin) {
|
||||||
listStr += "#b#L" + tickets.length + "##t" + coinId + "##k";
|
listStr += "#b#L" + tickets.length + "##t" + coinId + "##k";
|
||||||
if(coins > 0) listStr += " - " + coins + " feathers";
|
if (coins > 0) {
|
||||||
|
listStr += " - " + coins + " feathers";
|
||||||
|
}
|
||||||
listStr += "#l\r\n";
|
listStr += "#l\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,8 +120,11 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var tickSel;
|
var tickSel;
|
||||||
if(selection < tickets.length) tickSel = 4001009 + selection;
|
if (selection < tickets.length) {
|
||||||
else tickSel = coinId;
|
tickSel = 4001009 + selection;
|
||||||
|
} else {
|
||||||
|
tickSel = coinId;
|
||||||
|
}
|
||||||
|
|
||||||
curItemQty = cm.getItemQuantity(tickSel);
|
curItemQty = cm.getItemQuantity(tickSel);
|
||||||
curItemSel = selection;
|
curItemSel = selection;
|
||||||
@@ -130,14 +141,19 @@ function action(mode, type, selection) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
var placedQty = parseInt(text);
|
var placedQty = parseInt(text);
|
||||||
if(isNaN(placedQty) || placedQty < 0) throw true;
|
if (isNaN(placedQty) || placedQty < 0) {
|
||||||
|
throw true;
|
||||||
|
}
|
||||||
|
|
||||||
if (placedQty > curItemQty) {
|
if (placedQty > curItemQty) {
|
||||||
cm.sendPrev("You cannot insert the given amount of erasers (#r" + curItemQty + "#k available). Click '#rBack#k' to return to the main interface.");
|
cm.sendPrev("You cannot insert the given amount of erasers (#r" + curItemQty + "#k available). Click '#rBack#k' to return to the main interface.");
|
||||||
advance = false;
|
advance = false;
|
||||||
} else {
|
} else {
|
||||||
if(curItemSel < tickets.length) tickets[curItemSel] = placedQty;
|
if (curItemSel < tickets.length) {
|
||||||
else coins = placedQty;
|
tickets[curItemSel] = placedQty;
|
||||||
|
} else {
|
||||||
|
coins = placedQty;
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendPrev("Operation succeeded. Click '#rBack#k' to return to the main interface.");
|
cm.sendPrev("Operation succeeded. Click '#rBack#k' to return to the main interface.");
|
||||||
advance = false;
|
advance = false;
|
||||||
@@ -162,10 +178,15 @@ function getRewardTier() {
|
|||||||
var points = getPoints();
|
var points = getPoints();
|
||||||
|
|
||||||
if (points <= 6) {
|
if (points <= 6) {
|
||||||
if(points <= 0) return -1;
|
if (points <= 0) {
|
||||||
else return 0;
|
return -1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (points >= 46) {
|
||||||
|
return 5;
|
||||||
}
|
}
|
||||||
if(points >= 46) return 5;
|
|
||||||
|
|
||||||
return Math.floor((points - 6) / 8);
|
return Math.floor((points - 6) / 8);
|
||||||
}
|
}
|
||||||
@@ -174,7 +195,9 @@ function getPoints() {
|
|||||||
var points = 0;
|
var points = 0;
|
||||||
|
|
||||||
for (var i = 0; i < tickets.length; i++) {
|
for (var i = 0; i < tickets.length; i++) {
|
||||||
if(tickets[i] <= 0) continue;
|
if (tickets[i] <= 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
points += (6 + ((tickets[i] - 1) * getTicketMultiplier(i))); //6 from uniques + rest from each ticket difficulty
|
points += (6 + ((tickets[i] - 1) * getTicketMultiplier(i))); //6 from uniques + rest from each ticket difficulty
|
||||||
}
|
}
|
||||||
@@ -184,8 +207,11 @@ function getPoints() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTicketMultiplier(ticket) {
|
function getTicketMultiplier(ticket) {
|
||||||
if(ticket == 1 || ticket == 3) return 3;
|
if (ticket == 1 || ticket == 3) {
|
||||||
else return 1;
|
return 3;
|
||||||
|
} else {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function givePrize() {
|
function givePrize() {
|
||||||
|
|||||||
@@ -60,10 +60,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
var sendStr = "The #bInternet Cafe Party Quest#k rewards players with ticket-like #bfigure erasers#k, that can be used on the vending machine to retrieve prizes. By further increasing the stakes, one can get better prizes, separated by #rtiers#k.\r\n\r\nThe possible rewards for each tier are depicted here:\r\n\r\n#b";
|
var sendStr = "The #bInternet Cafe Party Quest#k rewards players with ticket-like #bfigure erasers#k, that can be used on the vending machine to retrieve prizes. By further increasing the stakes, one can get better prizes, separated by #rtiers#k.\r\n\r\nThe possible rewards for each tier are depicted here:\r\n\r\n#b";
|
||||||
@@ -98,7 +99,9 @@ function action(mode, type, selection) {
|
|||||||
var sendStr = "The following items are being awarded at #b" + levels[selection] + "#k:\r\n\r\n";
|
var sendStr = "The following items are being awarded at #b" + levels[selection] + "#k:\r\n\r\n";
|
||||||
for (var i = 0; i < lvTarget.length; i++) {
|
for (var i = 0; i < lvTarget.length; i++) {
|
||||||
sendStr += " #L" + i + "# #i" + lvTarget[i] + "# #t" + lvTarget[i] + "#";
|
sendStr += " #L" + i + "# #i" + lvTarget[i] + "# #t" + lvTarget[i] + "#";
|
||||||
if(lvQty[i] > 1) sendStr += " (" + lvQty[i] + ")";
|
if (lvQty[i] > 1) {
|
||||||
|
sendStr += " (" + lvQty[i] + ")";
|
||||||
|
}
|
||||||
sendStr += "#l\r\n";
|
sendStr += "#l\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,17 +20,20 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
var selStr = "";
|
var selStr = "";
|
||||||
if (cm.getJobId() == 0)
|
if (cm.getJobId() == 0) {
|
||||||
selStr += "We have a special 90% discount for beginners.";
|
selStr += "We have a special 90% discount for beginners.";
|
||||||
|
}
|
||||||
selStr += "Choose your destination, for fees will change from place to place.#b";
|
selStr += "Choose your destination, for fees will change from place to place.#b";
|
||||||
for (var i = 0; i < maps.length; i++)
|
for (var i = 0; i < maps.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + (cm.getJobId() == 0 ? cost[i] / 10 : cost[i]) + " mesos)#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to #b#m" + maps[selection] + "##k? It'll cost you #b" + (cm.getJobId() == 0 ? cost[selection] / 10 : cost[selection]) + " mesos#k.");
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ function pushIfItemExists(array, itemid) {
|
|||||||
array.push(itemid);
|
array.push(itemid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -44,12 +45,14 @@ function start() {
|
|||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) // disposing issue with stylishs found thanks to Vcoc
|
||||||
|
{
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("Hello! I'm Don Giovanni, head of the beauty salon! If you have either #b#t5150003##k or #b#t5151003##k, why don't you let me take care of the rest? Decide what you want to do with your hair...\r\n#L1#Haircut: #i5150003##t5150003##l\r\n#L2#Dye your hair: #i5151003##t5151003##l");
|
cm.sendSimple("Hello! I'm Don Giovanni, head of the beauty salon! If you have either #b#t5150003##k or #b#t5151003##k, why don't you let me take care of the rest? Decide what you want to do with your hair...\r\n#L1#Haircut: #i5150003##t5150003##l\r\n#L2#Dye your hair: #i5151003##t5151003##l");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
@@ -57,13 +60,15 @@ function action(mode, type, selection) {
|
|||||||
beauty = 1;
|
beauty = 1;
|
||||||
hairnew = Array();
|
hairnew = Array();
|
||||||
if (cm.getPlayer().getGender() == 0) {
|
if (cm.getPlayer().getGender() == 0) {
|
||||||
for(var i = 0; i < mhair_v.length; i++)
|
for (var i = 0; i < mhair_v.length; i++) {
|
||||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (cm.getPlayer().getGender() == 1) {
|
if (cm.getPlayer().getGender() == 1) {
|
||||||
for(var i = 0; i < fhair_v.length; i++)
|
for (var i = 0; i < fhair_v.length; i++) {
|
||||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cm.sendStyle("I can totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150003##k I'll change it for you. Choose the one to your liking~.", hairnew);
|
cm.sendStyle("I can totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150003##k I'll change it for you. Choose the one to your liking~.", hairnew);
|
||||||
} else if (selection == 2) {
|
} else if (selection == 2) {
|
||||||
beauty = 2;
|
beauty = 2;
|
||||||
@@ -74,8 +79,7 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
cm.sendStyle("I can totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151003##k I'll change it for you. Choose the one to your liking.", haircolor);
|
cm.sendStyle("I can totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151003##k I'll change it for you. Choose the one to your liking.", haircolor);
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 2) {
|
||||||
else if (status == 2){
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
if (beauty == 1) {
|
if (beauty == 1) {
|
||||||
if (cm.haveItem(5420003)) {
|
if (cm.haveItem(5420003)) {
|
||||||
@@ -85,17 +89,19 @@ function action(mode, type, selection) {
|
|||||||
cm.gainItem(5150003, -1);
|
cm.gainItem(5150003, -1);
|
||||||
cm.setHair(hairnew[selection]);
|
cm.setHair(hairnew[selection]);
|
||||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (beauty == 2) {
|
if (beauty == 2) {
|
||||||
if (cm.haveItem(5151003)) {
|
if (cm.haveItem(5151003)) {
|
||||||
cm.gainItem(5151003, -1);
|
cm.gainItem(5151003, -1);
|
||||||
cm.setHair(haircolor[selection]);
|
cm.setHair(haircolor[selection]);
|
||||||
cm.sendOk("Enjoy your new and improved haircolor!");
|
cm.sendOk("Enjoy your new and improved haircolor!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (beauty == 0) {
|
if (beauty == 0) {
|
||||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||||
cm.gainMeso(-hairprice);
|
cm.gainMeso(-hairprice);
|
||||||
@@ -105,9 +111,10 @@ function action(mode, type, selection) {
|
|||||||
cm.gainMeso(-haircolorprice);
|
cm.gainMeso(-haircolorprice);
|
||||||
cm.gainItem(5151003, 1);
|
cm.gainItem(5151003, 1);
|
||||||
cm.sendOk("Enjoy!");
|
cm.sendOk("Enjoy!");
|
||||||
} else
|
} else {
|
||||||
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ function pushIfItemExists(array, itemid) {
|
|||||||
array.push(itemid);
|
array.push(itemid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
status = -1;
|
status = -1;
|
||||||
action(1, 0, 0);
|
action(1, 0, 0);
|
||||||
@@ -48,10 +49,11 @@ function action(mode, type, selection) {
|
|||||||
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
if (mode < 1) { // disposing issue with stylishs found thanks to Vcoc
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendSimple("I'm Andre, Don's assistant. Everyone calls me Andre, though. If you have a #b#t5150002##k, #b#t5150011##k or a #b#t5151002##k, please let me change your hairdo!\r\n#L0#Haircut: #i5150002##t5150002##l\r\n#L1#Haircut: #i5150011##t5150011##l\r\n#L2#Dye your hair: #i5151002##t5151002##l");
|
cm.sendSimple("I'm Andre, Don's assistant. Everyone calls me Andre, though. If you have a #b#t5150002##k, #b#t5150011##k or a #b#t5151002##k, please let me change your hairdo!\r\n#L0#Haircut: #i5150002##t5150002##l\r\n#L1#Haircut: #i5150011##t5150011##l\r\n#L2#Dye your hair: #i5151002##t5151002##l");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
@@ -97,8 +99,7 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151002##k and change it up?");
|
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151002##k and change it up?");
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 2) {
|
||||||
else if (status == 2){
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
if (beauty == 1) {
|
if (beauty == 1) {
|
||||||
if (cm.haveItem(5150011) == true) {
|
if (cm.haveItem(5150011) == true) {
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendOk("A small focus of light lighting in the immersive darkness.");
|
cm.sendOk("A small focus of light lighting in the immersive darkness.");
|
||||||
|
|||||||
@@ -38,10 +38,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendOk("Just a trash can sitting there.");
|
cm.sendOk("Just a trash can sitting there.");
|
||||||
|
|||||||
@@ -18,10 +18,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendOk("Just a trash can sitting there.");
|
cm.sendOk("Just a trash can sitting there.");
|
||||||
|
|||||||
@@ -13,17 +13,16 @@ function start(){
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1) {
|
if (mode == -1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (mode == 0 && status == 0) {
|
if (mode == 0 && status == 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (mode == 0) {
|
||||||
else if(mode == 0)
|
|
||||||
status--;
|
status--;
|
||||||
else
|
} else {
|
||||||
status++;
|
status++;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestStarted(20710)) {
|
if (cm.isQuestStarted(20710)) {
|
||||||
|
|||||||
@@ -18,10 +18,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendOk("Just a trash can sitting there.");
|
cm.sendOk("Just a trash can sitting there.");
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
var status = 0;
|
var status = 0;
|
||||||
var section = 0;
|
var section = 0;
|
||||||
|
|
||||||
//questid 29931, infoquest 7662
|
//questid 29931, infoquest 7662
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
|||||||
@@ -41,159 +41,163 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
var selStr = "Hello, I live here, but don't underestimate me. How about I help you by making you a new pair of shoes?#b"
|
var selStr = "Hello, I live here, but don't underestimate me. How about I help you by making you a new pair of shoes?#b"
|
||||||
var options = new Array("Create a Warrior shoe","Create a Bowman shoe","Create a Magician shoe","Create a Thief shoe");
|
var options = ["Create a Warrior shoe", "Create a Bowman shoe", "Create a Magician shoe", "Create a Thief shoe"];
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (status == 1 && mode == 1) {
|
||||||
else if (status == 1 && mode == 1) {
|
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
var selStr;
|
var selStr;
|
||||||
var shoes;
|
var shoes;
|
||||||
if (selectedType == 0) { //warrior shoe
|
if (selectedType == 0) { //warrior shoe
|
||||||
selStr = "Warrior shoes? Sure thing, which kind?#b";
|
selStr = "Warrior shoes? Sure thing, which kind?#b";
|
||||||
shoes = new Array ("Silver War Boots#k - Warrior Lv. 25#b","Gold War Boots#k - Warrior Lv. 25#b","Dark War Boots#k - Warrior Lv. 25#b",
|
shoes = ["Silver War Boots#k - Warrior Lv. 25#b", "Gold War Boots#k - Warrior Lv. 25#b", "Dark War Boots#k - Warrior Lv. 25#b",
|
||||||
"Emerald Battle Grieve#k - Warrior Lv. 30#b", "Mithril Battle Grieve#k - Warrior Lv. 30#b", "Silver Battle Grieve#k - Warrior Lv. 30#b", "Blood Battle Grieve#k - Warrior Lv. 30#b",
|
"Emerald Battle Grieve#k - Warrior Lv. 30#b", "Mithril Battle Grieve#k - Warrior Lv. 30#b", "Silver Battle Grieve#k - Warrior Lv. 30#b", "Blood Battle Grieve#k - Warrior Lv. 30#b",
|
||||||
"Steel Trigger#k - Warrior Lv. 35#b", "Mithril Trigger#k - Warrior Lv. 35#b", "Dark Trigger#k - Warrior Lv. 35#b",
|
"Steel Trigger#k - Warrior Lv. 35#b", "Mithril Trigger#k - Warrior Lv. 35#b", "Dark Trigger#k - Warrior Lv. 35#b",
|
||||||
"Brown Jangoon Boots#k - Warrior Lv. 40#b", "Maroon Jangoon Boots#k - Warrior Lv. 40#b", "Blue Jangoon Boots#k - Warrior Lv. 40#b",
|
"Brown Jangoon Boots#k - Warrior Lv. 40#b", "Maroon Jangoon Boots#k - Warrior Lv. 40#b", "Blue Jangoon Boots#k - Warrior Lv. 40#b",
|
||||||
"Emerald Hildon Boots#k - Warrior Lv. 50#b", "Mithril Hildon Boots#k - Warrior Lv. 50#b", "Orihalcon Hildon Boots#k - Warrior Lv. 50#b", "Gold Hildon Boots#k - Warrior Lv. 50#b",
|
"Emerald Hildon Boots#k - Warrior Lv. 50#b", "Mithril Hildon Boots#k - Warrior Lv. 50#b", "Orihalcon Hildon Boots#k - Warrior Lv. 50#b", "Gold Hildon Boots#k - Warrior Lv. 50#b",
|
||||||
"Sapphire Camel Boots#k - Warrior Lv. 60#b","Orihalcon Camel Boots#k - Warrior Lv. 60#b","Blood Camel Boots#k - Warrior Lv. 60#b");;
|
"Sapphire Camel Boots#k - Warrior Lv. 60#b", "Orihalcon Camel Boots#k - Warrior Lv. 60#b", "Blood Camel Boots#k - Warrior Lv. 60#b"];
|
||||||
}
|
|
||||||
else if (selectedType == 1){ //bowman shoe
|
} else if (selectedType == 1) { //bowman shoe
|
||||||
selStr = "Bowman shoes? Sure thing, which kind?#b";
|
selStr = "Bowman shoes? Sure thing, which kind?#b";
|
||||||
shoes = new Array ("Brown Jack Boots#k - Bowman Lv. 25#b","Green Jack Boots#k - Bowman Lv. 25#b","Red Jack Boots#k - Bowman Lv. 25#b",
|
shoes = ["Brown Jack Boots#k - Bowman Lv. 25#b", "Green Jack Boots#k - Bowman Lv. 25#b", "Red Jack Boots#k - Bowman Lv. 25#b",
|
||||||
"Red Hunter Boots#k - Bowman Lv. 30#b", "Blue Hunter Boots#k - Bowman Lv. 30#b", "Green Hunter Boots#k - Bowman Lv. 30#b", "Black Hunter Boots#k - Bowman Lv. 30#b", "Brown Hunter Boots#k - Bowman Lv. 30#b",
|
"Red Hunter Boots#k - Bowman Lv. 30#b", "Blue Hunter Boots#k - Bowman Lv. 30#b", "Green Hunter Boots#k - Bowman Lv. 30#b", "Black Hunter Boots#k - Bowman Lv. 30#b", "Brown Hunter Boots#k - Bowman Lv. 30#b",
|
||||||
"Blue Silky Boots#k - Bowman Lv. 35#b", "Green Silky Boots#k - Bowman Lv. 35#b", "Red Silky Boots#k - Bowman Lv. 35#b",
|
"Blue Silky Boots#k - Bowman Lv. 35#b", "Green Silky Boots#k - Bowman Lv. 35#b", "Red Silky Boots#k - Bowman Lv. 35#b",
|
||||||
"Red Pierre Shoes#k - Bowman Lv. 40#b", "Yellow Pierre Shoes#k - Bowman Lv. 40#b", "Brown Pierre Shoes#k - Bowman Lv. 40#b", "Blue Pierre Shoes#k - Bowman Lv. 40#b",
|
"Red Pierre Shoes#k - Bowman Lv. 40#b", "Yellow Pierre Shoes#k - Bowman Lv. 40#b", "Brown Pierre Shoes#k - Bowman Lv. 40#b", "Blue Pierre Shoes#k - Bowman Lv. 40#b",
|
||||||
"Brown Steel-Tipped Boots#k - Bowman Lv. 50#b", "Green Steel-Tipped Boots#k - Bowman Lv. 50#b", "Blue Steel-Tipped Boots#k - Bowman Lv. 50#b", "Purple Steel-Tipped Boots#k - Bowman Lv. 50#b",
|
"Brown Steel-Tipped Boots#k - Bowman Lv. 50#b", "Green Steel-Tipped Boots#k - Bowman Lv. 50#b", "Blue Steel-Tipped Boots#k - Bowman Lv. 50#b", "Purple Steel-Tipped Boots#k - Bowman Lv. 50#b",
|
||||||
"Red Gore Boots#k - Bowman Lv. 60#b","Blue Gore Boots#k - Bowman Lv. 60#b","Green Gore Boots#k - Bowman Lv. 60#b");
|
"Red Gore Boots#k - Bowman Lv. 60#b", "Blue Gore Boots#k - Bowman Lv. 60#b", "Green Gore Boots#k - Bowman Lv. 60#b"];
|
||||||
} else if (selectedType == 2) { //magician shoe
|
} else if (selectedType == 2) { //magician shoe
|
||||||
selStr = "Magician shoes? Sure thing, which kind?#b";
|
selStr = "Magician shoes? Sure thing, which kind?#b";
|
||||||
shoes = new Array ("Blue Jewelery Shoes#k - Magician Lv. 20#b","Purple Jewelery Shoes#k - Magician Lv. 20#b","Red Jewelery Shoes#k - Magician Lv. 20#b",
|
shoes = ["Blue Jewelery Shoes#k - Magician Lv. 20#b", "Purple Jewelery Shoes#k - Magician Lv. 20#b", "Red Jewelery Shoes#k - Magician Lv. 20#b",
|
||||||
"Silver Windshoes#k - Magician Lv. 25#b", "Yellow Windshoes#k - Magician Lv. 25#b", "Black Windshoes#k - Magician Lv. 25#b",
|
"Silver Windshoes#k - Magician Lv. 25#b", "Yellow Windshoes#k - Magician Lv. 25#b", "Black Windshoes#k - Magician Lv. 25#b",
|
||||||
"Red Magicshoes#k - Magician Lv. 30#b", "Blue Magicshoes#k - Magician Lv. 30#b", "White Magicshoes#k - Magician Lv. 30#b", "Black Magicshoes#k - Magician Lv. 30#b",
|
"Red Magicshoes#k - Magician Lv. 30#b", "Blue Magicshoes#k - Magician Lv. 30#b", "White Magicshoes#k - Magician Lv. 30#b", "Black Magicshoes#k - Magician Lv. 30#b",
|
||||||
"Purple Salt Shoes#k - Magician Lv. 35#b", "Red Salt Shoes#k - Magician Lv. 35#b", "Black Salt Shoes#k - Magician Lv. 35#b",
|
"Purple Salt Shoes#k - Magician Lv. 35#b", "Red Salt Shoes#k - Magician Lv. 35#b", "Black Salt Shoes#k - Magician Lv. 35#b",
|
||||||
"Red Moon Shoes#k - Magician Lv. 40#b", "Blue Moon Shoes#k - Magician Lv. 40#b", "Gold Moon Shoes#k - Magician Lv. 40#b", "Dark Moon Shoes#k - Magician Lv. 40#b",
|
"Red Moon Shoes#k - Magician Lv. 40#b", "Blue Moon Shoes#k - Magician Lv. 40#b", "Gold Moon Shoes#k - Magician Lv. 40#b", "Dark Moon Shoes#k - Magician Lv. 40#b",
|
||||||
"Pink Goldwind Shoes#k - Magician Lv. 50#b", "Blue Goldwind Shoes#k - Magician Lv. 50#b", "Purple Goldwind Shoes#k - Magician Lv. 50#b", "Green Goldwind Shoes#k - Magician Lv. 50#b",
|
"Pink Goldwind Shoes#k - Magician Lv. 50#b", "Blue Goldwind Shoes#k - Magician Lv. 50#b", "Purple Goldwind Shoes#k - Magician Lv. 50#b", "Green Goldwind Shoes#k - Magician Lv. 50#b",
|
||||||
"Pink Goldrunners#k - Magician Lv. 60#b","Green Goldrunners#k - Magician Lv. 60#b","Orange Goldrunners#k - Magician Lv. 60#b","Blue Goldrunners#k - Magician Lv. 60#b");
|
"Pink Goldrunners#k - Magician Lv. 60#b", "Green Goldrunners#k - Magician Lv. 60#b", "Orange Goldrunners#k - Magician Lv. 60#b", "Blue Goldrunners#k - Magician Lv. 60#b"];
|
||||||
} else if (selectedType == 3) { //thief shoe
|
} else if (selectedType == 3) { //thief shoe
|
||||||
selStr = "Thief shoes? Sure thing, which kind?#b";
|
selStr = "Thief shoes? Sure thing, which kind?#b";
|
||||||
shoes = new Array ("Blue Lappy Shoes#k - Thief Lv. 25#b","Red Lappy Shoes#k - Thief Lv. 25#b","Green Lappy Shoes#k - Thief Lv. 25#b","Black Lappy Shoes#k - Thief Lv. 25#b",
|
shoes = ["Blue Lappy Shoes#k - Thief Lv. 25#b", "Red Lappy Shoes#k - Thief Lv. 25#b", "Green Lappy Shoes#k - Thief Lv. 25#b", "Black Lappy Shoes#k - Thief Lv. 25#b",
|
||||||
"Bronze Chain Boots#k - Thief Lv. 30#b", "Iron Chain Boots#k - Thief Lv. 30#b", "Silver Chain Boots#k - Thief Lv. 30#b", "Gold Chain Boots#k - Thief Lv. 30#b",
|
"Bronze Chain Boots#k - Thief Lv. 30#b", "Iron Chain Boots#k - Thief Lv. 30#b", "Silver Chain Boots#k - Thief Lv. 30#b", "Gold Chain Boots#k - Thief Lv. 30#b",
|
||||||
"Red White-Line Boots#k - Thief Lv. 35#b", "Green White-Line Boots#k - Thief Lv. 35#b", "Blue White-Line Boots#k - Thief Lv. 35#b",
|
"Red White-Line Boots#k - Thief Lv. 35#b", "Green White-Line Boots#k - Thief Lv. 35#b", "Blue White-Line Boots#k - Thief Lv. 35#b",
|
||||||
"Black Red-Lined Shoes#k - Thief Lv. 40#b", "Black Green-Lined Shoes#k - Thief Lv. 40#b", "Black Yellow-Lined Shoes#k - Thief Lv. 40#b", "Black Blue-Lined Shoes#k - Thief Lv. 40#b",
|
"Black Red-Lined Shoes#k - Thief Lv. 40#b", "Black Green-Lined Shoes#k - Thief Lv. 40#b", "Black Yellow-Lined Shoes#k - Thief Lv. 40#b", "Black Blue-Lined Shoes#k - Thief Lv. 40#b",
|
||||||
"Blue Goni Shoes#k - Thief Lv. 50#b", "Red Goni Shoes#k - Thief Lv. 50#b", "Green Goni Shoes#k - Thief Lv. 50#b", "Purple Goni Shoes#k - Thief Lv. 50#b",
|
"Blue Goni Shoes#k - Thief Lv. 50#b", "Red Goni Shoes#k - Thief Lv. 50#b", "Green Goni Shoes#k - Thief Lv. 50#b", "Purple Goni Shoes#k - Thief Lv. 50#b",
|
||||||
"Blood Moss Boots#k - Thief Lv. 60#b","Gold Moss Boots#k - Thief Lv. 60#b","Dark Moss Boots#k - Thief Lv. 60#b");
|
"Blood Moss Boots#k - Thief Lv. 60#b", "Gold Moss Boots#k - Thief Lv. 60#b", "Dark Moss Boots#k - Thief Lv. 60#b"];
|
||||||
}for (var i = 0; i < shoes.length; i++)
|
}
|
||||||
|
for (var i = 0; i < shoes.length; i++) {
|
||||||
selStr += "\r\n#L" + i + "# " + shoes[i] + "#l";
|
selStr += "\r\n#L" + i + "# " + shoes[i] + "#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
} else if (status == 2 && mode == 1) {
|
} else if (status == 2 && mode == 1) {
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
if (selectedType == 0) { //warrior shoe
|
if (selectedType == 0) { //warrior shoe
|
||||||
var itemSet = new Array(1072051,1072053,1072052,1072003,1072039,1072040,1072041,1072002,1072112,1072113,1072000,1072126,1072127,1072132,1072133,1072134,1072135,1072147,1072148,1072149);
|
var itemSet = [1072051, 1072053, 1072052, 1072003, 1072039, 1072040, 1072041, 1072002, 1072112, 1072113, 1072000, 1072126, 1072127, 1072132, 1072133, 1072134, 1072135, 1072147, 1072148, 1072149];
|
||||||
var matSet = new Array(new Array(4011004,4011001,4000021,4003000),new Array(4011006,4011001,4000021,4003000),new Array(4021008,4011001,4000021,4003000),new Array(4021003,4011001,4000021,4003000),new Array(4011002,4011001,4000021,4003000),
|
var matSet = [[4011004, 4011001, 4000021, 4003000], [4011006, 4011001, 4000021, 4003000], [4021008, 4011001, 4000021, 4003000], [4021003, 4011001, 4000021, 4003000], [4011002, 4011001, 4000021, 4003000],
|
||||||
new Array(4011004,4011001,4000021,4003000),new Array(4021000,4011001,4000021,4003000),new Array(4011001,4021004,4000021,4000030,4003000),new Array(4011002,4021004,4000021,4000030,4003000),new Array(4021008,4021004,4000021,4000030,4003000),
|
[4011004, 4011001, 4000021, 4003000], [4021000, 4011001, 4000021, 4003000], [4011001, 4021004, 4000021, 4000030, 4003000], [4011002, 4021004, 4000021, 4000030, 4003000], [4021008, 4021004, 4000021, 4000030, 4003000],
|
||||||
new Array(4011003,4000021,4000030,4003000,4000033),new Array(4011005,4021007,4000030,4003000,4000042),new Array(4011002,4021007,4000030,4003000,4000041),new Array(4021008,4011001,4021003,4000030,4003000),
|
[4011003, 4000021, 4000030, 4003000, 4000033], [4011005, 4021007, 4000030, 4003000, 4000042], [4011002, 4021007, 4000030, 4003000, 4000041], [4021008, 4011001, 4021003, 4000030, 4003000],
|
||||||
new Array(4021008,4011001,4011002,4000030,4003000),new Array(4021008,4011001,4011005,4000030,4003000),new Array(4021008,4011001,4011006,4000030,4003000),new Array(4021008,4011007,4021005,4000030,4003000),
|
[4021008, 4011001, 4011002, 4000030, 4003000], [4021008, 4011001, 4011005, 4000030, 4003000], [4021008, 4011001, 4011006, 4000030, 4003000], [4021008, 4011007, 4021005, 4000030, 4003000],
|
||||||
new Array(4021008,4011007,4011005,4000030,4003000),new Array(4021008,4011007,4021000,4000030,4003000));
|
[4021008, 4011007, 4011005, 4000030, 4003000], [4021008, 4011007, 4021000, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(new Array(2,1,15,10),new Array(2,1,15,10),new Array(1,2,20,10),new Array(4,2,45,15),new Array(4,2,45,15),new Array(4,2,45,15),new Array(4,2,45,15),new Array(3,1,30,20,25),new Array(3,1,30,20,25),new Array(2,1,30,20,25),
|
var matQtySet = [[2, 1, 15, 10], [2, 1, 15, 10], [1, 2, 20, 10], [4, 2, 45, 15], [4, 2, 45, 15], [4, 2, 45, 15], [4, 2, 45, 15], [3, 1, 30, 20, 25], [3, 1, 30, 20, 25], [2, 1, 30, 20, 25],
|
||||||
new Array(4,100,40,30,100),new Array(4,1,40,30,250),new Array(4,1,40,30,120),new Array(1,3,6,65,45),new Array(1,3,6,65,45),new Array(1,3,6,65,45),new Array(1,3,6,65,45),new Array(1,1,8,80,55),new Array(1,1,8,80,55),new Array(1,1,8,80,55));
|
[4, 100, 40, 30, 100], [4, 1, 40, 30, 250], [4, 1, 40, 30, 120], [1, 3, 6, 65, 45], [1, 3, 6, 65, 45], [1, 3, 6, 65, 45], [1, 3, 6, 65, 45], [1, 1, 8, 80, 55], [1, 1, 8, 80, 55], [1, 1, 8, 80, 55]];
|
||||||
var costSet = new Array(10000,10000,12000,20000,20000,20000,20000,22000,22000,25000,38000,38000,38000,50000,50000,50000,50000,60000,60000,60000);
|
var costSet = [10000, 10000, 12000, 20000, 20000, 20000, 20000, 22000, 22000, 25000, 38000, 38000, 38000, 50000, 50000, 50000, 50000, 60000, 60000, 60000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
} else if (selectedType == 1) { //bowman shoe
|
} else if (selectedType == 1) { //bowman shoe
|
||||||
var itemSet = new Array(1072027,1072034,1072069,1072079,1072080,1072081,1072082,1072083,1072101,1072102,1072103,1072118,1072119,1072120,1072121,1072122,1072123,1072124,1072125,1072144,1072145,1072146);
|
var itemSet = [1072027, 1072034, 1072069, 1072079, 1072080, 1072081, 1072082, 1072083, 1072101, 1072102, 1072103, 1072118, 1072119, 1072120, 1072121, 1072122, 1072123, 1072124, 1072125, 1072144, 1072145, 1072146];
|
||||||
var matSet = new Array(new Array(4000021,4011000,4003000),new Array(4000021,4021003,4003000),new Array(4000021,4021000,4003000),new Array(4000021,4021000,4003000),new Array(4000021,4021005,4003000),new Array(4000021,4021003,4003000),
|
var matSet = [[4000021, 4011000, 4003000], [4000021, 4021003, 4003000], [4000021, 4021000, 4003000], [4000021, 4021000, 4003000], [4000021, 4021005, 4003000], [4000021, 4021003, 4003000],
|
||||||
new Array(4000021,4021004,4003000),new Array(4000021,4021006,4003000),new Array(4021002,4021006,4000030,4000021,4003000),new Array(4021003,4021006,4000030,4000021,4003000),new Array(4021000,4021006,4000030,4000021,4003000),
|
[4000021, 4021004, 4003000], [4000021, 4021006, 4003000], [4021002, 4021006, 4000030, 4000021, 4003000], [4021003, 4021006, 4000030, 4000021, 4003000], [4021000, 4021006, 4000030, 4000021, 4003000],
|
||||||
new Array(4021000,4003000,4000030,4000024),new Array(4021006,4003000,4000030,4000027),new Array(4011003,4003000,4000030,4000044),new Array(4021002,4003000,4000030,4000009),new Array(4011001,4021006,4021008,4000030,4003000,4000033),
|
[4021000, 4003000, 4000030, 4000024], [4021006, 4003000, 4000030, 4000027], [4011003, 4003000, 4000030, 4000044], [4021002, 4003000, 4000030, 4000009], [4011001, 4021006, 4021008, 4000030, 4003000, 4000033],
|
||||||
new Array(4011001,4021006,4021008,4000030,4003000,4000032),new Array(4011001,4021006,4021008,4000030,4003000,4000041),new Array(4011001,4021006,4021008,4000030,4003000,4000042),new Array(4011006,4021000,4021007,4000030,4003000),
|
[4011001, 4021006, 4021008, 4000030, 4003000, 4000032], [4011001, 4021006, 4021008, 4000030, 4003000, 4000041], [4011001, 4021006, 4021008, 4000030, 4003000, 4000042], [4011006, 4021000, 4021007, 4000030, 4003000],
|
||||||
new Array(4011006,4021005,4021007,4000030,4003000),new Array(4011006,4021003,4021007,4000030,4003000));
|
[4011006, 4021005, 4021007, 4000030, 4003000], [4011006, 4021003, 4021007, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(new Array(35,3,10),new Array(35,1,10),new Array(35,1,10),new Array(50,2,15),new Array(50,2,15),new Array(50,2,15),new Array(50,2,15),new Array(50,2,15),
|
var matQtySet = [[35, 3, 10], [35, 1, 10], [35, 1, 10], [50, 2, 15], [50, 2, 15], [50, 2, 15], [50, 2, 15], [50, 2, 15],
|
||||||
new Array(3,1,15,30,20),new Array(3,1,15,30,20),new Array(3,1,15,30,20),new Array(4,30,45,20),new Array(4,30,45,20),new Array(5,30,45,40),new Array(5,30,45,120),
|
[3, 1, 15, 30, 20], [3, 1, 15, 30, 20], [3, 1, 15, 30, 20], [4, 30, 45, 20], [4, 30, 45, 20], [5, 30, 45, 40], [5, 30, 45, 120],
|
||||||
new Array(3,3,1,60,35,80),new Array(3,3,1,60,35,150),new Array(3,3,1,60,35,100),new Array(3,3,1,60,35,250),new Array(5,8,1,75,50),new Array(5,8,1,75,50),new Array(5,8,1,75,50));
|
[3, 3, 1, 60, 35, 80], [3, 3, 1, 60, 35, 150], [3, 3, 1, 60, 35, 100], [3, 3, 1, 60, 35, 250], [5, 8, 1, 75, 50], [5, 8, 1, 75, 50], [5, 8, 1, 75, 50]];
|
||||||
var costSet = new Array(9000,9000,9000,19000,19000,19000,19000,19000,19000,20000,20000,20000,32000,32000,40000,40000,50000,50000,50000,50000,60000,60000,60000);
|
var costSet = [9000, 9000, 9000, 19000, 19000, 19000, 19000, 19000, 19000, 20000, 20000, 20000, 32000, 32000, 40000, 40000, 50000, 50000, 50000, 50000, 60000, 60000, 60000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
} else if (selectedType == 2) { //magician shoe
|
} else if (selectedType == 2) { //magician shoe
|
||||||
var itemSet = new Array(1072019,1072020,1072021,1072072,1072073,1072074,1072075,1072076,1072077,1072078,1072089,1072090,1072091,1072114,1072115,1072116,1072117,1072140,1072141,1072142,1072143,1072136,1072137,1072138,1072139);
|
var itemSet = [1072019, 1072020, 1072021, 1072072, 1072073, 1072074, 1072075, 1072076, 1072077, 1072078, 1072089, 1072090, 1072091, 1072114, 1072115, 1072116, 1072117, 1072140, 1072141, 1072142, 1072143, 1072136, 1072137, 1072138, 1072139];
|
||||||
var matSet = new Array(new Array(4021005,4000021,4003000),new Array(4021001,4000021,4003000),new Array(4021000,4000021,4003000),new Array(4011004,4000021,4003000),new Array(4021006,4000021,4003000),new Array(4021004,4000021,4003000),
|
var matSet = [[4021005, 4000021, 4003000], [4021001, 4000021, 4003000], [4021000, 4000021, 4003000], [4011004, 4000021, 4003000], [4021006, 4000021, 4003000], [4021004, 4000021, 4003000],
|
||||||
new Array(4021000,4000021,4003000),new Array(4021002,4000021,4003000),new Array(4011004,4000021,4003000),new Array(4021008,4000021,4003000),new Array(4021001,4021006,4000021,4000030,4003000),new Array(4021000,4021006,4000021,4000030,4003000),
|
[4021000, 4000021, 4003000], [4021002, 4000021, 4003000], [4011004, 4000021, 4003000], [4021008, 4000021, 4003000], [4021001, 4021006, 4000021, 4000030, 4003000], [4021000, 4021006, 4000021, 4000030, 4003000],
|
||||||
new Array(4021008,4021006,4000021,4000030,4003000),new Array(4021000,4000030,4000043,4003000),new Array(4021005,4000030,4000037,4003000),new Array(4011006,4021007,4000030,4000027,4003000),new Array(4021008,4021007,4000030,4000014,4003000),
|
[4021008, 4021006, 4000021, 4000030, 4003000], [4021000, 4000030, 4000043, 4003000], [4021005, 4000030, 4000037, 4003000], [4011006, 4021007, 4000030, 4000027, 4003000], [4021008, 4021007, 4000030, 4000014, 4003000],
|
||||||
new Array(4021009,4011006,4021000,4000030,4003000),new Array(4021009,4011006,4021005,4000030,4003000),new Array(4021009,4011006,4021001,4000030,4003000),new Array(4021009,4011006,4021003,4000030,4003000),
|
[4021009, 4011006, 4021000, 4000030, 4003000], [4021009, 4011006, 4021005, 4000030, 4003000], [4021009, 4011006, 4021001, 4000030, 4003000], [4021009, 4011006, 4021003, 4000030, 4003000],
|
||||||
new Array(4021009,4011006,4011005,4000030,4003000),new Array(4021009,4011006,4021003,4000030,4003000),new Array(4021009,4011006,4011003,4000030,4003000),new Array(4021009,4011006,4021002,4000030,4003000));
|
[4021009, 4011006, 4011005, 4000030, 4003000], [4021009, 4011006, 4021003, 4000030, 4003000], [4021009, 4011006, 4011003, 4000030, 4003000], [4021009, 4011006, 4021002, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(new Array(1,30,5),new Array(1,30,5),new Array(1,30,5),new Array(1,35,10),new Array(1,35,10),new Array(1,35,10),new Array(2,50,15),new Array(2,50,15),new Array(2,50,15),
|
var matQtySet = [[1, 30, 5], [1, 30, 5], [1, 30, 5], [1, 35, 10], [1, 35, 10], [1, 35, 10], [2, 50, 15], [2, 50, 15], [2, 50, 15],
|
||||||
new Array(1,50,15),new Array(3,1,30,15,20),new Array(3,1,30,15,20),new Array(2,1,40,25,20),new Array(4,40,35,25),new Array(4,40,70,25),new Array(2,1,40,20,25),new Array(2,1,40,30,30),
|
[1, 50, 15], [3, 1, 30, 15, 20], [3, 1, 30, 15, 20], [2, 1, 40, 25, 20], [4, 40, 35, 25], [4, 40, 70, 25], [2, 1, 40, 20, 25], [2, 1, 40, 30, 30],
|
||||||
new Array(1,3,3,60,40),new Array(1,3,3,60,40),new Array(1,3,3,60,40),new Array(1,3,3,60,40),new Array(1,4,5,70,50),new Array(1,4,5,70,50),new Array(1,4,5,70,50),new Array(1,4,5,70,50));
|
[1, 3, 3, 60, 40], [1, 3, 3, 60, 40], [1, 3, 3, 60, 40], [1, 3, 3, 60, 40], [1, 4, 5, 70, 50], [1, 4, 5, 70, 50], [1, 4, 5, 70, 50], [1, 4, 5, 70, 50]];
|
||||||
var costSet = new Array(3000,3000,3000,8000,8000,8000,18000,18000,18000,18000,20000,20000,22000,30000,30000,35000,40000,50000,50000,50000,50000,60000,60000,60000,60000);
|
var costSet = [3000, 3000, 3000, 8000, 8000, 8000, 18000, 18000, 18000, 18000, 20000, 20000, 22000, 30000, 30000, 35000, 40000, 50000, 50000, 50000, 50000, 60000, 60000, 60000, 60000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
} else if (selectedType == 3) { //thief shoe
|
} else if (selectedType == 3) { //thief shoe
|
||||||
var itemSet = new Array(1072084,1072085,1072086,1072087,1072032,1072033,1072035,1072036,1072104,1072105,1072106,1072107,1072108,1072109,1072110,1072128,1072130,1072129,1072131,1072150,1072151,1072152);
|
var itemSet = [1072084, 1072085, 1072086, 1072087, 1072032, 1072033, 1072035, 1072036, 1072104, 1072105, 1072106, 1072107, 1072108, 1072109, 1072110, 1072128, 1072130, 1072129, 1072131, 1072150, 1072151, 1072152];
|
||||||
var matSet = new Array(new Array(4021005,4000021,4003000),new Array(4021000,4000021,4003000),new Array(4021003,4000021,4003000),new Array(4021004,4000021,4003000),new Array(4011000,4000021,4003000),new Array(4011001,4000021,4003000),new Array(4011004,4000021,4003000),new Array(4011006,4000021,4003000),new Array(4021000,4021004,4000021,4000030,4003000),new Array(4021003,4021004,4000021,4000030,4003000),new Array(4021002,4021004,4000021,4000030,4003000),new Array(4021000,4000030,4000033,4003000),new Array(4021003,4000030,4000032,4003000),new Array(4021006,4000030,4000040,4003000),new Array(4021005,4000030,4000037,4003000),new Array(4011007,4021005,4000030,4000037,4003000),new Array(4011007,4021000,4000030,4000043,4003000),new Array(4011007,4021003,4000030,4000045,4003000),new Array(4011007,4021001,4000030,4000036,4003000),new Array(4021008,4011007,4021005,4000030,4003000),new Array(4021008,4011007,4011005,4000030,4003000),new Array(4021008,4011007,4021000,4000030,4003000));
|
var matSet = [[4021005, 4000021, 4003000], [4021000, 4000021, 4003000], [4021003, 4000021, 4003000], [4021004, 4000021, 4003000], [4011000, 4000021, 4003000], [4011001, 4000021, 4003000], [4011004, 4000021, 4003000], [4011006, 4000021, 4003000], [4021000, 4021004, 4000021, 4000030, 4003000], [4021003, 4021004, 4000021, 4000030, 4003000], [4021002, 4021004, 4000021, 4000030, 4003000], [4021000, 4000030, 4000033, 4003000], [4021003, 4000030, 4000032, 4003000], [4021006, 4000030, 4000040, 4003000], [4021005, 4000030, 4000037, 4003000], [4011007, 4021005, 4000030, 4000037, 4003000], [4011007, 4021000, 4000030, 4000043, 4003000], [4011007, 4021003, 4000030, 4000045, 4003000], [4011007, 4021001, 4000030, 4000036, 4003000], [4021008, 4011007, 4021005, 4000030, 4003000], [4021008, 4011007, 4011005, 4000030, 4003000], [4021008, 4011007, 4021000, 4000030, 4003000]];
|
||||||
var matQtySet = new Array(new Array(1,35,10),new Array(1,35,10),new Array(1,35,10),new Array(1,35,10),new Array(3,50,15),new Array(3,50,15),new Array(2,50,15),new Array(2,50,15),new Array(3,1,30,15,20),new Array(3,1,30,15,20),new Array(3,1,30,15,20),
|
var matQtySet = [[1, 35, 10], [1, 35, 10], [1, 35, 10], [1, 35, 10], [3, 50, 15], [3, 50, 15], [2, 50, 15], [2, 50, 15], [3, 1, 30, 15, 20], [3, 1, 30, 15, 20], [3, 1, 30, 15, 20],
|
||||||
new Array(5,45,50,30),new Array(4,45,30,30),new Array(4,45,3,30),new Array(4,45,70,30),new Array(2,3,50,200,35),new Array(2,3,50,150,35),new Array(2,3,50,80,35),new Array(2,3,50,80,35),new Array(1,1,8,75,50),new Array(1,1,5,75,50),new Array(1,1,1,75,50));
|
[5, 45, 50, 30], [4, 45, 30, 30], [4, 45, 3, 30], [4, 45, 70, 30], [2, 3, 50, 200, 35], [2, 3, 50, 150, 35], [2, 3, 50, 80, 35], [2, 3, 50, 80, 35], [1, 1, 8, 75, 50], [1, 1, 5, 75, 50], [1, 1, 1, 75, 50]];
|
||||||
var costSet = new Array(9000,9000,9000,9000,19000,19000,19000,21000,20000,20000,20000,40000,32000,35000,35000,50000,50000,50000,50000,60000,60000,60000);
|
var costSet = [9000, 9000, 9000, 9000, 19000, 19000, 19000, 21000, 20000, 20000, 20000, 40000, 32000, 35000, 35000, 50000, 50000, 50000, 50000, 60000, 60000, 60000];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
}var prompt = "You want me to make a #t" + item + "#? In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
}
|
||||||
|
var prompt = "You want me to make a #t" + item + "#? In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; i < mats.length; i++)
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] + " #t" + mats[i] + "#";
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
prompt += "\r\n#i" + mats + "# " + matQty + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + matQty + " #t" + mats + "#";
|
||||||
if (cost > 0)
|
|
||||||
prompt += "\r\n#i4031138# " + cost + " meso";
|
|
||||||
cm.sendYesNo(prompt);
|
|
||||||
}
|
}
|
||||||
else if (status == 3 && mode == 1) {
|
if (cost > 0) {
|
||||||
|
prompt += "\r\n#i4031138# " + cost + " meso";
|
||||||
|
}
|
||||||
|
cm.sendYesNo(prompt);
|
||||||
|
} else if (status == 3 && mode == 1) {
|
||||||
var complete = true;
|
var complete = true;
|
||||||
|
|
||||||
if (!cm.canHold(item, 1)) {
|
if (!cm.canHold(item, 1)) {
|
||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost) {
|
||||||
else if (cm.getMeso() < cost) {
|
|
||||||
cm.sendOk("Sorry, I can only accept meso.");
|
cm.sendOk("Sorry, I can only accept meso.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
else {
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; complete && i < mats.length; i++)
|
for (var i = 0; complete && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i]))
|
if (!cm.haveItem(mats[i], matQty[i])) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty)) {
|
||||||
complete = false;
|
complete = false;
|
||||||
}
|
}
|
||||||
if (!complete)
|
}
|
||||||
|
if (!complete) {
|
||||||
cm.sendOk("Sorry, but I have to have those items to get this exactly right. Perhaps next time.");
|
cm.sendOk("Sorry, but I have to have those items to get this exactly right. Perhaps next time.");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++)
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i]);
|
cm.gainItem(mats[i], -matQty[i]);
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
cm.gainItem(mats, -matQty);
|
cm.gainItem(mats, -matQty);
|
||||||
|
}
|
||||||
cm.gainMeso(-cost);
|
cm.gainMeso(-cost);
|
||||||
cm.gainItem(item, 1);
|
cm.gainItem(item, 1);
|
||||||
cm.sendOk("There, the shoes are ready. Be careful not to trip!");
|
cm.sendOk("There, the shoes are ready. Be careful not to trip!");
|
||||||
|
|||||||
@@ -27,36 +27,39 @@ var selectedMap = -1;
|
|||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
cm.sendNext("You feel a mysterious force surrounding this statue.");
|
cm.sendNext("You feel a mysterious force surrounding this statue.");
|
||||||
if (cm.isQuestStarted(2054) || cm.isQuestCompleted(2054))
|
if (cm.isQuestStarted(2054) || cm.isQuestCompleted(2054)) {
|
||||||
zones = 3;
|
zones = 3;
|
||||||
else if (cm.isQuestStarted(2053) || cm.isQuestCompleted(2053))
|
} else if (cm.isQuestStarted(2053) || cm.isQuestCompleted(2053)) {
|
||||||
zones = 2;
|
zones = 2;
|
||||||
else if (cm.isQuestStarted(2052) || cm.isQuestCompleted(2052))
|
} else if (cm.isQuestStarted(2052) || cm.isQuestCompleted(2052)) {
|
||||||
zones = 1;
|
zones = 1;
|
||||||
else
|
} else {
|
||||||
zones = 0;
|
zones = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1)
|
if (mode == -1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (status >= 2 && mode == 0) {
|
if (status >= 2 && mode == 0) {
|
||||||
cm.sendOk("Alright, see you next time.");
|
cm.sendOk("Alright, see you next time.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
if (zones == 0)
|
if (zones == 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
var selStr = "Its power allows you to will yourself deep inside the forest.#b";
|
var selStr = "Its power allows you to will yourself deep inside the forest.#b";
|
||||||
for (var i = 0; i < zones; i++)
|
for (var i = 0; i < zones; i++) {
|
||||||
selStr += "\r\n#L" + i + "#" + names[i] + "#l";
|
selStr += "\r\n#L" + i + "#" + names[i] + "#l";
|
||||||
|
}
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if(mode == 1)
|
if (mode == 1) {
|
||||||
cm.warp(105040300, 0);
|
cm.warp(105040300, 0);
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
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/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@Author Ronan
|
@Author Ronan
|
||||||
|
|
||||||
@@ -27,26 +28,33 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function jobString(niche) {
|
function jobString(niche) {
|
||||||
if(niche == 1) return "warrior";
|
if (niche == 1) {
|
||||||
else if(niche == 2) return "magician";
|
return "warrior";
|
||||||
else if(niche == 3) return "bowman";
|
} else if (niche == 2) {
|
||||||
else if(niche == 4) return "thief";
|
return "magician";
|
||||||
else if(niche == 5) return "pirate";
|
} else if (niche == 3) {
|
||||||
|
return "bowman";
|
||||||
|
} else if (niche == 4) {
|
||||||
|
return "thief";
|
||||||
|
} else if (niche == 5) {
|
||||||
|
return "pirate";
|
||||||
|
}
|
||||||
|
|
||||||
return "beginner";
|
return "beginner";
|
||||||
}
|
}
|
||||||
|
|
||||||
function canEnterDimensionMap(mapid, jobid) {
|
function canEnterDimensionMap(mapid, jobid) {
|
||||||
if (mapid == 105070001 && (jobid >= 110 && jobid <= 130))
|
if (mapid == 105070001 && (jobid >= 110 && jobid <= 130)) {
|
||||||
return true;
|
return true;
|
||||||
else if (mapid == 105040305 && (jobid >= 310 && jobid <= 320))
|
} else if (mapid == 105040305 && (jobid >= 310 && jobid <= 320)) {
|
||||||
return true;
|
return true;
|
||||||
else if (mapid == 100040106 && (jobid >= 210 && jobid <= 230))
|
} else if (mapid == 100040106 && (jobid >= 210 && jobid <= 230)) {
|
||||||
return true;
|
return true;
|
||||||
else if (mapid == 107000402 && (jobid >= 410 && jobid <= 420))
|
} else if (mapid == 107000402 && (jobid >= 410 && jobid <= 420)) {
|
||||||
return true;
|
return true;
|
||||||
else if (mapid == 105070200 && (jobid >= 510 && jobid <= 520))
|
} else if (mapid == 105070200 && (jobid >= 510 && jobid <= 520)) {
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -56,9 +64,9 @@ function start() {
|
|||||||
var js = jobString(cm.getPlayer().getJob().getJobNiche());
|
var js = jobString(cm.getPlayer().getJob().getJobNiche());
|
||||||
|
|
||||||
var em = cm.getEventManager("3rdJob_" + js);
|
var em = cm.getEventManager("3rdJob_" + js);
|
||||||
if (em == null)
|
if (em == null) {
|
||||||
cm.sendOk("Sorry, but 3rd job advancement (" + js + ") is closed.");
|
cm.sendOk("Sorry, but 3rd job advancement (" + js + ") is closed.");
|
||||||
else {
|
} else {
|
||||||
if (!em.startInstance(cm.getPlayer())) {
|
if (!em.startInstance(cm.getPlayer())) {
|
||||||
cm.sendOk("Someone else is already challenging the clone. Please wait until the area is cleared.");
|
cm.sendOk("Someone else is already challenging the clone. Please wait until the area is cleared.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,27 +8,38 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1)
|
if (mode == -1) {
|
||||||
cm.dispose();//ExitChat
|
cm.dispose();
|
||||||
else if (mode == 0)
|
}//ExitChat
|
||||||
cm.dispose();//No
|
else if (mode == 0) {
|
||||||
|
cm.dispose();
|
||||||
|
}//No
|
||||||
else { //Regular Talk
|
else { //Regular Talk
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("Would you like to leave?");
|
cm.sendYesNo("Would you like to leave?");
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
var mapid = cm.getMapId(), exitid = mapid;
|
var mapid = cm.getMapId(), exitid = mapid;
|
||||||
if(mapid == 108010101) exitid = 105040305;
|
if (mapid == 108010101) {
|
||||||
else if(mapid == 108010201) exitid = 100040106;
|
exitid = 105040305;
|
||||||
else if(mapid == 108010301) exitid = 105070001;
|
} else if (mapid == 108010201) {
|
||||||
else if(mapid == 108010401) exitid = 107000402;
|
exitid = 100040106;
|
||||||
else if(mapid == 108010501) exitid = 105070200;
|
} else if (mapid == 108010301) {
|
||||||
|
exitid = 105070001;
|
||||||
|
} else if (mapid == 108010401) {
|
||||||
|
exitid = 107000402;
|
||||||
|
} else if (mapid == 108010501) {
|
||||||
|
exitid = 105070200;
|
||||||
|
}
|
||||||
|
|
||||||
if (mapid != exitid) cm.getPlayer().changeMap(exitid);
|
if (mapid != exitid) {
|
||||||
|
cm.getPlayer().changeMap(exitid);
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,11 +111,11 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (selection == 2) {
|
} else if (selection == 2) {
|
||||||
cm.sendOk("Sure, not everyone's up to challenging " + expedBoss + ".");
|
cm.sendOk("Sure, not everyone's up to challenging " + expedBoss + ".");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
cm.sendSimple("Hi there. I am #b#nMu Young#n#k, the temple Keeper. This temple is currently under siege by the Balrog troops. We currently do not know who gave the orders. " +
|
cm.sendSimple("Hi there. I am #b#nMu Young#n#k, the temple Keeper. This temple is currently under siege by the Balrog troops. We currently do not know who gave the orders. " +
|
||||||
"For a few weeks now, the #e#b Order of the Altair#n#k has been sending mercenaries, but they were eliminated every time." +
|
"For a few weeks now, the #e#b Order of the Altair#n#k has been sending mercenaries, but they were eliminated every time." +
|
||||||
@@ -161,7 +161,7 @@ function action(mode, type, selection) {
|
|||||||
cm.endExpedition(expedition);
|
cm.endExpedition(expedition);
|
||||||
cm.sendOk("The expedition has now ended. Sometimes the best strategy is to run away.");
|
cm.sendOk("The expedition has now ended. Sometimes the best strategy is to run away.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else if (status == 4) {
|
} else if (status == 4) {
|
||||||
if (em == null) {
|
if (em == null) {
|
||||||
@@ -179,7 +179,7 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (status == 6) {
|
} else if (status == 6) {
|
||||||
if (selection > 0) {
|
if (selection > 0) {
|
||||||
var banned = expedMembers.get(selection - 1);
|
var banned = expedMembers.get(selection - 1);
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getEventInstance().isEventCleared()) {
|
if (cm.getEventInstance().isEventCleared()) {
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1 || (mode == 0 && status == 1))
|
if (mode == -1 || (mode == 0 && status == 1)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
else {
|
} else {
|
||||||
if (mode == 0 && status == 2) {
|
if (mode == 0 && status == 2) {
|
||||||
cm.sendNext("We offer other kinds of services, too, so please think carefully and then make your decision.");
|
cm.sendNext("We offer other kinds of services, too, so please think carefully and then make your decision.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
@@ -55,9 +55,9 @@ function action(mode, type, selection) {
|
|||||||
cm.sendSimple("We offer two kinds of rooms for our service. Please choose the one of your liking.\r\n#b#L0#Regular sauna (" + regcost + " mesos per use)#l\r\n#L1#VIP sauna (" + vipcost + " mesos per use)#l");
|
cm.sendSimple("We offer two kinds of rooms for our service. Please choose the one of your liking.\r\n#b#L0#Regular sauna (" + regcost + " mesos per use)#l\r\n#L1#VIP sauna (" + vipcost + " mesos per use)#l");
|
||||||
iwantreg = 1;
|
iwantreg = 1;
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (selection == 0)
|
if (selection == 0) {
|
||||||
cm.sendYesNo("You have chosen the regular sauna. Your HP and MP will recover fast and you can even purchase some items there. Are you sure you want to go in?");
|
cm.sendYesNo("You have chosen the regular sauna. Your HP and MP will recover fast and you can even purchase some items there. Are you sure you want to go in?");
|
||||||
else if (selection == 1) {
|
} else if (selection == 1) {
|
||||||
cm.sendYesNo("You've chosen the VIP sauna. Your HP and MP will recover even faster than that of the regular sauna and you can even find a special item in there. Are you sure you want to go in?");
|
cm.sendYesNo("You've chosen the VIP sauna. Your HP and MP will recover even faster than that of the regular sauna and you can even find a special item in there. Are you sure you want to go in?");
|
||||||
iwantreg = 0;
|
iwantreg = 0;
|
||||||
}
|
}
|
||||||
@@ -66,15 +66,17 @@ function action(mode, type, selection) {
|
|||||||
if (cm.getMeso() >= regcost) {
|
if (cm.getMeso() >= regcost) {
|
||||||
cm.warp(105040401);
|
cm.warp(105040401);
|
||||||
cm.gainMeso(-regcost);
|
cm.gainMeso(-regcost);
|
||||||
} else
|
} else {
|
||||||
cm.sendNext("I'm sorry. It looks like you don't have enough mesos. It will cost you at least " + regcost + "mesos to stay at our hotel.");
|
cm.sendNext("I'm sorry. It looks like you don't have enough mesos. It will cost you at least " + regcost + "mesos to stay at our hotel.");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (cm.getMeso() >= vipcost) {
|
if (cm.getMeso() >= vipcost) {
|
||||||
cm.warp(105040402);
|
cm.warp(105040402);
|
||||||
cm.gainMeso(-vipcost);
|
cm.gainMeso(-vipcost);
|
||||||
} else
|
} else {
|
||||||
cm.sendNext("I'm sorry. It looks like you don't have enough mesos. It will cost you at least " + vipcost + "mesos to stay at our hotel.");
|
cm.sendNext("I'm sorry. It looks like you don't have enough mesos. It will cost you at least " + vipcost + "mesos to stay at our hotel.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,11 +43,13 @@ function start() {
|
|||||||
var progress = cm.getQuestProgress(2236);
|
var progress = cm.getQuestProgress(2236);
|
||||||
var map = cm.getMapId();
|
var map = cm.getMapId();
|
||||||
|
|
||||||
if(map == 105050200) activateShamanRock(0,progress);
|
if (map == 105050200) {
|
||||||
else if(map == 105060000) activateShamanRock(1,progress);
|
activateShamanRock(0, progress);
|
||||||
else if(map == 105070000) activateShamanRock(2,progress);
|
} else if (map == 105060000) {
|
||||||
|
activateShamanRock(1, progress);
|
||||||
else if(map == 105090000) { // workaround... TWO SAME NPC ID ON SAME MAP
|
} else if (map == 105070000) {
|
||||||
|
activateShamanRock(2, progress);
|
||||||
|
} else if (map == 105090000) { // workaround... TWO SAME NPC ID ON SAME MAP
|
||||||
var npcOid = cm.getQuestProgressInt(100300, 1);
|
var npcOid = cm.getQuestProgressInt(100300, 1);
|
||||||
if (npcOid == 0) {
|
if (npcOid == 0) {
|
||||||
activateShamanRock(3, progress);
|
activateShamanRock(3, progress);
|
||||||
@@ -55,9 +57,9 @@ function start() {
|
|||||||
} else if (cm.getNpcObjectId() != npcOid) {
|
} else if (cm.getNpcObjectId() != npcOid) {
|
||||||
activateShamanRock(4, progress);
|
activateShamanRock(4, progress);
|
||||||
}
|
}
|
||||||
|
} else if (map == 105090100) {
|
||||||
|
activateShamanRock(5, progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(map == 105090100) activateShamanRock(5,progress);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -43,11 +43,13 @@ function start() {
|
|||||||
var progress = cm.getQuestProgress(2236);
|
var progress = cm.getQuestProgress(2236);
|
||||||
var map = cm.getMapId();
|
var map = cm.getMapId();
|
||||||
|
|
||||||
if(map == 105050200) activateShamanRock(0,progress);
|
if (map == 105050200) {
|
||||||
else if(map == 105060000) activateShamanRock(1,progress);
|
activateShamanRock(0, progress);
|
||||||
else if(map == 105070000) activateShamanRock(2,progress);
|
} else if (map == 105060000) {
|
||||||
|
activateShamanRock(1, progress);
|
||||||
else if(map == 105090000) { // workaround... TWO SAME NPC ID ON SAME MAP
|
} else if (map == 105070000) {
|
||||||
|
activateShamanRock(2, progress);
|
||||||
|
} else if (map == 105090000) { // workaround... TWO SAME NPC ID ON SAME MAP
|
||||||
var npcOid = cm.getQuestProgressInt(100300, 1);
|
var npcOid = cm.getQuestProgressInt(100300, 1);
|
||||||
if (npcOid == 0) {
|
if (npcOid == 0) {
|
||||||
activateShamanRock(3, progress);
|
activateShamanRock(3, progress);
|
||||||
@@ -55,9 +57,9 @@ function start() {
|
|||||||
} else if (cm.getNpcObjectId() != npcOid) {
|
} else if (cm.getNpcObjectId() != npcOid) {
|
||||||
activateShamanRock(4, progress);
|
activateShamanRock(4, progress);
|
||||||
}
|
}
|
||||||
|
} else if (map == 105090100) {
|
||||||
|
activateShamanRock(5, progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(map == 105090100) activateShamanRock(5,progress);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -18,10 +18,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("Will you exit this trial?");
|
cm.sendYesNo("Will you exit this trial?");
|
||||||
|
|||||||
@@ -18,10 +18,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendYesNo("Ahead awaits the Master himself. Are you ready to face him?");
|
cm.sendYesNo("Ahead awaits the Master himself. Are you ready to face him?");
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestCompleted(100004)) {
|
if (cm.isQuestCompleted(100004)) {
|
||||||
@@ -57,20 +58,18 @@ function action(mode, type, selection) {
|
|||||||
cm.sendOk("I can show you the way once your ready for it.");
|
cm.sendOk("I can show you the way once your ready for it.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if (status == 1)
|
|
||||||
cm.sendNextPrev("I'll send you to a hidden map. You'll see monsters you don't normally see. They look the same like the regular ones, but with a totally different attitude. They neither boost your experience level nor provide you with item.");
|
cm.sendNextPrev("I'll send you to a hidden map. You'll see monsters you don't normally see. They look the same like the regular ones, but with a totally different attitude. They neither boost your experience level nor provide you with item.");
|
||||||
else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You'll be able to acquire a marble called #b#t4031013##k while knocking down those monsters. It is a special marble made out of their sinister, evil minds. Collect 30 of those, and then go talk to a colleague of mine in there. That's how you pass the test.");
|
cm.sendNextPrev("You'll be able to acquire a marble called #b#t4031013##k while knocking down those monsters. It is a special marble made out of their sinister, evil minds. Collect 30 of those, and then go talk to a colleague of mine in there. That's how you pass the test.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendYesNo("Once you go inside, you can't leave until you take care of your mission. If you die, your experience level will decrease..so you better really buckle up and get ready...well, do you want to go for it now?");
|
cm.sendYesNo("Once you go inside, you can't leave until you take care of your mission. If you die, your experience level will decrease..so you better really buckle up and get ready...well, do you want to go for it now?");
|
||||||
else if (status == 4) {
|
} else if (status == 4) {
|
||||||
cm.sendNext("Alright I'll let you in! Defeat the monsters inside, collect 30 Dark Marbles, then strike up a conversation with a colleague of mine inside. He'll give you #bThe Proof of a Hero#k, the proof that you've passed the test. Best of luck to you.");
|
cm.sendNext("Alright I'll let you in! Defeat the monsters inside, collect 30 Dark Marbles, then strike up a conversation with a colleague of mine inside. He'll give you #bThe Proof of a Hero#k, the proof that you've passed the test. Best of luck to you.");
|
||||||
cm.completeQuest(100003);
|
cm.completeQuest(100003);
|
||||||
cm.startQuest(100004);
|
cm.startQuest(100004);
|
||||||
cm.gainItem(4031008, -1);
|
cm.gainItem(4031008, -1);
|
||||||
}
|
} else if (status == 5) {
|
||||||
else if (status == 5) {
|
|
||||||
cm.warp(108000300, 0);
|
cm.warp(108000300, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestCompleted(100007)) {
|
if (cm.isQuestCompleted(100007)) {
|
||||||
@@ -57,23 +58,22 @@ function action(mode, type, selection) {
|
|||||||
cm.sendOk("I can show you the way once your ready for it.");
|
cm.sendOk("I can show you the way once your ready for it.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if(status == 1)
|
|
||||||
cm.sendNextPrev("I'll send you to a hidden map. You'll see monsters you don't normally see. They look the same like the regular ones, but with a totally different attitude. They neither boost your experience level nor provide you with item.");
|
cm.sendNextPrev("I'll send you to a hidden map. You'll see monsters you don't normally see. They look the same like the regular ones, but with a totally different attitude. They neither boost your experience level nor provide you with item.");
|
||||||
else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You'll be able to acquire a marble called #b#t4031013##k while knocking down those monsters. It is a special marble made out of their sinister, evil minds. Collect 30 of those, and then go talk to a colleague of mine in there. That's how you pass the test.");
|
cm.sendNextPrev("You'll be able to acquire a marble called #b#t4031013##k while knocking down those monsters. It is a special marble made out of their sinister, evil minds. Collect 30 of those, and then go talk to a colleague of mine in there. That's how you pass the test.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendYesNo("Once you go inside, you can't leave until you take care of your mission. If you die, your experience level will decrease.. So you better really buckle up and get ready...well, do you want to go for it now?");
|
cm.sendYesNo("Once you go inside, you can't leave until you take care of your mission. If you die, your experience level will decrease.. So you better really buckle up and get ready...well, do you want to go for it now?");
|
||||||
else if (status == 4) {
|
} else if (status == 4) {
|
||||||
cm.sendNext("Alright I'll let you in! Defeat the monsters inside, collect 30 Dark Marbles, then strike up a conversation with a colleague of mine inside. He'll give you #bThe Proof of a Hero#k, the proof that you've passed the test. Best of luck to you.");
|
cm.sendNext("Alright I'll let you in! Defeat the monsters inside, collect 30 Dark Marbles, then strike up a conversation with a colleague of mine inside. He'll give you #bThe Proof of a Hero#k, the proof that you've passed the test. Best of luck to you.");
|
||||||
cm.completeQuest(100006);
|
cm.completeQuest(100006);
|
||||||
cm.startQuest(100007);
|
cm.startQuest(100007);
|
||||||
cm.gainItem(4031009, -1);
|
cm.gainItem(4031009, -1);
|
||||||
}
|
} else if (status == 5) {
|
||||||
else if (status == 5) {
|
|
||||||
cm.warp(108000200, 0);
|
cm.warp(108000200, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
} else {
|
||||||
else cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestCompleted(100001)) {
|
if (cm.isQuestCompleted(100001)) {
|
||||||
@@ -57,13 +58,11 @@ function action(mode, type, selection) {
|
|||||||
cm.sendOk("I can show you the way once your ready for it.");
|
cm.sendOk("I can show you the way once your ready for it.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 1) {
|
||||||
|
|
||||||
else if (status == 1)
|
|
||||||
cm.sendNextPrev("So you want to prove your skills? Very well...");
|
cm.sendNextPrev("So you want to prove your skills? Very well...");
|
||||||
else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendAcceptDecline("I will give you a chance if you're ready.");
|
cm.sendAcceptDecline("I will give you a chance if you're ready.");
|
||||||
else if (status == 3) {
|
} else if (status == 3) {
|
||||||
cm.completeQuest(100000);
|
cm.completeQuest(100000);
|
||||||
cm.startQuest(100001);
|
cm.startQuest(100001);
|
||||||
cm.gainItem(4031010, -1);
|
cm.gainItem(4031010, -1);
|
||||||
@@ -71,8 +70,7 @@ function action(mode, type, selection) {
|
|||||||
} else if (status == 4) {
|
} else if (status == 4) {
|
||||||
cm.warp(108000100, 0);
|
cm.warp(108000100, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestCompleted(100010)) {
|
if (cm.isQuestCompleted(100010)) {
|
||||||
@@ -57,13 +58,11 @@ function action(mode, type, selection) {
|
|||||||
cm.sendOk("I can show you the way once your ready for it.");
|
cm.sendOk("I can show you the way once your ready for it.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 1) {
|
||||||
|
|
||||||
else if(status == 1)
|
|
||||||
cm.sendNextPrev("So you want to prove your skills? Very well...");
|
cm.sendNextPrev("So you want to prove your skills? Very well...");
|
||||||
else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendAcceptDecline("I will give you a chance if you're ready.");
|
cm.sendAcceptDecline("I will give you a chance if you're ready.");
|
||||||
else if (status == 3) {
|
} else if (status == 3) {
|
||||||
cm.sendOk("You will have to collect me #b30 #t4031013##k. Good luck.");
|
cm.sendOk("You will have to collect me #b30 #t4031013##k. Good luck.");
|
||||||
cm.completeQuest(100009);
|
cm.completeQuest(100009);
|
||||||
cm.startQuest(100010);
|
cm.startQuest(100010);
|
||||||
@@ -71,8 +70,7 @@ function action(mode, type, selection) {
|
|||||||
} else if (status == 4) {
|
} else if (status == 4) {
|
||||||
cm.warp(108000400, 0);
|
cm.warp(108000400, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,10 +35,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031013, 30)) {
|
if (cm.haveItem(4031013, 30)) {
|
||||||
|
|||||||
@@ -35,10 +35,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031013, 30)) {
|
if (cm.haveItem(4031013, 30)) {
|
||||||
|
|||||||
@@ -47,10 +47,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031013, 30)) {
|
if (cm.haveItem(4031013, 30)) {
|
||||||
|
|||||||
@@ -46,10 +46,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.haveItem(4031013, 30)) {
|
if (cm.haveItem(4031013, 30)) {
|
||||||
|
|||||||
@@ -19,10 +19,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getMapId() == 108000502) {
|
if (cm.getMapId() == 108000502) {
|
||||||
|
|||||||
@@ -36,24 +36,25 @@ var returnmap;
|
|||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
returnmap = cm.getPlayer().peekSavedLocation("FLORINA");
|
returnmap = cm.getPlayer().peekSavedLocation("FLORINA");
|
||||||
if (returnmap == -1)
|
if (returnmap == -1) {
|
||||||
returnmap = 104000000;
|
returnmap = 104000000;
|
||||||
|
}
|
||||||
cm.sendNext("So you want to leave #b#m110000000##k? If you want, I can take you back to #b#m" + returnmap + "##k.");
|
cm.sendNext("So you want to leave #b#m110000000##k? If you want, I can take you back to #b#m" + returnmap + "##k.");
|
||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1) {
|
if (mode == -1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (mode == 0) {
|
} else if (mode == 0) {
|
||||||
cm.sendNext("You must have some business to take care of here. It's not a bad idea to take some rest at #m" + returnmap + "# Look at me; I love it here so much that I wound up living here. Hahaha anyway, talk to me when you feel like going back.");
|
cm.sendNext("You must have some business to take care of here. It's not a bad idea to take some rest at #m" + returnmap + "# Look at me; I love it here so much that I wound up living here. Hahaha anyway, talk to me when you feel like going back.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
} else if (mode == 1) {
|
} else if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
if (status == 1)
|
if (status == 1) {
|
||||||
cm.sendYesNo("Are you sure you want to return to #b#m" + returnmap + "##k? Alright, we'll have to get going fast. Do you want to head back to #m" + returnmap + "# now?")
|
cm.sendYesNo("Are you sure you want to return to #b#m" + returnmap + "##k? Alright, we'll have to get going fast. Do you want to head back to #m" + returnmap + "# now?")
|
||||||
else {
|
} else {
|
||||||
cm.getPlayer().getSavedLocation("FLORINA");
|
cm.getPlayer().getSavedLocation("FLORINA");
|
||||||
cm.warp(returnmap);
|
cm.warp(returnmap);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ spawnPnpcFee = 7000000;
|
|||||||
jobType = 5;
|
jobType = 5;
|
||||||
|
|
||||||
var advQuest = 0;
|
var advQuest = 0;
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
const GameConstants = Java.type('constants.game.GameConstants');
|
const GameConstants = Java.type('constants.game.GameConstants');
|
||||||
if (cm.isQuestStarted(6330)) {
|
if (cm.isQuestStarted(6330)) {
|
||||||
@@ -79,10 +80,11 @@ function start() {
|
|||||||
cm.sendNext("Want to be a #rpirate#k? There are some standards to meet. because we can't just accept EVERYONE in... #bYour level should be at least 10, with " + cm.getFirstJobStatRequirement(jobType) + " minimum#k. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
cm.sendNext("Want to be a #rpirate#k? There are some standards to meet. because we can't just accept EVERYONE in... #bYour level should be at least 10, with " + cm.getFirstJobStatRequirement(jobType) + " minimum#k. Let's see."); // thanks Vcoc for noticing a need to state and check requirements on first job adv starting message
|
||||||
} else if (cm.getLevel() >= 30 && cm.getJobId() == 500) {
|
} else if (cm.getLevel() >= 30 && cm.getJobId() == 500) {
|
||||||
actionx["2ndJob"] = true;
|
actionx["2ndJob"] = true;
|
||||||
if (cm.isQuestCompleted(2191) || cm.isQuestCompleted(2192))
|
if (cm.isQuestCompleted(2191) || cm.isQuestCompleted(2192)) {
|
||||||
cm.sendNext("I see you have done well. I will allow you to take the next step on your long road.");
|
cm.sendNext("I see you have done well. I will allow you to take the next step on your long road.");
|
||||||
else
|
} else {
|
||||||
cm.sendNext("The progress you have made is astonishing.");
|
cm.sendNext("The progress you have made is astonishing.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 5 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
} else if (actionx["3thJobI"] || (cm.getPlayer().gotPartyQuestItem("JB3") && cm.getLevel() >= 70 && cm.getJobId() % 10 == 0 && parseInt(cm.getJobId() / 100) == 5 && !cm.getPlayer().gotPartyQuestItem("JBP"))) {
|
||||||
actionx["3thJobI"] = true;
|
actionx["3thJobI"] = true;
|
||||||
cm.sendNext("There you are. A few days ago, #b#p2020013##k of Ossyria talked to me about you. I see that you are interested in making the leap to the world of the third job advancement for pirates. To archieve that goal, I will have to test your strength in order to see whether you are worthy of the advancement. There is an opening in the middle of a cave on Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat him and bring #b#t4031059##k back with you.");
|
cm.sendNext("There you are. A few days ago, #b#p2020013##k of Ossyria talked to me about you. I see that you are interested in making the leap to the world of the third job advancement for pirates. To archieve that goal, I will have to test your strength in order to see whether you are worthy of the advancement. There is an opening in the middle of a cave on Victoria Island, where it'll lead you to a secret passage. Once inside, you'll face a clone of myself. Your task is to defeat him and bring #b#t4031059##k back with you.");
|
||||||
@@ -157,8 +159,9 @@ function action(mode, type, selection) {
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
if (mode != 1 || status == 7 && type != 1 || (actionx["1stJob"] && status == 4) || (cm.haveItem(4031008) && status == 2) || (actionx["3thJobI"] && status == 1)) {
|
||||||
if (mode == 0 && status == 2 && type == 1)
|
if (mode == 0 && status == 2 && type == 1) {
|
||||||
cm.sendOk("You know there is no other choice...");
|
cm.sendOk("You know there is no other choice...");
|
||||||
|
}
|
||||||
if (!(mode == 0 && type != 1)) {
|
if (!(mode == 0 && type != 1)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
@@ -189,18 +192,20 @@ function action(mode, type, selection) {
|
|||||||
cm.sendNext("Make some room in your inventory and talk back to me.");
|
cm.sendNext("Make some room in your inventory and talk back to me.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
} else if (status == 2)
|
} else if (status == 2) {
|
||||||
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
cm.sendNextPrev("You've gotten much stronger now. Plus every single one of your inventories have added slots. A whole row, to be exact. Go see for it yourself. I just gave you a little bit of #bSP#k. When you open up the #bSkill#k menu on the lower left corner of the screen, there are skills you can learn by using SP's. One warning, though: You can't raise it all together all at once. There are also skills you can acquire only after having learned a couple of skills first.");
|
||||||
else if (status == 3)
|
} else if (status == 3) {
|
||||||
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Pirate.");
|
cm.sendNextPrev("Now a reminder. Once you have chosen, you cannot change up your mind and try to pick another path. Go now, and live as a proud Pirate.");
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
} else if (actionx["2ndJob"]) {
|
} else if (actionx["2ndJob"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.isQuestCompleted(2191) || cm.isQuestCompleted(2192))
|
if (cm.isQuestCompleted(2191) || cm.isQuestCompleted(2192)) {
|
||||||
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Brawler is all about.\r\n#L1#Please explain to me what being the Gunslinger is all about.\r\n#L3#I'll choose my occupation!");
|
cm.sendSimple("Alright, when you have made your decision, click on [I'll choose my occupation] at the bottom.#b\r\n#L0#Please explain to me what being the Brawler is all about.\r\n#L1#Please explain to me what being the Gunslinger is all about.\r\n#L3#I'll choose my occupation!");
|
||||||
else
|
} else {
|
||||||
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine.");
|
cm.sendNext("Good decision. You look strong, but I need to see if you really are strong enough to pass the test, it's not a difficult test, so you'll do just fine.");
|
||||||
|
}
|
||||||
} else if (status == 1) {
|
} else if (status == 1) {
|
||||||
if (!cm.isQuestCompleted(2191) && !cm.isQuestCompleted(2192)) {
|
if (!cm.isQuestCompleted(2191) && !cm.isQuestCompleted(2192)) {
|
||||||
// Pirate works differently from the other jobs. It warps you directly in.
|
// Pirate works differently from the other jobs. It warps you directly in.
|
||||||
@@ -215,49 +220,58 @@ function action(mode, type, selection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
status -= 2;
|
status -= 2;
|
||||||
} else
|
} else {
|
||||||
cm.sendNextPrev("You have a long road ahead of you still, but being a pirate will help you get there. Just keep that in mind and you will do fine.");
|
cm.sendNextPrev("You have a long road ahead of you still, but being a pirate will help you get there. Just keep that in mind and you will do fine.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (status == 2) {
|
} else if (status == 2) {
|
||||||
if (actionx["2ndJobT"]) {
|
if (actionx["2ndJobT"]) {
|
||||||
var map = 0;
|
var map = 0;
|
||||||
if(cm.isQuestStarted(2191))
|
if (cm.isQuestStarted(2191)) {
|
||||||
map = 108000502;
|
map = 108000502;
|
||||||
else
|
} else {
|
||||||
map = 108000501;
|
map = 108000501;
|
||||||
|
}
|
||||||
if (cm.getPlayerCount(map) > 0) {
|
if (cm.getPlayerCount(map) > 0) {
|
||||||
cm.sendOk("All the training maps are currently in use. Please try again later.");
|
cm.sendOk("All the training maps are currently in use. Please try again later.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
} else {
|
} else {
|
||||||
cm.warp(map, 0);
|
cm.warp(map, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(cm.isQuestCompleted(2191) && cm.isQuestCompleted(2192))
|
if (cm.isQuestCompleted(2191) && cm.isQuestCompleted(2192)) {
|
||||||
job = (Math.random() < 0.5) ? 510 : 520;
|
job = (Math.random() < 0.5) ? 510 : 520;
|
||||||
else if(cm.isQuestCompleted(2191))
|
} else if (cm.isQuestCompleted(2191)) {
|
||||||
job = 510;
|
job = 510;
|
||||||
else if(cm.isQuestCompleted(2192))
|
} else if (cm.isQuestCompleted(2192)) {
|
||||||
job = 520;
|
job = 520;
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 510 ? "#bBrawler#k" : "#bGunslinger#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your decision here, right?");
|
cm.sendYesNo("So you want to make the second job advancement as the " + (job == 510 ? "#bBrawler#k" : "#bGunslinger#k") + "? You know you won't be able to choose a different job for the 2nd job advancement once you make your decision here, right?");
|
||||||
}
|
}
|
||||||
} else if (status == 3) {
|
} else if (status == 3) {
|
||||||
if (cm.haveItem(4031012))
|
if (cm.haveItem(4031012)) {
|
||||||
cm.gainItem(4031012, -1);
|
cm.gainItem(4031012, -1);
|
||||||
|
}
|
||||||
|
|
||||||
if(job == 510) cm.sendNext("From here on out, you are a #bBrawler#k. Brawlers rule the world with the power of their bare fists...which means they need to train their body more than others. If you have any trouble training, I'll be more than happy to help.");
|
if (job == 510) {
|
||||||
else cm.sendNext("From here on out, you are a #bGunslinger#k. Gunslingers are notable for their long-range attacks with sniper-like accuracy and of course, using Guns as their primary weapon. You should continue training to truly master your skills. If you are having trouble training, I'll be here to help.");
|
cm.sendNext("From here on out, you are a #bBrawler#k. Brawlers rule the world with the power of their bare fists...which means they need to train their body more than others. If you have any trouble training, I'll be more than happy to help.");
|
||||||
|
} else {
|
||||||
|
cm.sendNext("From here on out, you are a #bGunslinger#k. Gunslingers are notable for their long-range attacks with sniper-like accuracy and of course, using Guns as their primary weapon. You should continue training to truly master your skills. If you are having trouble training, I'll be here to help.");
|
||||||
|
}
|
||||||
|
|
||||||
if (cm.getJobId() != job)
|
if (cm.getJobId() != job) {
|
||||||
cm.changeJobById(job);
|
cm.changeJobById(job);
|
||||||
} else if (status == 4)
|
}
|
||||||
|
} else if (status == 4) {
|
||||||
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 510 ? "brawler" : "gunslinger") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
cm.sendNextPrev("I have just given you a book that gives you the list of skills you can acquire as a " + (job == 510 ? "brawler" : "gunslinger") + ". Also your etc inventory has expanded by adding another row to it. Your max HP and MP have increased, too. Go check and see for it yourself.");
|
||||||
else if (status == 5)
|
} else if (status == 5) {
|
||||||
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottom left corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
cm.sendNextPrev("I have also given you a little bit of #bSP#k. Open the #bSkill Menu#k located at the bottom left corner. you'll be able to boost up the newer acquired 2nd level skills. A word of warning, though. You can't boost them up all at once. Some of the skills are only available after you have learned other skills. Make sure yo remember that.");
|
||||||
else if (status == 6)
|
} else if (status == 6) {
|
||||||
cm.sendNextPrev((job == 510 ? "Brawlers" : "Gunslingers") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
cm.sendNextPrev((job == 510 ? "Brawlers" : "Gunslingers") + " need to be strong. But remember that you can't abuse that power and use it on a weakling. Please use your enormous power the right way, because... for you to use that the right way, that is much harden than just getting stronger. Please find me after you have advanced much further. I'll be waiting for you.");
|
||||||
|
}
|
||||||
} else if (actionx["3thJobI"]) {
|
} else if (actionx["3thJobI"]) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
if (cm.getPlayer().gotPartyQuestItem("JB3")) {
|
||||||
|
|||||||
@@ -14,90 +14,85 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
}
|
||||||
if (status == 0 && mode == 1) {
|
if (status == 0 && mode == 1) {
|
||||||
var selStr = "What? You want to make your own weapons and gloves? Seriously... it's tough to do it by yourself if you don't have experience... I'll help you out. I've been a pirate for 20 years, and for 20 years I have made various items for the crew here. It's easy for me.";
|
var selStr = "What? You want to make your own weapons and gloves? Seriously... it's tough to do it by yourself if you don't have experience... I'll help you out. I've been a pirate for 20 years, and for 20 years I have made various items for the crew here. It's easy for me.";
|
||||||
var options = new Array("Make a Knuckler","Make a Gun","Make a pair of gloves");
|
var options = ["Make a Knuckler", "Make a Gun", "Make a pair of gloves"];
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
selStr += "\r\n#b#L" + i + "# " + options[i] + "#l#k";
|
selStr += "\r\n#b#L" + i + "# " + options[i] + "#l#k";
|
||||||
}
|
}
|
||||||
|
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (status == 1 && mode == 1) {
|
||||||
else if (status == 1 && mode == 1) {
|
|
||||||
selectedType = selection;
|
selectedType = selection;
|
||||||
if (selectedType == 0) { //Making a Knuckler
|
if (selectedType == 0) { //Making a Knuckler
|
||||||
var selStr = "As long as you bring in the materials required, I'll make you a fine Knuckler. Which Knuckler would you like to make?";
|
var selStr = "As long as you bring in the materials required, I'll make you a fine Knuckler. Which Knuckler would you like to make?";
|
||||||
var knucklers = new Array("Leather Arms (Level limit: 15, Pirate)", "Double Tail Knuckler (Level limit: 20, Pirate)", "Norman Grip (Level limit: 25, Pirate)", "Prime Hands (Level limit: 30, Pirate)", "Silver Maiden (Level limit: 35, Pirate)", "Neozard (Level limit: 40, Pirate)", "Fury Claw (Level limit: 50, Pirate)");
|
var knucklers = ["Leather Arms (Level limit: 15, Pirate)", "Double Tail Knuckler (Level limit: 20, Pirate)", "Norman Grip (Level limit: 25, Pirate)", "Prime Hands (Level limit: 30, Pirate)", "Silver Maiden (Level limit: 35, Pirate)", "Neozard (Level limit: 40, Pirate)", "Fury Claw (Level limit: 50, Pirate)"];
|
||||||
for (var i = 0; i < knucklers.length; i++) {
|
for (var i = 0; i < knucklers.length; i++) {
|
||||||
selStr += "\r\n#b#L" + i + "# " + knucklers[i] + "#l#k";
|
selStr += "\r\n#b#L" + i + "# " + knucklers[i] + "#l#k";
|
||||||
}
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 1) { //Making a Gun
|
||||||
else if (selectedType == 1){ //Making a Gun
|
|
||||||
var selStr = "As long as you bring in the materials required, I'll make you a fine Gun. Which Gun would you like to make?";
|
var selStr = "As long as you bring in the materials required, I'll make you a fine Gun. Which Gun would you like to make?";
|
||||||
var guns = new Array("Dellinger Special (Level limit: 15, Pirate)", "The Negotiator (Level limit: 20, Pirate)", "Golden Hook (Level limit: 25, Pirate)", "Cold Mind (Level limit: 30, Pirate)", "Shooting Star (Level limit: 35, Pirate)", "Lunar Shooter (Level limit: 40, Pirate)", "Mr. Rasfelt (Level limit: 50, Pirate)");
|
var guns = ["Dellinger Special (Level limit: 15, Pirate)", "The Negotiator (Level limit: 20, Pirate)", "Golden Hook (Level limit: 25, Pirate)", "Cold Mind (Level limit: 30, Pirate)", "Shooting Star (Level limit: 35, Pirate)", "Lunar Shooter (Level limit: 40, Pirate)", "Mr. Rasfelt (Level limit: 50, Pirate)"];
|
||||||
for (var i = 0; i < guns.length; i++) {
|
for (var i = 0; i < guns.length; i++) {
|
||||||
selStr += "\r\n#b#L" + i + "# " + guns[i] + "#l#k";
|
selStr += "\r\n#b#L" + i + "# " + guns[i] + "#l#k";
|
||||||
}
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
} else if (selectedType == 2) { //Making a pair of pirate gloves
|
||||||
else if (selectedType == 2){ //Making a pair of pirate gloves
|
|
||||||
var selStr = "As long as you bring in the materials required, I'll make you a fine glove. Which glove would you like to make?";
|
var selStr = "As long as you bring in the materials required, I'll make you a fine glove. Which glove would you like to make?";
|
||||||
var gloves = new Array ("Green Lagger Halfglove","Brown Leather Armour Glove","Hard Leather Glove","Yellow Tartis","Brown Jewelled","Brown Barbee","Brown Royce","Black Schult");
|
var gloves = ["Green Lagger Halfglove", "Brown Leather Armour Glove", "Hard Leather Glove", "Yellow Tartis", "Brown Jewelled", "Brown Barbee", "Brown Royce", "Black Schult"];
|
||||||
for (var i = 0; i < gloves.length; i++) {
|
for (var i = 0; i < gloves.length; i++) {
|
||||||
selStr += "\r\n#b#L" + i + "# " + gloves[i] + "#l#k";
|
selStr += "\r\n#b#L" + i + "# " + gloves[i] + "#l#k";
|
||||||
}
|
}
|
||||||
equip = true;
|
equip = true;
|
||||||
cm.sendSimple(selStr);
|
cm.sendSimple(selStr);
|
||||||
}
|
}
|
||||||
if (equip)
|
if (equip) {
|
||||||
status++;
|
status++;
|
||||||
}
|
}
|
||||||
else if (status == 3 && mode == 1) {
|
} else if (status == 3 && mode == 1) {
|
||||||
if (equip)
|
if (equip) {
|
||||||
{
|
|
||||||
selectedItem = selection;
|
selectedItem = selection;
|
||||||
qty = 1;
|
qty = 1;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedType == 0) { //Making a Knuckler
|
if (selectedType == 0) { //Making a Knuckler
|
||||||
var itemSet = new Array(1482001, 1482002, 1482003, 1482004, 1482005, 1482006, 1482007);
|
var itemSet = [1482001, 1482002, 1482003, 1482004, 1482005, 1482006, 1482007];
|
||||||
var matSet = new Array(4000021, new Array(4011001,4011000,4000021,4003000), new Array(4011000,4011001,4003000), new Array(4011000,4011001,4000021,4003000), new Array(4011000,4011001,4000021,4003000), new Array(4011000,4011001,4021000,4000021,4003000), new Array(4000039,4011000,4011001,4000030,4000021,4003000));
|
var matSet = [4000021, [4011001, 4011000, 4000021, 4003000], [4011000, 4011001, 4003000], [4011000, 4011001, 4000021, 4003000], [4011000, 4011001, 4000021, 4003000], [4011000, 4011001, 4021000, 4000021, 4003000], [4000039, 4011000, 4011001, 4000030, 4000021, 4003000]];
|
||||||
var matQtySet = new Array(20, new Array(1,1,10,5), new Array(2,1,10), new Array(1,1,30,10), new Array(2,2,30,20), new Array(1,1,2,50,20), new Array(150,1,2,20,20,20));
|
var matQtySet = [20, [1, 1, 10, 5], [2, 1, 10], [1, 1, 30, 10], [2, 2, 30, 20], [1, 1, 2, 50, 20], [150, 1, 2, 20, 20, 20]];
|
||||||
var costSet = new Array(1000,2000,5000,15000,30000,50000,100000);
|
var costSet = [1000, 2000, 5000, 15000, 30000, 50000, 100000];
|
||||||
var levelLimitSet = new Array(15,20,25,30,35,40,50);
|
var levelLimitSet = [15, 20, 25, 30, 35, 40, 50];
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
levelLimit = levelLimitSet[selectedItem];
|
levelLimit = levelLimitSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 1) { //Making a Gun
|
||||||
else if (selectedType == 1){ //Making a Gun
|
var itemSet = [1492001, 1492002, 1492003, 1492004, 1492005, 1492006, 1492007];
|
||||||
var itemSet = new Array(1492001, 1492002, 1492003, 1492004, 1492005, 1492006, 1492007);
|
var matSet = [[4011000, 4003000, 4003001], [4011000, 4003000, 4003001, 4000021], [4011000, 4003000], [4011001, 4000021, 4003000], [4011006, 4011001, 4000021, 4003000], [4011004, 4011001, 4000021, 4003000], [4011006, 4011004, 4011001, 4000030, 4003000]];
|
||||||
var matSet = new Array(new Array(4011000,4003000,4003001), new Array(4011000,4003000,4003001,4000021), new Array(4011000,4003000), new Array(4011001,4000021,4003000), new Array(4011006,4011001,4000021,4003000), new Array(4011004,4011001,4000021,4003000), new Array(4011006,4011004,4011001,4000030,4003000));
|
var matQtySet = [[1, 5, 1], [1, 10, 5, 10], [2, 10], [2, 10, 10], [10, 2, 5, 10], [1, 2, 10, 20], [1, 2, 4, 30, 30]];
|
||||||
var matQtySet = new Array(new Array(1,5,1), new Array(1,10,5,10), new Array(2,10), new Array(2,10,10), new Array(10,2,5,10), new Array(1,2,10,20), new Array(1,2,4,30,30));
|
var costSet = [1000, 2000, 5000, 15000, 30000, 50000, 100000];
|
||||||
var costSet = new Array (1000,2000,5000,15000,30000,50000,100000);
|
var levelLimitSet = [15, 20, 25, 30, 35, 40, 50];
|
||||||
var levelLimitSet = new Array(15,20,25,30,35,40,50);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
cost = costSet[selectedItem];
|
cost = costSet[selectedItem];
|
||||||
levelLimit = levelLimitSet[selectedItem];
|
levelLimit = levelLimitSet[selectedItem];
|
||||||
}
|
} else if (selectedType == 2) { //Making a pair of pirate gloves
|
||||||
else if (selectedType == 2){ //Making a pair of pirate gloves
|
var itemSet = [1082180, 1082183, 1082186, 1082189, 1082192, 1082195, 1082198, 1082201];
|
||||||
var itemSet = new Array(1082180, 1082183, 1082186, 1082189, 1082192, 1082195, 1082198, 1082201);
|
var matSet = [[4000021, 4021003], 4000021, [4011000, 4000021], [4021006, 4000021, 4003000], [4011000, 4000021, 4003000], [4000021, 4011000, 4011001, 4003000], [4011000, 4000021, 4000030, 4003000], [4011007, 4021008, 4021007, 4000030, 4003000]];
|
||||||
var matSet = new Array(new Array(4000021,4021003),4000021,new Array(4011000,4000021),new Array(4021006,4000021,4003000),new Array(4011000,4000021,4003000),new Array(4000021,4011000,4011001,4003000),new Array(4011000,4000021,4000030,4003000),new Array(4011007,4021008,4021007,4000030,4003000));
|
var matQtySet = [[15, 1], 35, [2, 20], [2, 50, 10], [3, 60, 15], [80, 3, 3, 25], [3, 20, 40, 30], [1, 1, 1, 50, 50]];
|
||||||
var matQtySet = new Array(new Array(15,1),35,new Array(2,20),new Array(2,50,10),new Array(3,60,15),new Array(80,3,3,25),new Array(3,20,40,30),new Array(1,1,1,50,50));
|
var costSet = [1000, 8000, 15000, 25000, 30000, 40000, 50000, 70000];
|
||||||
var costSet = new Array(1000,8000,15000,25000,30000,40000,50000,70000);
|
var levelLimitSet = [15, 20, 25, 30, 35, 40, 50, 60];
|
||||||
var levelLimitSet = new Array(15,20,25,30,35,40,50,60);
|
|
||||||
item = itemSet[selectedItem];
|
item = itemSet[selectedItem];
|
||||||
mats = matSet[selectedItem];
|
mats = matSet[selectedItem];
|
||||||
matQty = matQtySet[selectedItem];
|
matQty = matQtySet[selectedItem];
|
||||||
@@ -111,39 +106,36 @@ function action(mode, type, selection) {
|
|||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
prompt += "\r\n#i" + mats[i] + "# " + matQty[i] * qty + " #t" + mats[i] + "#";
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
prompt += "\r\n#i" + mats + "# " + matQty * qty + " #t" + mats + "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
prompt += "\r\n#i4031138# " + cost * qty + " meso";
|
||||||
|
}
|
||||||
|
|
||||||
cm.sendYesNo(prompt);
|
cm.sendYesNo(prompt);
|
||||||
}
|
} else if (status == 4 && mode == 1) {
|
||||||
else if (status == 4 && mode == 1) {
|
|
||||||
var pass = true;
|
var pass = true;
|
||||||
|
|
||||||
if (!cm.canHold(item)) {
|
if (!cm.canHold(item)) {
|
||||||
cm.sendOk("Check your inventory for a free slot first.");
|
cm.sendOk("Check your inventory for a free slot first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else if (cm.getMeso() < cost * qty) {
|
||||||
else if (cm.getMeso() < cost * qty)
|
|
||||||
{
|
|
||||||
cm.sendNext("Check and make sure you have all the necessary items to make this. Also, make sure your Equips inventory has room. I can't give you the item if your inventory is full, you know.");
|
cm.sendNext("Check and make sure you have all the necessary items to make this. Also, make sure your Equips inventory has room. I can't give you the item if your inventory is full, you know.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for(var i = 0; pass && i < mats.length; i++)
|
for (var i = 0; pass && i < mats.length; i++) {
|
||||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
if (!cm.haveItem(mats[i], matQty[i] * qty)) {
|
||||||
pass = false;
|
pass = false;
|
||||||
}
|
}
|
||||||
else if (!cm.haveItem(mats, matQty * qty))
|
}
|
||||||
|
} else if (!cm.haveItem(mats, matQty * qty)) {
|
||||||
pass = false;
|
pass = false;
|
||||||
|
}
|
||||||
/*if (mats instanceof Array) {
|
/*if (mats instanceof Array) {
|
||||||
for(var i = 0; pass && i < mats.length; i++)
|
for(var i = 0; pass && i < mats.length; i++)
|
||||||
{
|
{
|
||||||
@@ -176,24 +168,27 @@ function action(mode, type, selection) {
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pass == false)
|
if (pass == false) {
|
||||||
cm.sendNext("Check and make sure you have all the necessary items to make this. Also, make sure your Equips inventory has room. I can't give you the item if your inventory is full, you know.");
|
cm.sendNext("Check and make sure you have all the necessary items to make this. Also, make sure your Equips inventory has room. I can't give you the item if your inventory is full, you know.");
|
||||||
else {
|
} else {
|
||||||
if (mats instanceof Array) {
|
if (mats instanceof Array) {
|
||||||
for (var i = 0; i < mats.length; i++) {
|
for (var i = 0; i < mats.length; i++) {
|
||||||
cm.gainItem(mats[i], -matQty[i] * qty);
|
cm.gainItem(mats[i], -matQty[i] * qty);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
cm.gainItem(mats, -matQty * qty);
|
cm.gainItem(mats, -matQty * qty);
|
||||||
|
}
|
||||||
|
|
||||||
if (cost > 0)
|
if (cost > 0) {
|
||||||
cm.gainMeso(-cost * qty);
|
cm.gainMeso(-cost * qty);
|
||||||
|
}
|
||||||
|
|
||||||
if (item == 4003000)//screws
|
if (item == 4003000)//screws
|
||||||
|
{
|
||||||
cm.gainItem(4003000, 15 * qty);
|
cm.gainItem(4003000, 15 * qty);
|
||||||
else
|
} else {
|
||||||
cm.gainItem(item, qty);
|
cm.gainItem(item, qty);
|
||||||
|
}
|
||||||
cm.sendOk("All done. If you need anything else... Well, I'm not going anywhere.");
|
cm.sendOk("All done. If you need anything else... Well, I'm not going anywhere.");
|
||||||
}
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -31,24 +31,23 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1 || !cm.isQuestStarted(2180)) {
|
if (mode == -1 || !cm.isQuestStarted(2180)) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
|
||||||
|
} else {
|
||||||
|
if (mode == 1) {
|
||||||
|
status++;
|
||||||
|
} else {
|
||||||
|
status--;
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
if (mode == 1) status++;
|
|
||||||
else status --;
|
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
cm.sendNext("Okay, I'll now send you to the stable where my cows are. Watch out for the calves that drink all the milk. You don't want your effort to go to waste.");
|
cm.sendNext("Okay, I'll now send you to the stable where my cows are. Watch out for the calves that drink all the milk. You don't want your effort to go to waste.");
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if (status == 1){
|
|
||||||
cm.sendNextPrev("It won't be easy to tell at a glance between a calf and a cow. Those calves may only be a month or two old, but they have already grown to the size of their mother. They even look alike...even I get confused at times! Good luck!");
|
cm.sendNextPrev("It won't be easy to tell at a glance between a calf and a cow. Those calves may only be a month or two old, but they have already grown to the size of their mother. They even look alike...even I get confused at times! Good luck!");
|
||||||
}
|
} else if (status == 2) {
|
||||||
else if (status == 2){
|
|
||||||
if (cm.canHold(4031847)) {
|
if (cm.canHold(4031847)) {
|
||||||
cm.gainItem(4031847, 1);
|
cm.gainItem(4031847, 1);
|
||||||
cm.warp(912000100, 0);
|
cm.warp(912000100, 0);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
cm.sendOk("I can't give you the empty bottle because your inventory is full. Please make some room in your Etc window.");
|
cm.sendOk("I can't give you the empty bottle because your inventory is full. Please make some room in your Etc window.");
|
||||||
}
|
}
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -15,34 +15,31 @@ function start() {
|
|||||||
function action(mode, type, selection) {
|
function action(mode, type, selection) {
|
||||||
if (mode == -1) {
|
if (mode == -1) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (mode == 0 && type > 0) {
|
if (mode == 0 && type > 0) {
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (cm.getQuestStatus(2175) == 1) {
|
if (cm.getQuestStatus(2175) == 1) {
|
||||||
if (cm.getPlayer().canHold(2030019)) {
|
if (cm.getPlayer().canHold(2030019)) {
|
||||||
cm.sendOk("Please take this #b#t2030019##k, it will make your life a lot easier. #i2030019#");
|
cm.sendOk("Please take this #b#t2030019##k, it will make your life a lot easier. #i2030019#");
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
cm.sendOk("No free inventory spot available. Please make room in your USE inventory first.");
|
cm.sendOk("No free inventory spot available. Please make room in your USE inventory first.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
cm.sendOk("The Black Magician and his followers. Kyrin and the Crew of Nautilus. \n They'll be chasing one another until one of them doesn't exist, that's for sure.");
|
cm.sendOk("The Black Magician and his followers. Kyrin and the Crew of Nautilus. \n They'll be chasing one another until one of them doesn't exist, that's for sure.");
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
}
|
}
|
||||||
}
|
} else if (status == 1) {
|
||||||
else if (status == 1){
|
|
||||||
cm.gainItem(2030019, 1);
|
cm.gainItem(2030019, 1);
|
||||||
cm.warp(100000006, 0);
|
cm.warp(100000006, 0);
|
||||||
cm.dispose();
|
cm.dispose();
|
||||||
|
|||||||
@@ -33,10 +33,11 @@ function action(mode, type, selection) {
|
|||||||
cm.dispose();
|
cm.dispose();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mode == 1)
|
if (mode == 1) {
|
||||||
status++;
|
status++;
|
||||||
else
|
} else {
|
||||||
status--;
|
status--;
|
||||||
|
}
|
||||||
|
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
if (!cm.isQuestStarted(6410)) {
|
if (!cm.isQuestStarted(6410)) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user