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 @@
* @Author Ronan
* Player NPC Ranking System */
importPackage(Packages.constants.game);
var status;
function start() {
@@ -47,6 +45,7 @@ function action(mode, type, selection) {
var pnpc = cm.getPlayerNPCByScriptid(cm.getNpc());
if(pnpc != null) {
const GameConstants = Java.type('constants.game.GameConstants');
var branchJobName = GameConstants.getJobName(pnpc.getJob());
var rankStr = "Hi, I am #b" + pnpc.getName() + "#k, #r" + GameConstants.ordinal(pnpc.getWorldJobRank()) + "#k in the #r" + branchJobName + "#k class to reach the max level and obtain a statue on " + GameConstants.WORLD_NAMES[cm.getPlayer().getWorld()] + ".\r\n";