From fe132e64eb21875b767a8cbb12d318bf20efa956 Mon Sep 17 00:00:00 2001 From: jsn Date: Sat, 19 Oct 2024 21:23:30 +0800 Subject: [PATCH] `getmobdrops` doc update 2 --- doc/script_commands.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 0f32457e988..675ad568f0a 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -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();