Convert reactor scripts to Graal
This commit is contained in:
@@ -20,12 +20,11 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
importPackage(Packages.server.life);
|
||||
|
||||
function spawnJrBoss(mobObj) {
|
||||
mobObj.getMap().killMonster(mobObj.getId());
|
||||
var spawnid = mobObj.getId() - 17;
|
||||
|
||||
|
||||
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
|
||||
var mob = MapleLifeFactory.getMonster(spawnid);
|
||||
mobObj.getMap().spawnMonsterOnGroundBelow(mob, mobObj.getPosition());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user