Convert NPC scripts to Graal

This commit is contained in:
P0nk
2021-04-17 21:02:39 +02:00
parent 256e5688e0
commit d2c7023e7b
54 changed files with 127 additions and 168 deletions

View File

@@ -18,8 +18,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
importPackage(Packages.server.life);
var npcid = 1104100;
var baseJob = 11;
var status;
@@ -64,7 +62,9 @@ function action(mode, type, selection) {
function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null)
return;
const MapleLifeFactory = Java.type('server.life.MapleLifeFactory');
const Point = Java.type('java.awt.Point');
var mob = MapleLifeFactory.getMonster(id);
map.spawnMonsterOnGroundBelow(mob, new java.awt.Point(x, y));
map.spawnMonsterOnGroundBelow(mob, new Point(x, y));
}