Reformat and clean up item scripts
This commit is contained in:
@@ -33,16 +33,19 @@ function action(mode, type, selection) {
|
||||
im.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
if (im.getMapId() == 106020300) {
|
||||
var portal = im.getMap().getPortal("obstacle");
|
||||
if (portal != null && portal.getPosition().distance(im.getPlayer().getPosition()) < 210) {
|
||||
if(!(im.isQuestStarted(100202) || im.isQuestCompleted(100202))) im.startQuest(100202);
|
||||
if (!(im.isQuestStarted(100202) || im.isQuestCompleted(100202))) {
|
||||
im.startQuest(100202);
|
||||
}
|
||||
im.removeAll(2430014);
|
||||
|
||||
im.message("You have used the Killer Mushroom Spore to open the way.");
|
||||
|
||||
@@ -33,10 +33,11 @@ function action(mode, type, selection) {
|
||||
im.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
}
|
||||
|
||||
if (status == 0) {
|
||||
if (im.getMapId() == 106020400 && im.isQuestActive(2324)) {
|
||||
|
||||
Reference in New Issue
Block a user