Convert map scripts to Graal

This commit is contained in:
P0nk
2021-04-17 19:53:15 +02:00
parent 3458d1c7b3
commit 938f7c9390
17 changed files with 75 additions and 77 deletions

View File

@@ -1,15 +1,14 @@
// Author: Ronan
importPackage(Packages.tools);
var mapId = 200090000;
function start(ms) {
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
if(map.getDocked()) {
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
ms.getClient().announce(MaplePacketCreator.musicChange("Bgm04/ArabPirate"));
ms.getClient().announce(MaplePacketCreator.crogBoatPacket(true));
}
return(true);
return true;
}