This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Classes and swords 1 and 2 hand  (Read 1812 times)

ninji210

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 14
    • View Profile
Classes and swords 1 and 2 hand
« on: September 13, 2014, 09:33:14 pm »
How can i mod for example priest use swords one handed and two handed ...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Classes and swords 1 and 2 hand
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Classes and swords 1 and 2 hand
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Classes and swords 1 and 2 hand
« Reply #3 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).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: Classes and swords 1 and 2 hand
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Classes and swords 1 and 2 hand
« Reply #5 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

ninji210

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 14
    • View Profile
Re: Classes and swords 1 and 2 hand
« Reply #6 on: October 03, 2014, 07:38:05 pm »
Thnx for all i got it
« Last Edit: January 01, 1970, 01:00:00 am by Admin »