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

@@ -2,13 +2,13 @@
var mapId = 200090010;
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
if(map.getDocked()) {
const PacketCreator = Java.type('tools.PacketCreator');
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
}
if (map.getDocked()) {
const PacketCreator = Java.type('tools.PacketCreator');
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
}
return true;
return true;
}