sweetgum83/scripts/map/onUserEnter/pepeking_effect.js

9 lines
346 B
JavaScript
Raw Normal View History

2024-01-19 08:56:28 +00:00
function start(ms) {
var mobId = 3300000 + (Math.floor(Math.random() * 3) + 5);
var player = ms.getPlayer();
var map = player.getMap();
const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point');
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), new Point(-28, -67));
}