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: [QUESTION]  About Custom Classes  (Read 6315 times)

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
[QUESTION]  About Custom Classes
« on: April 27, 2013, 06:18:36 pm »
Okay, I'm posting this in the hopes that someone with a little more knowledge than myself might be able to help...

I've made a new Class (Necromancer) from this Tutorial....
viewtopic.php?f=26&t=1840

but it seems I'm still missing some edits that still are needed.

I patched the new class into Trinitycore  -> http://pastebin.com/XVa1pUaU

Edited the DBC's Lua and XML files as described...

Then I added in all DB stuff... Playercreateinfo, Playercreateinfo_items, Playercreateinfo_Spell, etc, etc...
Classlevel stats, etc, etc... It's All working good.

I just have 2 errors....

I've setup Platercreateinfo_Spells so that the new class can speak all languages.... But it cannot speak unless GM flag is on....   I can .learn languges with that flag on, but it says I know them already....

Just looking for the DBC that I should edit for that... Not sure if it is in Skillline, spell.dbc or what...

Also... All new spells that the new class learns shows up on General Tab.... not in it's catagory's tab in the Spellbook....

Any help would be appreciated![attachment=2:2aabqdqb]Necro Mancer.7z[/attachment:2aabqdqb][attachment=1:2aabqdqb]nec1.PNG[/attachment:2aabqdqb][attachment=0:2aabqdqb]necro2.PNG[/attachment:2aabqdqb]

If anyone has some info on what to do next...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #1 on: April 30, 2013, 07:23:02 pm »
Just a quick Update....

I figured out spells, and languages (which are spells) -> You need to look in 1 file and edit in another...

SkillLine.dbc has each spell and the requirements....

SkillRaceClassInfo.dbc is where you define it for each race/class combo.....

Example...

950,673,-1,2048,0x80,0x0,0,0x0,

950 =  New Id number... Just got from the last one in file and add 1
673 =  Spell Gutterspeak  (You find this from SkillLine.dbc)
-1 = All Races (or use specific Racemask if you want just 1 race to have the spell)
2048-> Necromancer (class =12 -> converted to ClassMask 2048 so it can read correctly).

The rest I didn't need to change.

So now I can talk and learn spells, etc...

