source
Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
23
scripts/map/onUserEnter/108010201.js
Normal file
23
scripts/map/onUserEnter/108010201.js
Normal file
@@ -0,0 +1,23 @@
|
||||
importPackage(Packages.server.life);
|
||||
|
||||
function start(ms) {
|
||||
if(ms.getMapId() == 108010101) { // Archer
|
||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||
} else if(ms.getMapId() == 108010301) { // Warrior
|
||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||
} else if(ms.getMapId() == 108010201) { // Mage
|
||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||
} else if(ms.getMapId() == 108010401) { // Thief
|
||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||
} else if(ms.getMapId() == 108010501) { // Pirate
|
||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMob(x, y, id, map) {
|
||||
if(map.getMonsterById(id) != null)
|
||||
return;
|
||||
|
||||
var mob = MapleLifeFactory.getMonster(id);
|
||||
map.spawnMonsterOnGroudBelow(mob, new java.awt.Point(x, y));
|
||||
}
|
||||
Reference in New Issue
Block a user