Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: ninji210 on September 13, 2014, 09:33:14 pm

Title: Classes and swords 1 and 2 hand
Post by: ninji210 on September 13, 2014, 09:33:14 pm
How can i mod for example priest use swords one handed and two handed ...
Title: Re: Classes and swords 1 and 2 hand
Post by: Amaroth on September 14, 2014, 12:53:21 am
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 :D). 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.
Title: Re: Classes and swords 1 and 2 hand
Post by: Ascathos on September 14, 2014, 12:25:02 pm
Quote from: "Amaroth"
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 :D). 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.
Title: Re: Classes and swords 1 and 2 hand
Post by: Amaroth on September 14, 2014, 07:12:52 pm
It works for me nearly without bugs. The only problem there is fact that I can't see skill progress in Skills menu in Character Info. At least it works so on 3.3.5a. However, thanks for advice Ascathos, I will take a look at that DBC and maybe it will fix this problem too.

EDIT: Very well, my solution works without any bigger problem. However, if you want to have really clean all-working solution, look also into SkillRaceClassInfo.dbc. If you get weird very little numbers in column for race mask, just open it in Taliis. After saving the DBC in Taliis those strange numbers will be fixed and you will see working hexadecimal masks there. For flags in SkillRaceClassInfo.dbc... just reverse-engineer, WoW Dev isn't very helpful with them, maybe I will try to ivnestigate what do these flags do, but not now. Flag 128 seems to enable that skill for learning/having from creation of char and worked for me perfectly (at least until now).
Title: Re: Classes and swords 1 and 2 hand
Post by: kojak488 on September 16, 2014, 03:16:51 pm
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.
Title: Re: Classes and swords 1 and 2 hand
Post by: Ascathos on September 16, 2014, 11:28:05 pm
Quote from: "kojak488"
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.
Certainly right you are.
If you check structure, it provides some basics like languages and else different talent trees that provide the createinfo content. Then agian, it shouldn't matter, it stands as it stands for the most part
Title: Re: Classes and swords 1 and 2 hand
Post by: ninji210 on October 03, 2014, 07:38:05 pm
Thnx for all i got it