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

@@ -5,8 +5,6 @@
---------------------------------------------------------------------------------------------------
**/
importPackage(Packages.constants.game);
var status = 0;
var party;
@@ -36,10 +34,12 @@ function action(mode, type, selection) {
status++;
else
status--;
if (status == 0) {
if (cm.getParty().getMembers().size() == party.size()) {
cm.getPlayer().setChallenged(true);
const GameConstants = Java.type('constants.game.GameConstants');
var snd = "";
for (var i = 0; i < party.size(); i++)
snd += "#bName: " + party.get(i).getName() + " / (Level: " + party.get(i).getLevel() + ") / " + GameConstants.getJobName(party.get(i).getJobId()) + "#k\r\n\r\n";