src/map/pc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/map/pc.c b/src/map/pc.c index 31aac34..43690e8 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7822,6 +7822,14 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper) } } + { + struct npc_data* nd = npc->name2id("OnPCJobChangeEvent"); + if ( nd ) + script->run( nd->u.scr.script, 0, sd->bl.id, nd->bl.id ); + else + ShowWarning( "OnPCJobChangeEvent npc is not present\n" ); + } + return 0; }