Reformat and clean up quest scripts
This commit is contained in:
@@ -35,13 +35,13 @@ function raiseOpen() {
|
||||
for (var i = initLevel; i < chr.getLevel(); i++) {
|
||||
diffExp += ExpTable.getExpNeededForLevel(i);
|
||||
}
|
||||
|
||||
|
||||
if (diffExp > 0) { // thanks IxianMace for noticing Mimiana egg not following progress by EXP
|
||||
const ItemInformationProvider = Java.type('server.ItemInformationProvider');
|
||||
var consItem = ItemInformationProvider.getInstance().getQuestConsumablesInfo(4220137);
|
||||
var exp = consItem.exp;
|
||||
var grade = consItem.grade;
|
||||
|
||||
|
||||
qm.setQuestProgress(20514, 0, Math.min(diffExp, exp * grade));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user