Convert NPC scripts to Graal
This commit is contained in:
@@ -25,9 +25,6 @@
|
||||
* @Map(s): Dojo Hall
|
||||
*/
|
||||
|
||||
importPackage(Packages.config);
|
||||
importPackage(Packages.constants.game);
|
||||
|
||||
var disabled = false;
|
||||
var belts = Array(1132000, 1132001, 1132002, 1132003, 1132004);
|
||||
var belt_level = Array(25, 35, 45, 60, 75);
|
||||
@@ -44,7 +41,8 @@ function start() {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const YamlConfig = Java.type('config.YamlConfig');
|
||||
belt_points = YamlConfig.config.server.USE_FAST_DOJO_UPGRADE ? Array(10, 90, 200, 460, 850) : Array(200, 1800, 4000, 9200, 17000);
|
||||
|
||||
belt_on_inventory = new Array();
|
||||
@@ -70,6 +68,8 @@ function action(mode, type, selection) {
|
||||
if(status == 0) {
|
||||
if (isRestingSpot(cm.getPlayer().getMap().getId())) {
|
||||
var text = "I'm surprised you made it this far! But it won't be easy from here on out. You still want the challenge?\r\n\r\n#b#L0#I want to continue#l\r\n#L1#I want to leave#l\r\n";
|
||||
|
||||
const GameConstants = Java.type('constants.game.GameConstants');
|
||||
if (!GameConstants.isDojoPartyArea(cm.getPlayer().getMapId())) {
|
||||
text += "#L2#I want to record my score up to this point#l";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user