Convert NPC scripts to Graal
This commit is contained in:
@@ -23,15 +23,13 @@
|
||||
*@author Alan (SharpAceX)
|
||||
*@author Ronan
|
||||
*/
|
||||
importPackage(Packages.server.expeditions);
|
||||
importPackage(Packages.tools);
|
||||
importPackage(Packages.scripting.event);
|
||||
|
||||
var status = 0;
|
||||
var expedition;
|
||||
var expedMembers;
|
||||
var player;
|
||||
var em;
|
||||
const MapleExpeditionType = Java.type('server.expeditions.MapleExpeditionType');
|
||||
var cwkpq = MapleExpeditionType.CWKPQ;
|
||||
var list = "What would you like to do?#b\r\n\r\n#L1#View current Expedition members#l\r\n#L2#Start the fight!#l\r\n#L3#Stop the expedition.#l";
|
||||
|
||||
@@ -143,6 +141,7 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("The expedition will begin and you will now be escorted to the #bEntrance to CWKPQ Altar#k.");
|
||||
status = 4;
|
||||
} else if (selection == 3) {
|
||||
const MaplePacketCreator = Java.type('tools.MaplePacketCreator');
|
||||
player.getMap().broadcastMessage(MaplePacketCreator.serverNotice(6, expedition.getLeader().getName() + " has ended the expedition."));
|
||||
cm.endExpedition(expedition);
|
||||
cm.sendOk("The expedition has now ended. Sometimes the best strategy is to run away.");
|
||||
|
||||
Reference in New Issue
Block a user