From 73662d19496bdc70665f2320197c5f44badf216c Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 9 Mar 2006 04:05:48 +0000 Subject: - Fixed a bug that was making the no_spawn_on_player setting useless. - Added Deadly Poison and Bleeding to status_get_sc_def, meaning that now vit does increases defense against being inflicted from it. - Fixed a crash and an infinite loop in @whodrops @.@ - Expanded the item_db column sizes for the names to 50. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5526 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 97682fc5d..38d335377 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9423,7 +9423,7 @@ int atcommand_whodrops( const char* command, const char* message) { struct item_data *item_data, *item_array[MAX_SEARCH]; - int i, count = 1; + int i,j, count = 1; if (!message || !*message) { clif_displaymessage(fd, "Please, enter Item name or its ID (usage: @whodrops )."); @@ -9442,7 +9442,7 @@ int atcommand_whodrops( clif_displaymessage(fd, atcmd_output); count = MAX_SEARCH; } - for (i = 0; i < MAX_SEARCH; i++) { + for (i = 0; i < count; i++) { item_data = item_array[i]; sprintf(atcmd_output, "Item: '%s'[%d]", item_data->jname,item_data->slot); @@ -9455,9 +9455,9 @@ int atcommand_whodrops( sprintf(atcmd_output, "- Common mobs with highest drop chance (only max %d are listed):", MAX_SEARCH); clif_displaymessage(fd, atcmd_output); - for (i=0; i < MAX_SEARCH && item_data->mob[i].chance > 0; i++) + for (j=0; j < MAX_SEARCH && item_data->mob[j].chance > 0; j++) { - sprintf(atcmd_output, "- %s (%02.02f%%)", mob_db(item_data->mob[i].id)->jname, item_data->mob[i].chance/100.); + sprintf(atcmd_output, "- %s (%02.02f%%)", mob_db(item_data->mob[j].id)->jname, item_data->mob[j].chance/100.); clif_displaymessage(fd, atcmd_output); } } -- cgit v1.2.3-60-g2f50