Hey everyone, I got this idea from DMS (the idea only). I decided to make a command that stuns everyone on the map and makes them unable to move. This will not affect Game Masters.
Side Note: Tested, works.
Code:
} else if (splitted[0].equals("!pause") || splitted[0].equals("!unpause")) {
for (MapleCharacter chr : c.getPlayer().getMap().getCharacters()) {
if (splitted[0].equals("!pause")) {
if (chr.isGM()) {
} else {
MobSkill ms = new MobSkill(123, 1);
ms.setDuration((long) Double.POSITIVE_INFINITY);
chr.giveDebuff(MapleDisease.STUN, ms);
}
} else {
if (chr.isGM()) {
} else
chr.removeDisease(MapleDisease.STUN);
}
mc.dropMessage("Done.");
}
Side Note: Tested, works.
Last edited:

