From 861ecd7929441a24b63262c902d65886fc7654ff Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 27 Jun 2006 03:49:08 +0000 Subject: - Corrected the element of hunter traps. - Deadly Poison now also reduces def2 by 25% - Changed skill_setmapcell to use skill splash rather than range. - Cleaned up a bit skill_moonlit, now it knocks back the correct amount of cells. - Fixed @mi displaying always 0 instead of the mob's class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 09886dfad..192956bd3 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9329,7 +9329,7 @@ int atcommand_mobinfo( char atcmd_output2[200]; struct item_data *item_data; struct mob_db *mob, *mob_array[MAX_SEARCH]; - int mob_id, count; + int count; int i, j, k; memset(atcmd_output, '\0', sizeof(atcmd_output)); @@ -9341,9 +9341,9 @@ int atcommand_mobinfo( } // If monster identifier/name argument is a name - if ((mob_id = mobdb_checkid(atoi(message)))) + if ((i = mobdb_checkid(atoi(message)))) { - mob_array[0] = mob_db(mob_id); + mob_array[0] = mob_db(i); count = 1; } else count = mobdb_searchname_array(mob_array, MAX_SEARCH, message); @@ -9363,9 +9363,9 @@ int atcommand_mobinfo( // stats if (mob->mexp) - sprintf(atcmd_output, "MVP Monster: '%s'/'%s'/'%s' (%d)", mob->name, mob->jname, mob->sprite, mob_id); + sprintf(atcmd_output, "MVP Monster: '%s'/'%s'/'%s' (%d)", mob->name, mob->jname, mob->sprite, mob->vd.class_); else - sprintf(atcmd_output, "Monster: '%s'/'%s'/'%s' (%d)", mob->name, mob->jname, mob->sprite, mob_id); + sprintf(atcmd_output, "Monster: '%s'/'%s'/'%s' (%d)", mob->name, mob->jname, mob->sprite, mob->vd.class_); clif_displaymessage(fd, atcmd_output); sprintf(atcmd_output, " Level:%d HP:%d SP:%d Base EXP:%d Job EXP:%d", mob->lv, mob->status.max_hp, mob->status.max_sp, mob->base_exp, mob->job_exp); clif_displaymessage(fd, atcmd_output); -- cgit v1.2.3-70-g09d2