Reformat and clean up map scripts
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
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();
|
||||
const Point = Java.type('java.awt.Point');
|
||||
var pos = new Point(842, 0);
|
||||
var mobId = 9400633;
|
||||
var mobName = "Astaroth";
|
||||
|
||||
if(map.getMonsterById(mobId) != null){
|
||||
return;
|
||||
}
|
||||
var player = ms.getPlayer();
|
||||
var map = player.getMap();
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
if (map.getMonsterById(mobId) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(mobId), pos);
|
||||
player.message(mobName + " has appeared!");
|
||||
}
|
||||
Reference in New Issue
Block a user