Reformat and clean up quest scripts
This commit is contained in:
@@ -4,25 +4,22 @@ function end(mode, type, selection) {
|
||||
status++;
|
||||
if (mode != 1) {
|
||||
qm.dispose();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (status == 0) {
|
||||
qm.sendNext("Take these #bMana Elixir Pills#k as a token of my gratitude.");
|
||||
}
|
||||
else if (status == 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
qm.gainItem(4000099, -1);
|
||||
qm.gainItem(2000011, 50);
|
||||
qm.gainExp(8000);
|
||||
qm.forceCompleteQuest();
|
||||
qm.dispose();
|
||||
}
|
||||
else {
|
||||
qm.sendNext("Hm? It looks like your inventory is full.");
|
||||
}
|
||||
} else if (status == 2) {
|
||||
} else if (status == 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
qm.gainItem(4000099, -1);
|
||||
qm.gainItem(2000011, 50);
|
||||
qm.gainExp(8000);
|
||||
qm.forceCompleteQuest();
|
||||
qm.dispose();
|
||||
} else {
|
||||
qm.sendNext("Hm? It looks like your inventory is full.");
|
||||
}
|
||||
} else if (status == 2) {
|
||||
qm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user