summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-15 05:00:04 -0300
committershennetsind <ind@henn.et>2013-06-15 05:00:04 -0300
commitcf78bebc95e3387cf7fbe0720825bacb95c1b61a (patch)
treee895ec5f3f9baa111476af18607ec292f06d9df6 /src/map/script.c
parent1dd4882c00b82d9a2f138211dbc2c8c542e2af88 (diff)
parentde3f4423058405636c76e05cd87a6eae0bfa7707 (diff)
downloadhercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.tar.gz
hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.tar.bz2
hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.tar.xz
hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a768ca7ae..15870aaa7 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7223,6 +7223,9 @@ BUILDIN(successrefitem)
//Logs items, got from (N)PC scripts [Lupus]
logs->pick_pc(sd, LOG_TYPE_SCRIPT, -1, &sd->status.inventory[i],sd->inventory_data[i]);
+ if (sd->status.inventory[i].refine >= MAX_REFINE)
+ return true;
+
sd->status.inventory[i].refine++;
pc->unequipitem(sd,i,2); // status calc will happen in pc->equipitem() below
@@ -15263,7 +15266,7 @@ BUILDIN(openmail)
if( sd == NULL )
return true;
- mail_openmail(sd);
+ mail->openmail(sd);
return true;
}