Still have a few bugs... Char stats not showing in character Screen. (Edited all the gt*.dbc's) to no effect there...

Anyways.  If someone else gets to the point I was at... hopefully that will help you.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mathex

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 24
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #2 on: April 30, 2013, 09:06:31 pm »
I love that you update this with a solution when no other wants to give it or maybe don't have one. Thanks! :-)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #3 on: April 30, 2013, 09:50:50 pm »
Quote from: "mathex"
I love that you update this with a solution when no other wants to give it or maybe don't have one. Thanks! :-)

Hopefully more people take the example.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #4 on: April 30, 2013, 10:26:34 pm »
Quote from: "mathex"
I love that you update this with a solution when no other wants to give it or maybe don't have one. Thanks! :-)

No problem.  I hate looking for a solution, finding a thread that is the exact problem I have, and then at the end seeing nothing but "resolved" :D

I did learn something new from XxXGenesisXxX that I did not previously know...  I just put -1 for the RaceMask.  It worked fine for me, system seems to read that as ALL.  But if you want say... Just Human and Orcs... you have to combine the values of the two...

Here is a converter for it, so you can get the values and easily add the two together... http://www.mathsisfun.com/binary-decima ... erter.html   -Edited -> Bad copy paste

Thanks to XxXGenesisXxX for that useful link! :D

I think I got the CharacterPanel sorted, but I lost my remote connection from work to home, and cannot test it... :(  I willl update that part tomorrow I guess. (If all goes well)  :D
« Last Edit: April 30, 2013, 10:33:17 pm by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #5 on: April 30, 2013, 10:28:56 pm »
Quote from: "XxXGenesisXxX"
Quote from: "mathex"
I love that you update this with a solution when no other wants to give it or maybe don't have one. Thanks! :-)

Hopefully more people take the example.

^  That'd be really sweet :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #6 on: April 30, 2013, 11:00:34 pm »
The thing about Humans and Orcs is called bitmasking.

Mjollna did a pretty good guide on it in detail, quite handy to know, not just for WoW modding, but general developing knowledge.

http://modcraft.io/viewtopic.php?f=26&t=846
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #7 on: April 30, 2013, 11:55:12 pm »
Quote from: "XxXGenesisXxX"
The thing about Humans and Orcs is called bitmasking.

Mjollna did a pretty good guide on it in detail, quite handy to know, not just for WoW modding, but general developing knowledge.

http://modcraft.io/viewtopic.php?f=26&t=846

Ooooh.... nice it has pics for the "Slow" people... Like me! :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #8 on: May 01, 2013, 01:54:18 pm »
-- Update --

Just small progress....  I can now view my char stats without a crash :D  

It was clearly in the tutorial, so I feel dumb there.  I had done all the work too, :D  I copied at the gt*.dbc files that were modified from my work folder to my server folder, but never placed them in the patch is all.

[attachment=0:1ha64egn]Capture.PNG[/attachment:1ha64egn]

There is a little glitch there on Crit, so I"ll have to look at the files agian and see why.  And if you go over 80, it will still crash.  I'll play around some more, and see about fixing for 255...

-- Update --

It's only Base Stats Panel that crashes at level 255
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #9 on: May 01, 2013, 02:15:00 pm »
-- Update --

So I fixed stats for level 255.  Used an addon that was made for Druids that had the same bug, and modified it to take into account Necromancers... If you look at the lua file, you can easily see how the changes were made and use it for your own classes.  --comments  where I changed things.

:D

[attachment=1:2al84kq6]Capture.PNG[/attachment:2al84kq6]

And attached is an Archived file of the modified ADDON -> Place in Interface/Addons and unzip. (Only needed for characters over level 80).

[attachment=0:2al84kq6]DruidFix.7z[/attachment:2al84kq6]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #10 on: May 01, 2013, 02:58:07 pm »
So, now I have another question :D  Of course I"ll look into it myself, but if anyone that has the knowledge and is nice enough to save me some time...

Anyone know already how to make a class Heroic, like DK's are???  

I'd just prefer to have my new classes Heroic.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #11 on: May 03, 2013, 06:43:15 pm »
So I think I may have narrowed it down to Player.cpp  

Code: [Select]
 uint32 start_level = getClass() != CLASS_DEATH_KNIGHT
? sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL)
        : sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL);

    if (m_session->HasPermission(RBAC_PERM_USE_START_GM_LEVEL))
    {
        uint32 gm_level = sWorld->getIntConfig(CONFIG_START_GM_LEVEL);
        if (gm_level > start_level)
            start_level = gm_level;
    }

Still playing around with the code, and testing...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #12 on: May 03, 2013, 06:49:39 pm »
What do you even mean by "heroic"? Deathknights are completely like all others.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #13 on: May 03, 2013, 07:10:59 pm »
Quote from: "schlumpf"
What do you even mean by "heroic"? Deathknights are completely like all others.

Right, with the exception of the Start Level settings....

Setup in Worldserver.conf


Code: [Select]
#    StartHeroicPlayerLevel
#        Description: Staring level for heroic class characters after creation.
#        Range:       1-MaxPlayerLevel
#        Default:     55

StartHeroicPlayerLevel = 200

and Player.cpp

Code: [Select]
uint32 start_level = getClass() != CLASS_DEATH_KNIGHT  
? sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL)
        : sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL);

    if (m_session->HasPermission(RBAC_PERM_USE_START_GM_LEVEL))
    {
        uint32 gm_level = sWorld->getIntConfig(CONFIG_START_GM_LEVEL);
        if (gm_level > start_level)
            start_level = gm_level;
    }

I think... Could be wrong...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mferrill

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [QUESTION]  About Custom Classes
« Reply #14 on: May 03, 2013, 07:13:57 pm »
I thought a Logical OR operator would work by setting it....

Code: [Select]
uint32 start_level = getClass() != CLASS_DEATH_KNIGHT || CLASS_BATTLEMAGE    
? sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL)
        : sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL);

    if (m_session->HasPermission(RBAC_PERM_USE_START_GM_LEVEL))
    {
        uint32 gm_level = sWorld->getIntConfig(CONFIG_START_GM_LEVEL);
        if (gm_level > start_level)
            start_level = gm_level;
    }

But it just breaks things :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »