• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Spell.dbc Question

Status
Not open for further replies.

Portals

Banned
Searched all over and couldnt find the answer to this question

What column would I edit in Spell.dbc to make a mount both ground & flying mount and what are the flags needed?
 

Recycle

Enthusiast
I don't have access since I'm at school, but if I recall correctly it's not needed to be a spell.dbc edit.

But you should be able to do this in creature_template in column InhabitType.
Code:
Ground: 1
Water: 2
Flying: 4
These are defines for whether mount is flying, ground or water. It works by bitmasking, so simply changing your mount to be Ground + Flying you can just set it to 5 (1(Ground)+4(Flying)=5)

I recall it being this, but I can't say for sure anymore. I'm not home so I can't sadly test this. (I was able to use my remote db manager to confirm that Invincible's value for instance is set to 3, and the NPC doesn't actually spawn anywhere but as a mount.)
 
Last edited:

Reloac

BETA Tester
I don't have access since I'm at school, but if I recall correctly it's not needed to be a spell.dbc edit.

But you should be able to do this in creature_template in column InhabitType.
Code:
Ground: 1
Water: 2
Flying: 4
These are defines for whether mount is flying, ground or water. It works by bitmasking, so simply changing your mount to be Ground + Flying you can just set it to 5 (1(Ground)+4(Flying)=5)

I recall it being this, but I can't say for sure anymore. I'm not home so I can't sadly test this. (I was able to use my remote db manager to confirm that Invincible's value for instance is set to 3, and the NPC doesn't actually spawn anywhere but as a mount.)

Those flags are to do with creatures in the world not mounts.

EDIT: Since you use 3.3.5, I would suggest looking up Stoneharry's spell.dbc editor.
 
Last edited:

Recycle

Enthusiast
Those flags are to do with creatures in the world not mounts.

EDIT: Since you use 3.3.5, I would suggest looking up Stoneharry's spell.dbc editor.
Yes, but mount type whether it's flying or not is defined in creature template. There's a reason why all flying mounts have their inhabit type set to 1, 4 or 5. I can't see any other reason why they are there. Skimmed through the spell dbc and didn't find any in documents to define whether it's ground or flying.

I'll double check a correct method once I get home and update all correct flags and other changes.

Edit:
Reloac is correct. It does need Spell.DBC. The method I posted was meant for Vehicles, which, mounts aren't.

By looking, the second Spell Aura has for Invincible (Ground AND Flying) uses Aura 4 (SPELL_AURA_DUMMY) and uses misc value for Headless Horsemans mount. But also like Reloac said, try using StoneHarry's Spell Editor. It's golden for Spell Editing.

Compare what the old mount has, and copy data over from Invincible. I think it's more than just one flag that it uses for that, since there's a SCRIPT and a DUMMY in Invincible. It also seems that Invincible uses data from Headless Horseman's mount, as I think it was the first one to introduce a mechanic like that. So your best bet(if you make a custom mount) is to copy the whole spell entry of Headless Horseman's Mount/Invincible and then change the creatureID that it uses for mount and other data such as name, tooltip, etc.
 
Last edited:

Reloac

BETA Tester
Yes, but mount type whether it's flying or not is defined in creature template. There's a reason why all flying mounts have their inhabit type set to 1, 4 or 5. I can't see any other reason why they are there. Skimmed through the spell dbc and didn't find any in documents to define whether it's ground or flying.

I'll double check a correct method once I get home and update all correct flags and other changes.

Edit:
Reloac is correct. It does need Spell.DBC. The method I posted was meant for Vehicles, which, mounts aren't.

By looking, the second Spell Aura has for Invincible (Ground AND Flying) uses Aura 4 (SPELL_AURA_DUMMY) and uses misc value for Headless Horsemans mount. But also like Reloac said, try using StoneHarry's Spell Editor. It's golden for Spell Editing.

Compare what the old mount has, and copy data over from Invincible. I think it's more than just one flag that it uses for that, since there's a SCRIPT and a DUMMY in Invincible. It also seems that Invincible uses data from Headless Horseman's mount, as I think it was the first one to introduce a mechanic like that. So your best bet(if you make a custom mount) is to copy the whole spell entry of Headless Horseman's Mount/Invincible and then change the creatureID that it uses for mount and other data such as name, tooltip, etc.

I mean, the easiest way to make a mount without the trouble would be to copy a mount that has your requirements (flying + ground, flying only ect) and just re-name the required parts to make it what you want.
 

Portals

Banned
What im doing exactly is editing a mop mount like Winged Guardian, right now t wont let me mount it in Kalim or East Kingdoms. But I can mount it in Northrend or Outlands. I just want it to be ground in Kalim and Kingdoms and Ground/Flying in Northrend/Outlands.
 

Recycle

Enthusiast
What im doing exactly is editing a mop mount like Winged Guardian, right now t wont let me mount it in Kalim or East Kingdoms. But I can mount it in Northrend or Outlands. I just want it to be ground in Kalim and Kingdoms and Ground/Flying in Northrend/Outlands.

Take Headless Horseman's Mount(Spell, creature might not be needed) and Edit the name and attach a creature with your set displayID. That's the quickest way to do it, as HH Mount is ground in azeroth and flying elsewhere.
 

Portals

Banned
Take Headless Horseman's Mount(Spell, creature might not be needed) and Edit the name and attach a creature with your set displayID. That's the quickest way to do it, as HH Mount is ground in azeroth and flying elsewhere.

Shit okay haha, I just have the spells already made and I have all mounts from cata+ added to my server, so duplicating the horeman mount and putting my spells onto that is just gonna take a long ass time haha, thats why I just wanted to know which flag to use and what column.
 

Recycle

Enthusiast
Shit okay haha, I just have the spells already made and I have all mounts from cata+ added to my server, so duplicating the horeman mount and putting my spells onto that is just gonna take a long ass time haha, thats why I just wanted to know which flag to use and what column.
Sadly it isn't just a flag it seems :(
All of them use reference to HH Mount in the MiscFlag. Honestly, it'll take more time to experiment with it than copy :D

But you should look at StoneHarry's Spell Editor, everything comes a lot clearer.
 

Syphex

Exalted Member
Cuold you provide a screenshot of spell.dbc with the mount you have a problem with?
2-3 years ago it was colum 8 or 9 in the spell.dbc that was affecting this, so i would start by looking there it has a id of something like 0x4000000.

Not sure if this is correct, but worth checking it out.
 
Status
Not open for further replies.
Top