Reformat and clean up map scripts

This commit is contained in:
P0nk
2021-09-09 23:32:43 +02:00
parent f76b9954a7
commit 0c1545f81d
87 changed files with 473 additions and 466 deletions

View File

@@ -28,10 +28,10 @@ var messages = Array("Your courage for challenging the Mu Lung Dojo is commendab
function start(ms) {
if (ms.getPlayer().getMap().getId() == 925020000) {
if(ms.getPlayer().getMap().findClosestPlayerSpawnpoint(ms.getPlayer().getPosition()).getId() == 0) {
if (ms.getPlayer().getMap().findClosestPlayerSpawnpoint(ms.getPlayer().getPosition()).getId() == 0) {
ms.getPlayer().startMapEffect(messages[(Math.random() * messages.length) | 0], 5120024);
}
ms.resetDojoEnergy();
} else {
ms.getPlayer().resetEnteredScript(); //in case the person dcs in here we set it at dojang_tuto portal