diff options
author | Matheus Macabu <mkbu95@gmail.com> | 2013-06-15 03:25:38 -0300 |
---|---|---|
committer | Matheus Macabu <mkbu95@gmail.com> | 2013-06-15 03:25:38 -0300 |
commit | b745cb176a16e771bf5bbae43a7445cf160d1342 (patch) | |
tree | 48bc1d0fb831d679c4666f70e3acd92e6ed01ddd /src/map/script.c | |
parent | 634bcc63b7adff53d817c19195c4060170eeecfc (diff) | |
download | hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.tar.gz hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.tar.bz2 hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.tar.xz hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.zip |
- HPM: Added trade interface;
- Moved PARTY_RECRUIT definition to mmo.h to avoid segfault;
- Check if item is already at maximum refine;
- Fixed that @reloadscript with one npc bug (thanks to akinari).
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index f3bf2470a..2b2628aa3 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -7225,6 +7225,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 |