Reformat and clean up npc scripts
This commit is contained in:
@@ -28,30 +28,31 @@ var status = 0;
|
||||
var map = 221024400;
|
||||
|
||||
function start() {
|
||||
if (cm.haveItem(4001020))
|
||||
if (cm.haveItem(4001020)) {
|
||||
cm.sendSimple("You can use #bEos Rock Scroll#k to activate #bSecond Eos Rock#k. Which of these rocks would you like to teleport to?#b\r\n#L0#First Eos Rock (100th Floor)#l\r\n#L1#Third Eos Rock (41st Floor)#l");
|
||||
else {
|
||||
} else {
|
||||
cm.sendOk("There's a rock that will enable you to teleport to #bFirst Eos Rock or Third Eos Rock#k, but it cannot be activated without the scroll.");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1)
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
else {
|
||||
} else {
|
||||
if (status >= 0 && mode == 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
if (mode == 1) {
|
||||
status++;
|
||||
else
|
||||
} else {
|
||||
status--;
|
||||
}
|
||||
if (status == 1) {
|
||||
if (selection == 0)
|
||||
if (selection == 0) {
|
||||
cm.sendYesNo("You can use #bEos Rock Scroll#k to activate #bSecond Eos Rock#k. Will you teleport to #bFirst Eos Rock#k at the 100th Floor?");
|
||||
else {
|
||||
} else {
|
||||
cm.sendYesNo("You can use #bEos Rock Scroll#k to activate #bSecond Eos Rock#k. Will you teleport to #bThird Eos Rock#k at the 41st Floor?");
|
||||
map = 221021700;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user