summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emap/status.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index 7b42fa1..0aa5f13 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -149,6 +149,21 @@ void estatus_calc_pc_additional_pre(struct map_session_data **sdPtr,
horse_add_bonus(sd);
+ struct linkdb_node **label_linkdb = strdb_get(npc->ev_label_db, "OnPCBonusEvent");
+ if (label_linkdb == NULL) {
+ hookStop();
+ return;
+ }
+
+ struct linkdb_node *node = *label_linkdb;
+ while (node) {
+ struct event_data* ev = node->data;
+ if (ev) {
+ script->run(ev->nd->u.scr.script, ev->pos, sd->bl.id, ev->nd->bl.id);
+ }
+ node = node->next;
+ }
+
hookStop();
}