Class requirements in spell tables? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    MoneyPress's Avatar Member
    Reputation
    1
    Join Date
    Nov 2020
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Class requirements in spell tables?

    I'm working on a personal project and got stumped at this hurdle.

    One of the things I'm doing is making the game be less class-restrictive, for example I want all classes to be able to equip all weapons, use all spells etc.

    For items, that was pretty simple, found an "allowableclass" field in item templates, set it to -1 on everything and voila.

    But for spells, I looked through all the tables and dbs and couldn't find anything related to that. To be specific, the first thing I'm trying to change is allow everyone to wear plate. After that, allow everyone to learn every weapon skill.

    Now the first issue is, I tried bruteforcing it and did .learn (plate skill spell id) and that didn't do anything, didn't even spit a message back. I then tried to .cast the spell that trainers cast on you when you buy the skill and the spell activated but did nothing.

    The second issue is that the skill spell for a weapon for example can be learned by a combination of half of the classes and not by the other classes. Meaning it's not a single field somewhere in spell tables that defines the allowed class, but maybe some obscure flags in the class tables. But I looked through that with no luck either.

    I stumbled upon a similar issue when trying to allow all classes to tame and have pets. I again bruteforced the tame spell and was met with a similar result. All this is giving me a hunch that classes are a very rigid framework and can't be messed with. But I know a few servers that broke those bounds significantly so it is possible.

    Does anyone have any ideas on how to get over this hurdle? Idek where to start looking. I'm using brotalnia's light's hope 1.12 repack if that's relevant. Thanks.

    Class requirements in spell tables?
  2. #2
    MoneyPress's Avatar Member
    Reputation
    1
    Join Date
    Nov 2020
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I struck gold! I was looking in the wrong place. It's not the spell that's class-restricted - it's the skill. It's in the appropriately named "SkillRaceClassInfo.dbc".

    I couldn't figure out the bitmask I had to replace it with, and couldn't be bothered to find every single skill id, so I went big brain and just replaced all fields with 8 and it worked. Didn't even get 15 error messages in the server too.

    Edit: For posterity, you need a database editing software, WDBX editor is made specifically for wow dbs. You then need to open skillraceclassinfo.dbc with it. In my case that's in mangos/data/(version)/dbc. You then need to find the skillID of the skill you want to change, and change its RaceMask or ClassMask to a bitmask you desire. How you figure out the bitmask you need to replace it with? I don't know, you'll have to figure that out by yourself. In my case I replaced classmask with 8 on every row because I know 8 is rogue and that's what I plan on playing. You might be able to replace it with 0 or -1 to make it available to every class/race, but I didn't try it, make a backup of the file if you do.
    Last edited by MoneyPress; 09-28-2023 at 04:42 PM. Reason: Forgot to include what exactly I did for posterity

  3. #3
    MoneyPress's Avatar Member
    Reputation
    1
    Join Date
    Nov 2020
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To confirm, I tested it and you can just replace the RaceMask or ClassMask field with 0 to allow all races/classes to learn the skill. It's weird that a 0 wasn't used originally for skills like professions which are available to all classes and races, so this might cause some problems at some point but I'll update if I ever encounter one.

Similar Threads

  1. [Hit Rating] Class requirements
    By Slint in forum WoW Instances & Raiding
    Replies: 52
    Last Post: 09-08-2009, 11:09 PM
  2. GM In account tables.
    By Performer in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 08-09-2008, 05:21 PM
  3. Spell tables?
    By Kurosan in forum World of Warcraft Emulator Servers
    Replies: 29
    Last Post: 04-20-2008, 11:11 AM
  4. question = which classes/races in player create info items,skills, spels
    By Thirsha in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-24-2008, 03:47 AM
  5. Greedy unhelpfull class trainers in wow - Thread of lulz
    By youwish in forum World of Warcraft General
    Replies: 1
    Last Post: 01-10-2008, 02:23 PM
All times are GMT -5. The time now is 07:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search