diff options
-rw-r--r-- | npc/functions/main.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 67677d1a..805c7136 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -32,8 +32,11 @@ function script g { } function script lg { - mes Sex == 0 ? l(getarg(0)) : l(getarg(1)); - return; + if (getargcount() > 1) + .@s$ = Sex == 0 ? l(getarg(0)) : l(getarg(1)); + else + .@s$ = l(getarg(0)); + return .@s$; } function script col { |