diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-10-13 11:00:03 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-10-13 11:00:03 -0300 |
commit | 95f7b6d5e053cabf72618d6632761f95a301a087 (patch) | |
tree | 4de9530ccf4f8f27c99470e7ad3a353ec26b01b1 /npc/005-4 | |
parent | e548c7c4ce74d1426b1dfc54981e863a23d90d2c (diff) | |
download | serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.tar.gz serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.tar.bz2 serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.tar.xz serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.zip |
Tolchi : Check for the impossible
Diffstat (limited to 'npc/005-4')
-rw-r--r-- | npc/005-4/tolchi.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt index e2eed605a..7ab272a79 100644 --- a/npc/005-4/tolchi.txt +++ b/npc/005-4/tolchi.txt @@ -256,6 +256,13 @@ function tolchi_tweaks { getinventorylist(); .@handle=@inventorylist_id[.@id]; + // Invalid (absolutely should never happen) + if (.@handle < 1) { + mesn; + mesq l("...What? Which item? Sorry, too much smoke around here."); + next; + return; + } // Multiple if (countitem(.@handle) != 1) { mesn; |