sweetgum83/scripts/quest/29924.js
2024-01-19 03:56:28 -05:00

45 lines
1.2 KiB
JavaScript

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();
}