summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/020-5/bracco.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt
index d86c3d9b1..4ebf7b35a 100644
--- a/npc/020-5/bracco.txt
+++ b/npc/020-5/bracco.txt
@@ -20,14 +20,21 @@
if (askyesno() == ASK_NO || Zeny < .@price)
return;
- failedremovecardsindex .@index, 0;
+ //failedremovecardsindex .@index, 0; // TODO: Fix this and upgrade server
+ delinventorylist();
+ getinventorylist();
+ .@item=@inventorylist_id[.@index];
+
+ delitem .@item, 1;
Zeny-=.@price;
// 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
+ if (getarg(.@i+1)) {// It may be zero
getitem getarg(.@i), getarg(.@i+1);
+ mesc l("* Acquired @@ @@!", getarg(.@i+1), getitemlink(getarg(.@i)));
+ }
.@i++;
}
return;