summaryrefslogtreecommitdiff
path: root/npc/020-5/bracco.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-18 16:10:58 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-18 16:10:58 -0300
commitd2a96aa7466e38520154bd3c7d59f99d1ba11007 (patch)
tree01f689ae7b99b3971661c9f5ed86122ec90952b0 /npc/020-5/bracco.txt
parentcb98a473c7916d688b4ed53cc9eec3a49dd5dfe5 (diff)
downloadserverdata-d2a96aa7466e38520154bd3c7d59f99d1ba11007.tar.gz
serverdata-d2a96aa7466e38520154bd3c7d59f99d1ba11007.tar.bz2
serverdata-d2a96aa7466e38520154bd3c7d59f99d1ba11007.tar.xz
serverdata-d2a96aa7466e38520154bd3c7d59f99d1ba11007.zip
Bracco comments
Diffstat (limited to 'npc/020-5/bracco.txt')
-rw-r--r--npc/020-5/bracco.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt
index f7be7e677..96b4ffc73 100644
--- a/npc/020-5/bracco.txt
+++ b/npc/020-5/bracco.txt
@@ -20,21 +20,24 @@
getinventorylist();
.@item=@inventorylist_id[.@index];
+ // Error
+ if (.@item <= 0)
+ Exception(l("Error translating item ID @@ to @@ (Bracco, idx, id)", .@index, .@item), RB_DEFAULT|RB_SPEECH|RB_ISFATAL);
+
+ // Confirmation
mesn;
mesc l("Really melt down your @@? It'll cost you @@ GP. This action cannot be undone!", getitemlink(.@item), .@price), 1;
next;
if (askyesno() == ASK_NO || Zeny < .@price)
return;
- if (.@item <= 0) {
- Exception(l("Error translating item ID @@ to @@ (Bracco, idx, id)", .@index, .@item), RB_DEFAULT|RB_SPEECH|RB_ISFATAL);
- }
-
+ // Effective: delete item and GP
delitem .@item, 1;
Zeny-=.@price;
+ // This should be consistent but well...
mesc l("@@ melt down your @@...", .name$, getinvindexlink(.@index));
- // TODO: Inventoryplace
+ // TODO: Inventoryplace.
// Add Items (if inventory is full, your fault and not mine)
for (.@i=2;.@i < getargcount(); .@i++) {
if (getarg(.@i+1)) {// It may be zero