Reformat and clean up quest scripts
This commit is contained in:
@@ -27,28 +27,29 @@
|
||||
var status = -1;
|
||||
|
||||
function start(mode, type, selection) {
|
||||
qm.dispose();
|
||||
qm.dispose();
|
||||
}
|
||||
|
||||
function end(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
if(qm.haveItem(5460000)) {
|
||||
qm.completeQuest();
|
||||
qm.teachSkill(8, 1, 1, -1);
|
||||
qm.gainItem(5460000, -1, false);
|
||||
qm.sendOk("You got the Pet Snack! Thanks! You can use these to feed multiple pets at once!");
|
||||
} else {
|
||||
qm.sendOk("Get me the Pet Snack! It can be found in a very big shop....");
|
||||
}
|
||||
} else if (status == 1) {
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
if (mode == -1) {
|
||||
qm.dispose();
|
||||
} else {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
} else {
|
||||
status--;
|
||||
}
|
||||
if (status == 0) {
|
||||
if (qm.haveItem(5460000)) {
|
||||
qm.completeQuest();
|
||||
qm.teachSkill(8, 1, 1, -1);
|
||||
qm.gainItem(5460000, -1, false);
|
||||
qm.sendOk("You got the Pet Snack! Thanks! You can use these to feed multiple pets at once!");
|
||||
} else {
|
||||
qm.sendOk("Get me the Pet Snack! It can be found in a very big shop....");
|
||||
}
|
||||
} else if (status == 1) {
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user