Missing Pirate questlines + Find & MoveLife update + Party-Map patch

Implemented missing scripts for Aerial Strike, Hypnotize and Time Leap skill questlines.
Fixed an deadlock issue within player's inventory and status.
Fixed skill spam detection disconnecting players when legitimatelly spamming Flash Jump or Heal.
Fixed party members map location not being properly updated after changing maps.
Rehauled MoveLife handler. Improved packet read of attack and skill elements, properly reflecting incoming actions to other player on the map.
Reviewed an issue with equipments MaxHP/MaxMP getting unsynced with player's MaxHP/MaxMP, resulting in differences within server-client view of a player's pool.
Fixed mobs not being spawned by dojo bosses after enough spawn actions were instanced.
Implemented proper Mob.wz linked mob data support.
Fixed /find not identifying a player's channel properly.
Fixed Echo of Hero not affecting other player in the map.
Fixed commands warp and goto not taking player off events/expeditions properly.
Fixed storage expansion not being registered on DB when buying the cash item.
Fixed party leadership being reassigned after changing channels.
Implemented suggested level range limit between party members on the EXP share system. Players whose level range from the attacker exceeds the estipulated threshold will not receive any EXP from the action.

Happy Thanksgiving Day everyone!!!
This commit is contained in:
ronancpl
2018-11-22 16:16:21 -02:00
parent 5ee0cd1c98
commit 0910dc2428
163 changed files with 4618 additions and 3186 deletions

View File

@@ -1,4 +1,4 @@
//credits to kevintjuh93
//@author kevintjuh93
var status = -1;

View File

@@ -1,5 +1,5 @@
/*
Author: DietStory dev team
Author: DietStory v1.02 dev team
NPC: Matthias
Quest: Hidden Inside the Trash Can
*/

View File

@@ -76,7 +76,7 @@ function end(mode, type, selection) {
} else if (status == 5) {
qm.sendYesNo("Now do you understand? Every action comes with consequences, and pets are no exception. The egg of the snail shall hatch soon.");
} else if (status == 6) {
qm.gainItem(5000054, 1, false, true, 5 * 60 * 60 * 1000); // rune snail (5hrs)
qm.gainItem(5000054, 1, false, true, 5 * 60 * 60 * 1000); // rune snail (5hrs), missing expiration time detected thanks to cljnilsson
qm.gainItem(4032086, -1); // Mysterious Egg * -1
qm.forceCompleteQuest();

View File

@@ -4,62 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
} else if(status == 3){
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
qm.forceStartQuest();
return;
}
}
}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,60 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

View File

@@ -4,61 +4,101 @@
Description: Quest - Kingdom of Mushroom in Danger
=============================================================
Version 1.0 - Script Done.(17/7/2010)
Version 2.0 - Script Reworked by Ronan.(16/11/2018)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else {
//if(status == 0){
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
return;
//} else if(status == 3){
//qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
//qm.forceStartQuest();
//return;
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
if (status != 3) {
qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me.");
qm.dispose();
} else {
if (qm.canHold(4032375, 1)) {
qm.sendNext("Okay. In that case, I'll just give you the routes to the Kingdom of Mushroom. #bNear the west entrance of Henesys,#k you'll find an #bempty house#k. Enter the house, and turn left to enter#b<Themed Dungeon : Mushroom Castle>#k. That's the entrance to the Kingdom of Mushroom. There's not much time!");
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
qm.dispose();
}
}
status++;
} else {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
} else if (status == 1) {
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
} else if (status == 2) {
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
} else if (status == 3) {
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
} else if (status == 4) {
if (qm.canHold(4032375, 1)) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.warp(106020000, 0);
qm.forceStartQuest();
} else {
qm.sendOk("Please have a slot available in your Etc inventory.");
}
qm.dispose();
return;
} else if (status == 5) {
if (!qm.haveItem(4032375, 1)) {
qm.gainItem(4032375, 1);
}
qm.forceStartQuest();
qm.dispose();
return;
}
}
//}
if(status == 0)
qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?");
if(status == 1)
qm.sendNext("What happened is that the #bKingdom of Mushroom#k is currently in disarray. Kingdom of Mushroom is located near Henesys, featuring the peace-loving, intelligent King Mush. Recently, he began to feel ill, so he decided to appoint his only daughter #bPrincess Violetta#k. Something must have happened since then for the kingdom to be in its current state.");
if(status == 2)
qm.sendNext("I am not aware of the exact details, but it's obvious something terrible had taken place, so I think it'll be better if you go there and assess the damage yourself. An explorer like you seem more than capable of saving Kingdom of Mushroom. I have just written you a #brecommendation letter#k, so I suggest you head over to Kingdom of Mushroom immediately and look for the #bHead Patrol Officer#k.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v4032375# #t4032375#");
if(status == 3)
qm.sendYesNo("By the way, do you know where Kingdom of Mushroom is located? It'll be okay if you can find your way there, but if you don't mind, I can take you straight to the entrance.");
if(status == 4){
qm.gainItem(4032375, 1);
qm.forceStartQuest();
qm.dispose();
}
}
}
function end(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.dispose();
return;
}
}
if(status == 0)
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
if(status == 1)
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
if(status == 2){
qm.forceCompleteQuest();
qm.gainItem(4032375, -1);
qm.forceStartQuest(2312);
qm.dispose();
}
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (!qm.haveItem(4032375, 1)) {
qm.sendNext("What do you want, hmmm?");
qm.dispose();
return;
}
qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?");
} else if (status == 1) {
qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom.");
} else if (status == 2) {
qm.gainItem(4032375, -1);
qm.gainExp(6000);
qm.forceCompleteQuest();
qm.forceStartQuest(2312);
qm.dispose();
}
}
}

57
scripts/quest/6410.js Normal file
View File

@@ -0,0 +1,57 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2018 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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/>.
*/
/*
Hypnotize skill quest
*/
var status = -1;
function end(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
if(mode == 0 && type > 0) {
qm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
if (qm.getQuestProgress(6410, 0) == 0) {
qm.sendOk("You must save #r#p2095000##k first!");
qm.dispose();
} else {
qm.sendNext("Again, thank you so much for rescuing me. I don't know how to repay you for all this... both Shulynch and you are the nicest people I have encountered. If you approach the mobs the same way you approached me, they may all end up becoming friends with you, as well. Please never lose the kindness you have in you.");
}
} else if (status == 1) {
qm.sendNext("(Friends with the mobs... never lose the kindness.)\r\n\r\n #s5221009# #b#q5221009##k");
} else if (status == 2) {
qm.gainExp(1200000);
qm.teachSkill(5221009, 0, 10, -1);
qm.forceCompleteQuest();
qm.dispose();
}
}
}