Custom Script Help

Hello… I am starter in coding area, my knowledge sucks… i want to know how i can update this script:

Its giving me that error:

/home/TC/src/server/scripts/Custom/npc_welcome.cpp:1031:12: error: ‘class Player’ has no member named ‘learnSpell’

How i can fix? I want too learn =(

Try: player->LearnSpell

But still ur script is totally outdated.

For ex. enum is useless since GossipOptionIcon enum is already specified in core.