Reformat and clean up npc scripts
This commit is contained in:
@@ -20,15 +20,15 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
Xinga - Pilot
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Information
|
||||
2.0 - Second Version by Jayd
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
Xinga - Pilot
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Information
|
||||
2.0 - Second Version by Jayd
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
var status = 0;
|
||||
|
||||
@@ -38,16 +38,17 @@ function start() {
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode != 1) {
|
||||
if (mode == 0)
|
||||
if (mode == 0) {
|
||||
cm.sendOk("Please hold on for a sec, and plane will be taking off. Thanks for your patience.");
|
||||
}
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
status++;
|
||||
if (status == 1) {
|
||||
cm.sendNext("The ticket is not refundable, hope to see you again!");
|
||||
} else if(status == 2){
|
||||
cm.warp(103000000);
|
||||
cm.dispose();
|
||||
} else if (status == 2) {
|
||||
cm.warp(103000000);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user