Reformat and clean up npc scripts
This commit is contained in:
@@ -4,21 +4,21 @@ var status = -1;
|
||||
var inHuntingGround;
|
||||
|
||||
function start(mode, type, selection) {
|
||||
inHuntingGround = (cm.getMapId() >= 677000010 && cm.getMapId() <= 677000012);
|
||||
action(1, 0, 0);
|
||||
inHuntingGround = (cm.getMapId() >= 677000010 && cm.getMapId() <= 677000012);
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
status++;
|
||||
} else {
|
||||
cm.dispose();
|
||||
return;
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (status == 0) {
|
||||
if(!inHuntingGround) {
|
||||
if (!inHuntingGround) {
|
||||
if (cm.isQuestStarted(quest)) {
|
||||
if(!cm.getPlayer().haveItemEquipped(1003036)) {
|
||||
if (!cm.getPlayer().haveItemEquipped(1003036)) {
|
||||
cm.sendOk("The path ahead has a weird stench... Equip the #rgas mask#k before entering.");
|
||||
cm.dispose();
|
||||
return;
|
||||
@@ -30,7 +30,7 @@ function action(mode, type, selection) {
|
||||
cm.dispose();
|
||||
}
|
||||
} else {
|
||||
if(cm.getMapId() == 677000011) {
|
||||
if (cm.getMapId() == 677000011) {
|
||||
map = 677000012;
|
||||
cm.sendYesNo("Would you like to move to #b#m" + map + "##k?");
|
||||
} else {
|
||||
@@ -40,6 +40,6 @@ function action(mode, type, selection) {
|
||||
}
|
||||
} else {
|
||||
cm.warp(map, 0);
|
||||
cm.dispose();
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user