Skip to content

Commit fe132e6

Browse files
committed
getmobdrops doc update 2
1 parent 199789b commit fe132e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/script_commands.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4345,13 +4345,13 @@ Example:
43454345

43464346
.@count = getmobdrops(.@mob_id, .@item, .@rate);
43474347

4348-
if (.@count) {
4348+
if (.@count == 0) {
4349+
mes("No drops found.");
4350+
} else {
43494351
mes(getmonsterinfo(.@mob_id, MOB_NAME) + " - " + .@count + " drops found:");
43504352
for (.@i = 0; .@i < .@count; ++.@i) {
43514353
mes(.@item[.@i] + " (" + getitemname(.@item[.@i]) + ") " + .@rate[.@i]/100 + ((.@rate[.@i]%100 < 10) ? ".0":".") + .@rate[.@i]%100 + "%");
43524354
}
4353-
} else {
4354-
mes("No drops found.");
43554355
}
43564356
close();
43574357

0 commit comments

Comments
 (0)