By learning him weapon skill. Every skill is learned by spell. You can find them for instance in game like that:.lookup spell One-handed swords (- for TC2)If you want all players with specific race/class to have this spell, simply go into world database and add new row into table playercreateinfo_spell, adding there right class and race masks and spell ID. Note is just cosmetic column there and thus not needed to be filled (but I really recomment to write down there what the hell is that spell there ). So, for priests learning 1h swords (and having that skill from creating of character) you would add row with racemask=0(all races), classmask=16(priest has ID 5 => 2^(5-1)=2^4=16)), spell=201, note="One-handed swords for priest". Spell will be learned also to all already created characters with matching races and classes.If you want to make players learn that spell from trainer/quest etc you will have to add that spell into their trainer or make spellbook with that and add it as reward into quest... I hope I explained everything you needed here and that I wasn't bothering you with too big details.
playercreateinfo_spell is decapitated. Spells on character create are now applied by editing Skillinfo*.dbcs.
Quote from: "Ascathos"playercreateinfo_spell is decapitated. Spells on character create are now applied by editing Skillinfo*.dbcs.The word you're looking for is deprecated. It's certainly not decapitated, but that invokes quite some imagery. Anyway, it still works fine on my build of TC rather than using the DBCs.