summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-13 11:00:03 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-13 11:00:03 -0300
commit95f7b6d5e053cabf72618d6632761f95a301a087 (patch)
tree4de9530ccf4f8f27c99470e7ad3a353ec26b01b1 /npc
parente548c7c4ce74d1426b1dfc54981e863a23d90d2c (diff)
downloadserverdata-95f7b6d5e053cabf72618d6632761f95a301a087.tar.gz
serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.tar.bz2
serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.tar.xz
serverdata-95f7b6d5e053cabf72618d6632761f95a301a087.zip
Tolchi : Check for the impossible
Diffstat (limited to 'npc')
-rw-r--r--npc/005-4/tolchi.txt7
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;