summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-28 03:21:42 +0200
committerGitHub <noreply@github.com>2018-07-28 03:21:42 +0200
commit621611e6e90af0c5551b4daca75ba1267d8e8478 (patch)
tree92ca087267778474df4c3589e22ec801f4c34622 /src/map/npc.c
parent164e79976b926da35612ce28cf84ebd9c2ac3d3e (diff)
parent7f5b041efd88bae052c98e1bd1c5e28676c73272 (diff)
downloadhercules-621611e6e90af0c5551b4daca75ba1267d8e8478.tar.gz
hercules-621611e6e90af0c5551b4daca75ba1267d8e8478.tar.bz2
hercules-621611e6e90af0c5551b4daca75ba1267d8e8478.tar.xz
hercules-621611e6e90af0c5551b4daca75ba1267d8e8478.zip
Merge pull request #2067 from dastgirp/1-achievement
Implemented Achievement System and Title System
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 383558eaf..3a00b38ea 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -40,6 +40,7 @@
#include "map/skill.h"
#include "map/status.h"
#include "map/unit.h"
+#include "map/achievement.h"
#include "common/HPM.h"
#include "common/cbasetypes.h"
#include "common/db.h"
@@ -2272,6 +2273,9 @@ static int npc_selllist(struct map_session_data *sd, struct itemlist *item_list)
}
pc->delitem(sd, idx, entry->amount, 0, DELITEM_SOLD, LOG_TYPE_NPC);
+
+ // Achievements [Smokexyz/Hercules]
+ achievement->validate_item_sell(sd, sd->status.inventory[idx].nameid, entry->amount);
}
if (z + sd->status.zeny > MAX_ZENY && nd->master_nd == NULL)