sweetgum83/scripts/map/onUserEnter/677000012.js

17 lines
472 B
JavaScript
Raw Permalink Normal View History

2024-01-19 08:56:28 +00:00
function start(ms) {
const Point = Java.type('java.awt.Point');
var pos = new Point(842, 0);
var mobId = 9400633;
var mobName = "Astaroth";
var player = ms.getPlayer();
var map = player.getMap();
if (map.getMonsterById(mobId) != null) {
return;
}
const LifeFactory = Java.type('server.life.LifeFactory');
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
player.message(mobName + " has appeared!");
}