Experience-Script
With the Experience-Script exp.js
it's possible to customize when a pet will level up. As you can see at the file ending, the used language is JavaScript.
Installation
Download Rhino, rename the jar to
rhino.jar
and put the file into the MyPet folder.Set
LevelSystem.CalculationMode
toJavaScript
int theconfig.yml
.Edit the
exp.js
to your likings.
Script
To make a fully functional exp-script that can be used by MyPet you have to implement the following method:
exp.js
Differentiating between pet types and world groups
Examples:
exp.js
Debugging
To provide an easy method to debug your scripts the plugin adds a print method to the usable JavaScript functions.
Example
exp.js
Last updated