Experienced Elementalist
- Joined
- May 19, 2008
- Messages
- 281
- Reaction score
- 0
another release again, add this in your commandprocessor.
how does this work? try doing this in game
!hitall 123131 , it will damage all mobs with the damage you entered in bold
how does this work? try doing this in game
!hitall 123131 , it will damage all mobs with the damage you entered in bold
} else if (splitted[0].equals("!hitall")) {
MapleMap map = player.getMap();
int damage = Integer.parseInt(splitted[1]);
for (MapleMonster monster : map.spawnedMonstersOnMap()) {
map.broadcastMessage(MaplePacketCreator.damageMonster(monster.getObjectId(), damage));
map.damageMonster(player, monster, damage);
}