Add NPC handling for quest 3322
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
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/>.
|
||||
*/
|
||||
// NPC - Picture frame
|
||||
// Location: Magatia - Home of the Missing Alchemist
|
||||
// Used to handle quest 3322 - Phyllia's Pendant
|
||||
|
||||
var status;
|
||||
|
||||
@@ -39,22 +42,24 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
}
|
||||
|
||||
if (!cm.isQuestStarted(3322) || cm.haveItem(4031697, 1)) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
if (cm.isQuestStarted(3311)) {
|
||||
var progress = cm.getQuestProgressInt(3311);
|
||||
|
||||
if (progress == 4) {
|
||||
progress = 7;
|
||||
} else {
|
||||
progress = 5;
|
||||
}
|
||||
|
||||
cm.setQuestProgress(3311, progress);
|
||||
|
||||
cm.sendOk("This is a mug picture of Dr. De Lang. It seems he is adorning a locket with the emblem of the Alcadno academy, he is a retainer of the Alcadno society.", 2);
|
||||
cm.sendOk("The hook behind the frame was unhooked, revealing a secret space within the frame. There inside, a silver pendant was found. After carefully removing the pendant, the frame was closed and placed back onto the table.");
|
||||
}
|
||||
else if (status == 1) {
|
||||
if (cm.canHold(4031697, 1)) {
|
||||
cm.gainItem(4031697);
|
||||
}
|
||||
|
||||
else {
|
||||
cm.sendNext("Your inventory is full, please make sure you have an ETC slot available.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user