Reformat and clean up npc scripts

This commit is contained in:
P0nk
2021-09-09 23:35:02 +02:00
parent 0c1545f81d
commit d893309b4f
665 changed files with 19932 additions and 19046 deletions

View File

@@ -21,16 +21,16 @@
*/
/**
-- Odin JavaScript --------------------------------------------------------------------------------
Hikari - Showa Town(801000000)
-- By ---------------------------------------------------------------------------------------------
Information
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Information
2.0 - Second Version by Moogra
2.1 - Code revamped by Moogra
---------------------------------------------------------------------------------------------------
**/
-- Odin JavaScript --------------------------------------------------------------------------------
Hikari - Showa Town(801000000)
-- By ---------------------------------------------------------------------------------------------
Information
-- Version Info -----------------------------------------------------------------------------------
1.0 - First Version by Information
2.0 - Second Version by Moogra
2.1 - Code revamped by Moogra
---------------------------------------------------------------------------------------------------
**/
var price = 300;
@@ -40,14 +40,15 @@ function start() {
function action(mode, type, selection) {
if (mode < 1) {
if (mode == 0)
if (mode == 0) {
cm.sendOk("Please come back some other time.");
}
cm.dispose();
return;
}
if (cm.getMeso < price)
if (cm.getMeso < price) {
cm.sendOk("Please check and see if you have " + price + " mesos to enter this place.");
else {
} else {
cm.gainMeso(-price);
cm.warp(801000100 + 100 * cm.getPlayer().getGender(), "out00");
}