diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-15 00:40:56 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-15 00:40:56 -0300 |
commit | 1754d290fffbc06ecaa31884aa8ae754725ec7a9 (patch) | |
tree | 5d4c6c94341cd2ca45f086e1754a83e4ce84f143 | |
parent | 043210470ecec9cd69859f2b2fe716e532ae45cd (diff) | |
download | serverdata-1754d290fffbc06ecaa31884aa8ae754725ec7a9.tar.gz serverdata-1754d290fffbc06ecaa31884aa8ae754725ec7a9.tar.bz2 serverdata-1754d290fffbc06ecaa31884aa8ae754725ec7a9.tar.xz serverdata-1754d290fffbc06ecaa31884aa8ae754725ec7a9.zip |
Error handling on Bracco
-rw-r--r-- | npc/020-5/bracco.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt index 3784ac6c7..1ff589ee0 100644 --- a/npc/020-5/bracco.txt +++ b/npc/020-5/bracco.txt @@ -25,6 +25,10 @@ getinventorylist(); .@item=@inventorylist_id[.@index]; + if (.@item <= 0) { + Exception(l("Error translating item ID @@ to @@ (Bracco, idx, id)", .@index, .@item), RB_DEFAULT|RB_SPEECH|RB_ISFATAL); + } + delitem .@item, 1; Zeny-=.@price; |