Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] !hitall <damage>

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

} 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);
}
 
Mother effin' clouds
Loyal Member
Joined
Apr 13, 2008
Messages
1,534
Reaction score
448
now this is a definite must add feature :O
 
Master Summoner
Loyal Member
Joined
May 5, 2008
Messages
532
Reaction score
0
nejevoli what happen if a person level 1 do !hitall 10000? It function or not?
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Just wondering, let's say if you type !hitall 1333337, will the monster die or just display the damage only?
 
Master Summoner
Loyal Member
Joined
May 5, 2008
Messages
532
Reaction score
0
It will hit all the monsters in the MAP 13333337 well I think.
 
Skilled Illusionist
Joined
Apr 17, 2008
Messages
316
Reaction score
1
Code:
            } 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);
            }
I fixed it up a little but get these errors:
Code:
init:
deps-jar:
Compiling 308 source files to C:\Documents and Settings\Mgssidley\Desktop\MoograMS rev1.9.3\MoograMS Source\build\classes
C:\Documents and Settings\Mgssidley\Desktop\MoograMS rev1.9.3\MoograMS Source\src\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:14: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
import com.sun.imageio.plugins.png.PNGImageReaderSpi;
C:\Documents and Settings\Mgssidley\Desktop\MoograMS rev1.9.3\MoograMS Source\src\src\net\sf\odinms\client\messages\CommandProcessor.java:2108: cannot find symbol
symbol  : method spawnedMonstersOnMap()
location: class net.sf.odinms.server.maps.MapleMap
            for (MapleMonster monster : map.spawnedMonstersOnMap()) {
C:\Documents and Settings\Mgssidley\Desktop\MoograMS rev1.9.3\MoograMS Source\src\src\net\sf\odinms\provider\xmlwz\FileStoredPngMapleCanvas.java:47: warning: com.sun.imageio.plugins.png.PNGImageReaderSpi is Sun proprietary API and may be removed in a future release
                        ImageReaderSpi readerSpi = iioRegistry.getServiceProviderByClass(PNGImageReaderSpi.class);
                                                                                         ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
2 warnings
BUILD FAILED (total time: 15 seconds)
 
Back
Top