summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-23 23:40:36 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-23 23:40:36 -0300
commite4add25a40713aee92781b840a66ab44bfada7da (patch)
tree7741d361f9dbf7494396f5bc289174805895f3e1
parent57acd8eac1ad8f742c6d6d484cf795bd8f06dca2 (diff)
downloadserverdata-e4add25a40713aee92781b840a66ab44bfada7da.tar.gz
serverdata-e4add25a40713aee92781b840a66ab44bfada7da.tar.bz2
serverdata-e4add25a40713aee92781b840a66ab44bfada7da.tar.xz
serverdata-e4add25a40713aee92781b840a66ab44bfada7da.zip
Rewrite Empty Box return logic
-rw-r--r--db/re/item_db.conf2
-rw-r--r--npc/items/emptybox.txt4
2 files changed, 2 insertions, 4 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 9ae8d91aa..8efa1e9d9 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -2431,7 +2431,7 @@ item_db: (
Sell: 5
Weight: 80
Refine: false
- ViewSprite: 631
+ KeepAfterUse: true
Script: <"
doevent "Empty Box#it::OnUse";
">
diff --git a/npc/items/emptybox.txt b/npc/items/emptybox.txt
index 873136515..aceb9b094 100644
--- a/npc/items/emptybox.txt
+++ b/npc/items/emptybox.txt
@@ -24,9 +24,6 @@ OnUse:
rif(countitem(Plushroom) >= 87, l("87 Plushroom"));
mes "";
switch (@menu) {
- case 1:
- getitem EmptyBox, 1;
- break;
case 2:
delitem GrassCarp, 7;
getitem FishBox, 1;
@@ -46,6 +43,7 @@ OnUse:
default:
getitem EmptyBox, 1;
}
+ delitem EmptyBox, 1;
closedialog;
close;
}