viewing paste topic/4726- OnPCJobChangeEvent.diff | Diff

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 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;
 }
 
 
Viewed 1308 times, submitted by AnnieRuru.