
Originally Posted by
XxОsirisxX
Looks like a lame NPC. However, you should really use the canHold, no one ever uses it there days.
Yeah, should be:
Code:
var status = -1;
function start(mode, type, selection) {
if (mode == -1) {
qm.dispose();
} else {
if (mode > 0)
status++;
else
qm.dispose();
if (status == 0)
qm.sendAcceptDecline("Hello, #h0#. Welcome to Maple World. It's currently event season, and we're welcome new characters with a gift. Would you like your gift now?");
else if (status == 1) {
if (qm.canHold(2430191)) {
qm.gainItem(2430191, 1);
qm.forceStartQuest();
qm.forceCompleteQuest();
qm.sendOk("Open your inventory and double-click on it! These gifts will make you look stylish. Oh, one more thing! You'll get another gift at level 30. Good luck!");
qm.dispose();
} else {
qm.playerMessage("Please make sure you have room in your Use tab in your inventory.");
qm.dispose();
}
}
}
}
and:
Code:
function start(is) {
if (is.canHold(1003192) && is.canHold(1040154) && is.canHold(1060145) && is.canHold(5130003) && is.canHold(5450003) && is.canHold(1142263)) {
is.gainItem(1003192);
is.gainItem(1040154);
is.gainItem(1060145);
is.gainItem(5130003);
is.gainItem(5450003);
is.gainItem(1142263);
is.gainItem(2430191, -1);
} else {
is.playerMessage("Please make sure you have room in your Eqp tab in your inventory.");
}
}