We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getmobdrops
1 parent 199789b commit fe132e6Copy full SHA for fe132e6
doc/script_commands.txt
@@ -4345,13 +4345,13 @@ Example:
4345
4346
.@count = getmobdrops(.@mob_id, .@item, .@rate);
4347
4348
- if (.@count) {
+ if (.@count == 0) {
4349
+ mes("No drops found.");
4350
+ } else {
4351
mes(getmonsterinfo(.@mob_id, MOB_NAME) + " - " + .@count + " drops found:");
4352
for (.@i = 0; .@i < .@count; ++.@i) {
4353
mes(.@item[.@i] + " (" + getitemname(.@item[.@i]) + ") " + .@rate[.@i]/100 + ((.@rate[.@i]%100 < 10) ? ".0":".") + .@rate[.@i]%100 + "%");
4354
}
- } else {
- mes("No drops found.");
4355
4356
close();
4357
0 commit comments