Problem with npc_profession more update TC


Thanks to the trick of rochet2 I managed to adapt all my scripts. But I meet a problem with npc_profession. The script compiles without error but him not work not in game. My script’s available here :

It would seem that he(it) have a problem there line 72…

Thank you for advance for your help.

Best regards

the code should not compile.

The reason is that you call [COLOR=rgb(51,51,51)]CompleteLearnProfession from [COLOR=rgb(51,51,51)]OnGossipSelect and the first one is not static and the second one is and you are calling them like they would both be static or member functions.
You should change all your functions static like [COLOR=rgb(51,51,51)]OnGossipSelect is.