diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-05 01:32:02 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-05 01:32:02 +0000 |
commit | 9df96583c94c76bc3fd4727c6ccada2fb27d9370 (patch) | |
tree | 671485a3b2611c363b26daae92c8a0658a0305bf /src/map | |
parent | be028b3aff2e81323d143b433bc4a490d6c15c6e (diff) | |
download | hercules-9df96583c94c76bc3fd4727c6ccada2fb27d9370.tar.gz hercules-9df96583c94c76bc3fd4727c6ccada2fb27d9370.tar.bz2 hercules-9df96583c94c76bc3fd4727c6ccada2fb27d9370.tar.xz hercules-9df96583c94c76bc3fd4727c6ccada2fb27d9370.zip |
- Updated @mobinfo to display slots in the drop information.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8141 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 695cdf416..76e5cd9db 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9737,15 +9737,16 @@ int atcommand_mobinfo( strcpy(atcmd_output, " ");
j = 0;
for (i = 0; i < MAX_MOB_DROP; i++) {
- if (mob->dropitem[i].nameid <= 0 || (item_data = itemdb_search(mob->dropitem[i].nameid)) == NULL)
+ if (mob->dropitem[i].nameid <= 0 || mob->dropitem[i].p < 1 || (item_data = itemdb_search(mob->dropitem[i].nameid)) == NULL)
continue;
- if (mob->dropitem[i].p > 0) {
+ if (item_data->slot)
+ sprintf(atcmd_output2, " - %s[%d] %02.02f%%", item_data->jname, item_data->slot, (float)mob->dropitem[i].p / 100);
+ else
sprintf(atcmd_output2, " - %s %02.02f%%", item_data->jname, (float)mob->dropitem[i].p / 100);
- strcat(atcmd_output, atcmd_output2);
- if (++j % 3 == 0) {
- clif_displaymessage(fd, atcmd_output);
- strcpy(atcmd_output, " ");
- }
+ strcat(atcmd_output, atcmd_output2);
+ if (++j % 3 == 0) {
+ clif_displaymessage(fd, atcmd_output);
+ strcpy(atcmd_output, " ");
}
}
if (j == 0)
|