Skip to content

Commit

Permalink
getmobdrops doc update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonch35 committed Oct 19, 2024
1 parent 199789b commit fe132e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/script_commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4345,13 +4345,13 @@ Example:

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

if (.@count) {
if (.@count == 0) {
mes("No drops found.");
} else {
mes(getmonsterinfo(.@mob_id, MOB_NAME) + " - " + .@count + " drops found:");
for (.@i = 0; .@i < .@count; ++.@i) {
mes(.@item[.@i] + " (" + getitemname(.@item[.@i]) + ") " + .@rate[.@i]/100 + ((.@rate[.@i]%100 < 10) ? ".0":".") + .@rate[.@i]%100 + "%");
}
} else {
mes("No drops found.");
}
close();

Expand Down

0 comments on commit fe132e6

Please sign in to comment.