Request: @mapmoblist/@ml
shows the current monsters and monster counts in the map
if given a map value it will show the given map's monsters
while if not, it will show the monsters where you are on
Ex:
--------Monster List--------
Mapname: prt_fild03 >specified map name
Monsters: Poring(1002)/20 >monster name(id)/count
Fabre(1007)/50
MVP: >mvp if there is/are
Ex 2:
--------Monster List--------
Mapname: pay_dun04
Monsters:
../src/map/atcommand.c
put this above atcommand_basecommands function
static int count_mob(struct block_list *bl, va_list ap) // [FE]
{
struct mob_data *md = (struct mob_data*)bl;
short id = va_arg(ap, short);
if (md->class_ == id)
return 1;
return 0;
}
ACMD_FUNC(mapmoblist) // [FE]
{
char temp[100];
bool mob_searched[MAX_MOB_DB];
bool mob_mvp[MAX_MOB_DB]; // Store mvp data..
struct s_mapiterator* it;
unsigned short count = 0, i, mapindex = 0;
int m =