Re: [Release] My Hitall Command
Better to just damage the monster and actually show a packet instead of setting the hp and no visual effect.
Re: [Release] My Hitall Command
Quote:
Originally Posted by
HydroBenZ
PHP Code:
} else if (splitted[0].equals("!hitall")){
int yousuckshit = Integer.parseInt(splitted[1]);
MapleMap map = c.getPlayer().getMap();
double range = Double.POSITIVE_INFINITY;
if (splitted.length > 1) {
int irange = Integer.parseInt(splitted[2]);
range = irange * irange;
}
List<MapleMapObject> monsters = map.getMapObjectsInRange(c.getPlayer().getPosition (), range, Arrays
.asList(MapleMapObjectType.MONSTER));
for(MapleMapObject monstermo : monsters) {
MapleMonster monster = (MapleMonster) monstermo;
monster.setHp(yousuckshit);
}
Please put it into a PHP code or a Code code so that it's easier to look at.
Why would you put it into PHP? This is JAVA
Re: [Release] My Hitall Command
Quote:
Originally Posted by
DaichiKokujo
Why would you put it into PHP? This is JAVA
He means [php] tags