Forum > Tutorials
[TUTORIAL] for creating a new class
<< < (5/5)
sujezz:
Regarding very 1st thing to do, I have no function in creature.cpp called like his, mine looks like this:
--- Code: ---bool Creature::isCanTrainingAndResetTalentsOf(Player* player) const { return player->getLevel() >= 10 && GetCreatureTemplate()->trainer_type == TRAINER_TYPE_CLASS && player->getClass() == GetCreatureTemplate()->trainer_class; } --- End code ---
If I understand this right I don't need to add anything here so I skipped and continued. Will update info if this is needed once I finish.
Ok, so I finished adding this to core and the first change is indeed not needed. However the created character doesn't even know how to type therefore I am unable to use gm commands. Also there's no such table as playercreateinfo_spell only playercreateinfo_skills and I will look into it soon. Now it's 7 am and I'm still up so too tired for this atm.
sujezz:
Since there's no playercreateinfo_spells or so I edited this part for the actual tc database and it should look like this:
--- Code: ---INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 10, 81, 0, 'Dodge'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 196, 0, 'One-Handed Axes'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 198, 0, 'One-Handed Maces'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 201, 0, 'One-Handed Swords'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 203, 0, 'Unarmed'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 204, 0, 'Defense'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 522, 0, 'SPELLDEFENSE (DND)'); INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `Skill`, `rank` , `comment`) VALUES (1, 512, 668, 0, 'Language Common'); --- End code ---
However that didn't do the trick for me (also looks like id of skills are off: common 668 and in tc 98). This leads me to beleive that there's some dbc editing to be done which I honestly don't understand. Most of dbc are glitchy for me using taliis dbceditor or mydbcedit I'll look into it however I'd appriciate any information as my new class can't even speak (only has a defense skill).
Navigation
[0] Message Index
[*] Previous page
|