Reformat and clean up npc scripts
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
VIP Cab - Victoria Road : Lith Harbor (104000000)
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Xterminator
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Xterminator
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
VIP Cab - Victoria Road : Lith Harbor (104000000)
|
||||
-- By ---------------------------------------------------------------------------------------------
|
||||
Xterminator
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Xterminator
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
var status = 0;
|
||||
var cost = 10000;
|
||||
@@ -38,21 +38,21 @@ function start() {
|
||||
|
||||
function action(mode, type, selection) {
|
||||
status++;
|
||||
if (mode == -1){
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
return;
|
||||
} else if (mode == 0) {
|
||||
cm.sendOk("This town also has a lot to offer. Find us if and when you feel the need to go to the Ant Tunnel Park.");
|
||||
cm.dispose();
|
||||
return;
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (status == 1) {
|
||||
cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?");
|
||||
cost /= ((cm.getJobId() == 0) ? 10 : 1);
|
||||
} else if (status == 2) {
|
||||
if (cm.getMeso() < cost)
|
||||
if (cm.getMeso() < cost) {
|
||||
cm.sendNext("It looks like you don't have enough mesos. Sorry but you won't be able to use this without it.")
|
||||
else {
|
||||
} else {
|
||||
cm.gainMeso(-cost);
|
||||
cm.warp(105070001);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user