summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-29 23:02:45 -0300
committershennetsind <ind@henn.et>2014-03-29 23:02:45 -0300
commitf0229942aa9c92f4b7750fd2e56903d714a99351 (patch)
tree91af68a1079400ca5bc887990555f3f50f42e0bf
parent99dcc9da0a951a1eb2828a01fe847210ab523426 (diff)
downloadhercules-f0229942aa9c92f4b7750fd2e56903d714a99351.tar.gz
hercules-f0229942aa9c92f4b7750fd2e56903d714a99351.tar.bz2
hercules-f0229942aa9c92f4b7750fd2e56903d714a99351.tar.xz
hercules-f0229942aa9c92f4b7750fd2e56903d714a99351.zip
Fixed Bug 8091
@mi mvp drops now displays item slot, special thanks to Tepoo, Haru. http://hercules.ws/board/tracker/issue-8091-mi-mvp-reward-equipment-slot-information-bugged/ Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/atcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 07079c1f9..09159c3f7 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6646,10 +6646,10 @@ ACMD(mobinfo)
continue;
if (monster->mvpitem[i].p > 0) {
j++;
- if (j == 1)
- sprintf(atcmd_output2, " %s %02.02f%%", item_data->jname, (float)monster->mvpitem[i].p / 100);
+ if(item_data->slot)
+ sprintf(atcmd_output2, " %s%s[%d] %02.02f%%",j != 1 ? "- " : "", item_data->jname, item_data->slot, (float)monster->mvpitem[i].p / 100);
else
- sprintf(atcmd_output2, " - %s %02.02f%%", item_data->jname, (float)monster->mvpitem[i].p / 100);
+ sprintf(atcmd_output2, " %s%s %02.02f%%",j != 1 ? "- " : "", item_data->jname, (float)monster->mvpitem[i].p / 100);
strcat(atcmd_output, atcmd_output2);
}
}