Convert NPC scripts to Graal

This commit is contained in:
P0nk
2021-04-17 21:02:39 +02:00
parent 256e5688e0
commit d2c7023e7b
54 changed files with 127 additions and 168 deletions

View File

@@ -21,8 +21,6 @@
Hidden Street - Elizas Garden (200010303)
*/
importPackage(Packages.tools);
var status;
var harpNote = 'B';
var harpSounds = ["do", "re", "mi", "pa", "sol", "la", "si"]; // musical order detected thanks to Arufonsu
@@ -47,6 +45,7 @@ function action(mode, type, selection) {
status--;
if(status == 0) {
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
cm.getMap().broadcastMessage(MaplePacketCreator.playSound("orbis/" + harpSounds[cm.getNpc() - 2012027]));
if(cm.isQuestStarted(3114)) {