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

@@ -20,15 +20,15 @@
*/
/**
-- Odin JavaScript --------------------------------------------------------------------------------
Neru - Ludibrium : Ludibrium Pet Walkway (220000006)
-- By ---------------------------------------------------------------------------------------------
Xterminator
-- Version Info -----------------------------------------------------------------------------------
1.1 - Second Version by Moogra
1.0 - First Version by Xterminator
---------------------------------------------------------------------------------------------------
**/
-- Odin JavaScript --------------------------------------------------------------------------------
Neru - Ludibrium : Ludibrium Pet Walkway (220000006)
-- By ---------------------------------------------------------------------------------------------
Xterminator
-- Version Info -----------------------------------------------------------------------------------
1.1 - Second Version by Moogra
1.0 - First Version by Xterminator
---------------------------------------------------------------------------------------------------
**/
function start() {
if (cm.haveItem(4031128)) {
@@ -41,9 +41,9 @@ function start() {
function action(mode, type, selection) {
if (mode < 1) {
} else if (cm.getPlayer().getNoPets() == 0)
} else if (cm.getPlayer().getNoPets() == 0) {
cm.sendNextPrev("Hmmm ... did you really get here with your pet? These obstacles are for pets. What are you here for without it?? Get outta here!");
else {
} else {
cm.gainItem(4031128, -1);
cm.gainCloseness(4);
cm.sendNextPrev("What do you think? Don't you think you have gotten much closer with your pet? If you have time, train your pet again on this obstacle course...of course, with my brother's permission.");