Look into the source and see if it has any other dialogue setup and try to copy that to your npc when click on it or second click to it starting the dialogue. Next after your player are at the stage to refill hp + prayer just add or make a method to add skill points to a player.
This all depend on how the server source has laid it all out and you have to find it all.