Convert NPC scripts to Graal
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user