sweetgum83/scripts/quest/29924.js

45 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-01-19 08:56:28 +00:00
var status = -1;
function start(mode, type, selection) {
if (qm.getPlayer().getLevel() >= 10 && ((qm.getPlayer().getJob().getId() / 100) | 0) == 21) {
if (!qm.haveItem(1142129)) {
if (qm.canHold(1142129)) {
qm.gainItem(1142129, 1);
} else {
qm.dispose();
return;
}
}
var medalname = qm.getMedalName();
qm.message("<" + medalname + "> has been awarded.");
qm.earnTitle("<" + medalname + "> has been awarded.");
qm.forceStartQuest();
qm.forceCompleteQuest();
}
qm.dispose();
}
function end(mode, type, selection) {
if (qm.getPlayer().getLevel() >= 10 && ((qm.getPlayer().getJob().getId() / 100) | 0) == 21) {
if (!qm.haveItem(1142129)) {
if (qm.canHold(1142129)) {
qm.gainItem(1142129, 1);
} else {
qm.dispose();
return;
}
}
var medalname = qm.getMedalName();
qm.message("<" + medalname + "> has been awarded.");
qm.earnTitle("<" + medalname + "> has been awarded.");
qm.forceStartQuest();
qm.forceCompleteQuest();
}
qm.dispose();
}