Reformat and clean up map scripts
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
You should have received a copy of the GNU Affero General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*@Author: Moogra, Traitor, Ronan
|
*@Author: Moogra, Traitor, Ronan
|
||||||
*@Map(s): All Dojo fighting maps
|
*@Map(s): All Dojo fighting maps
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
function start(ms){
|
function start(ms) {
|
||||||
|
|
||||||
if(ms.getQuestStatus(2175) == 1){
|
if (ms.getQuestStatus(2175) == 1) {
|
||||||
var mobId = 9300156;
|
var mobId = 9300156;
|
||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
if(ms.getMapId() == 108010101) { // Archer
|
if (ms.getMapId() == 108010101) { // Archer
|
||||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010301) { // Warrior
|
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010201) { // Mage
|
} else if (ms.getMapId() == 108010201) { // Mage
|
||||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010401) { // Thief
|
} else if (ms.getMapId() == 108010401) { // Thief
|
||||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010501) { // Pirate
|
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnMob(x, y, id, map) {
|
function spawnMob(x, y, id, map) {
|
||||||
if(map.getMonsterById(id) != null)
|
if (map.getMonsterById(id) != null) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
if(ms.getMapId() == 108010101) { // Archer
|
if (ms.getMapId() == 108010101) { // Archer
|
||||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010301) { // Warrior
|
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010201) { // Mage
|
} else if (ms.getMapId() == 108010201) { // Mage
|
||||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010401) { // Thief
|
} else if (ms.getMapId() == 108010401) { // Thief
|
||||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010501) { // Pirate
|
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnMob(x, y, id, map) {
|
function spawnMob(x, y, id, map) {
|
||||||
if(map.getMonsterById(id) != null)
|
if (map.getMonsterById(id) != null) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
if(ms.getMapId() == 108010101) { // Archer
|
if (ms.getMapId() == 108010101) { // Archer
|
||||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010301) { // Warrior
|
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010201) { // Mage
|
} else if (ms.getMapId() == 108010201) { // Mage
|
||||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010401) { // Thief
|
} else if (ms.getMapId() == 108010401) { // Thief
|
||||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010501) { // Pirate
|
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnMob(x, y, id, map) {
|
function spawnMob(x, y, id, map) {
|
||||||
if(map.getMonsterById(id) != null)
|
if (map.getMonsterById(id) != null) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
if(ms.getMapId() == 108010101) { // Archer
|
if (ms.getMapId() == 108010101) { // Archer
|
||||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010301) { // Warrior
|
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010201) { // Mage
|
} else if (ms.getMapId() == 108010201) { // Mage
|
||||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010401) { // Thief
|
} else if (ms.getMapId() == 108010401) { // Thief
|
||||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010501) { // Pirate
|
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnMob(x, y, id, map) {
|
function spawnMob(x, y, id, map) {
|
||||||
if(map.getMonsterById(id) != null)
|
if (map.getMonsterById(id) != null) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
if(ms.getMapId() == 108010101) { // Archer
|
if (ms.getMapId() == 108010101) { // Archer
|
||||||
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001002, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010301) { // Warrior
|
} else if (ms.getMapId() == 108010301) { // Warrior
|
||||||
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001000, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010201) { // Mage
|
} else if (ms.getMapId() == 108010201) { // Mage
|
||||||
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001001, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010401) { // Thief
|
} else if (ms.getMapId() == 108010401) { // Thief
|
||||||
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001003, ms.getPlayer().getMap());
|
||||||
} else if(ms.getMapId() == 108010501) { // Pirate
|
} else if (ms.getMapId() == 108010501) { // Pirate
|
||||||
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
spawnMob(188, 20, 9001008, ms.getPlayer().getMap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnMob(x, y, id, map) {
|
function spawnMob(x, y, id, map) {
|
||||||
if(map.getMonsterById(id) != null)
|
if (map.getMonsterById(id) != null) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ var spawnPos = new Point(2830, 78);
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var mapobj = ms.getMap();
|
var mapobj = ms.getMap();
|
||||||
|
|
||||||
if(!mapobj.containsNPC(npcid)) {
|
if (!mapobj.containsNPC(npcid)) {
|
||||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ var spawnPos = new Point(3395, -322);
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var mapobj = ms.getMap();
|
var mapobj = ms.getMap();
|
||||||
|
|
||||||
if(!mapobj.containsNPC(npcid)) {
|
if (!mapobj.containsNPC(npcid)) {
|
||||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ var spawnPos = new Point(500, -522);
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var mapobj = ms.getMap();
|
var mapobj = ms.getMap();
|
||||||
|
|
||||||
if(!mapobj.containsNPC(npcid)) {
|
if (!mapobj.containsNPC(npcid)) {
|
||||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ var spawnPos = new Point(-2263, -582);
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var mapobj = ms.getMap();
|
var mapobj = ms.getMap();
|
||||||
|
|
||||||
if(!mapobj.containsNPC(npcid)) {
|
if (!mapobj.containsNPC(npcid)) {
|
||||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ var spawnPos = new Point(372, 70);
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var mapobj = ms.getMap();
|
var mapobj = ms.getMap();
|
||||||
|
|
||||||
if(!mapobj.containsNPC(npcid)) {
|
if (!mapobj.containsNPC(npcid)) {
|
||||||
ms.spawnNpc(npcid, spawnPos, mapobj);
|
ms.spawnNpc(npcid, spawnPos, mapobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ var mapId = 200090000;
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
|
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
|
||||||
|
|
||||||
if(map.getDocked()) {
|
if (map.getDocked()) {
|
||||||
const PacketCreator = Java.type('tools.PacketCreator');
|
const PacketCreator = Java.type('tools.PacketCreator');
|
||||||
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||||
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
|
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ var mapId = 200090010;
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
|
var map = ms.getClient().getChannelServer().getMapFactory().getMap(mapId);
|
||||||
|
|
||||||
if(map.getDocked()) {
|
if (map.getDocked()) {
|
||||||
const PacketCreator = Java.type('tools.PacketCreator');
|
const PacketCreator = Java.type('tools.PacketCreator');
|
||||||
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
ms.getClient().sendPacket(PacketCreator.musicChange("Bgm04/ArabPirate"));
|
||||||
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
|
ms.getClient().sendPacket(PacketCreator.crogBoatPacket(true));
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function start(ms) {
|
|||||||
var em = ms.getClient().getEventManager(eventName);
|
var em = ms.getClient().getEventManager(eventName);
|
||||||
|
|
||||||
//is the player late to start the travel?
|
//is the player late to start the travel?
|
||||||
if(em.getProperty("docked") == "false") {
|
if (em.getProperty("docked") == "false") {
|
||||||
ms.getClient().getPlayer().warpAhead(toMap);
|
ms.getClient().getPlayer().warpAhead(toMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function start(ms) {
|
|||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function start(ms) {
|
|||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function start(ms) {
|
|||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function start(ms) {
|
|||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function start(ms) {
|
|||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function start(ms) {
|
|||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(map.getMonsterById(mobId) != null){
|
if (map.getMonsterById(mobId) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ function start(ms) {
|
|||||||
map.resetReactors();
|
map.resetReactors();
|
||||||
map.shuffleReactors();
|
map.shuffleReactors();
|
||||||
|
|
||||||
return(true);
|
return (true);
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
function start(ms){
|
function start(ms) {
|
||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|
||||||
if(ms.isQuestStarted(21747) && ms.getQuestProgressInt(21747, 9300351) == 0) {
|
if (ms.isQuestStarted(21747) && ms.getQuestProgressInt(21747, 9300351) == 0) {
|
||||||
const LifeFactory = Java.type('server.life.LifeFactory');
|
const LifeFactory = Java.type('server.life.LifeFactory');
|
||||||
const Point = Java.type('java.awt.Point');
|
const Point = Java.type('java.awt.Point');
|
||||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300351), new Point(897, 51));
|
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9300351), new Point(897, 51));
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ function start(ms) {
|
|||||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000000);
|
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000000);
|
||||||
map.resetPQ(1);
|
map.resetPQ(1);
|
||||||
|
|
||||||
if(map.countMonster(9100013) == 0) {
|
if (map.countMonster(9100013) == 0) {
|
||||||
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
|
map.spawnMonsterOnGroundBelow(LifeFactory.getMonster(9100013), new java.awt.Point(82, 200));
|
||||||
}
|
}
|
||||||
|
|
||||||
return(true);
|
return (true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,5 @@
|
|||||||
function start(ms) {
|
function start(ms) {
|
||||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000010);
|
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926000010);
|
||||||
map.resetPQ(1);
|
map.resetPQ(1);
|
||||||
return(true);
|
return (true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function getInactiveReactors(map) {
|
function getInactiveReactors(map) {
|
||||||
var reactors = new Array();
|
var reactors = [];
|
||||||
|
|
||||||
var iter = map.getReactors().iterator();
|
var iter = map.getReactors().iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
@@ -16,5 +16,5 @@ function start(ms) {
|
|||||||
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
|
var map = ms.getClient().getChannelServer().getMapFactory().getMap(926120300);
|
||||||
map.resetReactors(getInactiveReactors(map));
|
map.resetReactors(getInactiveReactors(map));
|
||||||
|
|
||||||
return(true);
|
return (true);
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
You should have received a copy of the GNU Affero General Public License
|
You should have received a copy of the GNU Affero General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*@Author: Moogra, Traitor, Ronan
|
*@Author: Moogra, Traitor, Ronan
|
||||||
*@Map(s): All Dojo fighting maps
|
*@Map(s): All Dojo fighting maps
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ var messages = Array("Your courage for challenging the Mu Lung Dojo is commendab
|
|||||||
|
|
||||||
function start(ms) {
|
function start(ms) {
|
||||||
if (ms.getPlayer().getMap().getId() == 925020000) {
|
if (ms.getPlayer().getMap().getId() == 925020000) {
|
||||||
if(ms.getPlayer().getMap().findClosestPlayerSpawnpoint(ms.getPlayer().getPosition()).getId() == 0) {
|
if (ms.getPlayer().getMap().findClosestPlayerSpawnpoint(ms.getPlayer().getPosition()).getId() == 0) {
|
||||||
ms.getPlayer().startMapEffect(messages[(Math.random() * messages.length) | 0], 5120024);
|
ms.getPlayer().startMapEffect(messages[(Math.random() * messages.length) | 0], 5120024);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
function start(ms){
|
function start(ms) {
|
||||||
var mobId = 3300000 + (Math.floor(Math.random() * 3) + 5);
|
var mobId = 3300000 + (Math.floor(Math.random() * 3) + 5);
|
||||||
var player = ms.getPlayer();
|
var player = ms.getPlayer();
|
||||||
var map = player.getMap();
|
var map = player.getMap();
|
||||||
|
|||||||
Reference in New Issue
Block a user