DB/SpellShapeshiftForm

From wowdev
Jump to navigation Jump to search

Structure

Column 	Field 			Type 		Notes 
1 	ID 			Integer 	
2 	ActionBar 		Integer 	
3-19 	Name 			Loc	
20 	Flags 			BitMask		
21 	CreatureType 		Integer 	-1 or 0 for getting overwritten by race or server.
22 	SpellIcon 		Integer 	Instead of "Interface\\Buttons\\Spell-Reset"	
23 	combatRoundTime 	Integer 	Only druid stances have a value. {2500, 1000} Default: 2000, has something to do with spellmanacost; attack speed in ms? - Maybe GlobalCooldown?
24-25 	DisplayID[4] 		Integer 	{Alliance, Horde}
28-35 	presetSpellID[8]	Integer 	Used for "Zombie", "Ghoul", "Test", "Tharon'ja", available spells

0.5.3.3368

struct SpellShapeshiftFormRec {
  uint32_t m_ID;
  uint32_t m_bonusActionBar;
  langstringref m_name_lang;
  uint32_t m_flags;      // &:1 only, see flags
};

1.12.1.5875

struct SpellShapeshiftFormRec {
  uint32_t m_ID;
  uint32_t m_bonusActionBar;
  langstringref m_name_lang;
  uint32_t m_flags; 
  uint32_t m_creatureType;
  uint32_t spell_icon;
};

6.0.1.18179

struct SpellShapeshiftFormRec {
  uint32_t m_ID;
  uint32_t m_bonusActionBar;
  langstringref m_name_lang;
  uint32_t m_flags;
  uint32_t m_creatureType;
  uint32_t m_attackIconID;
  uint32_t m_combatRoundTime;
  uint32_t m_creatureDisplayID[4];
  uint32_t m_presetSpellID[8];
  uint32_t m_mountTypeID;
  uint32_t m_exitSoundEntriesID;
};


The information for the flags is located in the source file of "..\src\server\game\DataStores\DBCEnums.h".
The information for the ShapeShift IDs is located in the source file of "..src\server\game\Spells\Auras\SpellAuraDefines.h".

ShapeShift Flags - Version 10.1.0+ (Master Branch 8/16/23) (Wrath … DF)

Flag Flag Name Bitmask Comments
1 Stance 0x00001 1 - Simulates not being shapeshifted to allow mounts/items/interactions i.e. warrior stances CGUnit_C::IsShapeShifted.
2 NotToggleable 0x00002 2 - Prevents cancellation Spell_C_CancelActiveSpell.
4 PersistOnDeath 0x00004 3 - Self descriptive.
8 CanInteractNPC 0x00008 4 - Allows interaction CGPlayer_C::HandleInteraction, CGGameObject_C_TypeBase::Use.
16 DontUseWeapon 0x00010 5 - Self descriptive.
32 AgilityAttackBonus 0x00020 6 - Enables agility AP bonuses e.g. cat form CGPlayer_C::GetAttackPowerContributionFromStat; Deprecated if higher than 6.2.4.
64 CanUseEquippedItems 0x00040 7 - Can equip items CGItem_C::Use.
128 CanUseItems 0x00080 8 - Can use items CGItem_C::Use.
256 DontAutoUnshift 0x00100 9 - Allows client to auto-unshift CGUnit_C::CanAutoUnshift.
512 ConsideredDead 0x00200 10 - Prevents LFG teleportation Script_LFGTeleport.
1,024 CanOnlyCastShapeshiftSpells 0x00400 11 - Prevents the use of non-shapeshift form spells CGUnit_C::CheckShapeshiftRules.
2,048 StanceCancelsAtFlightmaster 0x00800 12 - If m_flags & 1 != 0, cancels shapeshift when interacting with flight masters CGUnit_C::IsCancelShapeshiftAtFlightMaster.
4,096 NoEmoteSounds 0x01000 13 - Prevents emote sounds CGUnit_C::PlayTextEmoteSound.
8,192 NoTriggerTeleport 0x02000 14 - Enables Alliance and Horde to participate in the activity as a group together.
16,384 CannotChangeEquippedItems 0x04000 15 - Prevents emote sounds CGUnit_C::PlayTextEmoteSound.
32,768 ResummonPetsOnUnshift 0x08000 16 - Deprecated.
65,536 CannotUseGameObjects 0x10000 17 - Prevents emote sounds CGUnit_C::PlayTextEmoteSound.


Many of these still work with older versions of the game but I am tagging this as master anyway.

ShapeShift IDs - Version 10.1.0+ (Master Branch 8/16/23) (DF)

Flag String Name Bitmask Comments
0 FORM_NONE 0x0 0 - If you have any comments feel free to leave them by the according form; otherwise these are listed as self descriptive.
1 FORM_CAT_FORM 0x1 1 -
2 FORM_TREE_OF_LIFE 0x2 2 -
4 FORM_TRAVEL_FORM 0x4 3 -
8 FORM_AQUATIC_FORM 0x8 4 -
16 FORM_BEAR_FORM 0x10 5 -
32 FORM_AMBIENT 0x20 6 -
64 FORM_GHOUL 0x40 7 -
128 FORM_DIRE_BEAR_FORM 0x80 8 -
256 FORM_CRANE_STANCE 0x100 9 -
512 FORM_THARONJA_SKELETON 0x200 10 -
1,024 FORM_DARKMOON_TEST_OF_STRENGTH 0x400 11 -
2,048 FORM_BLB_PLAYER 0x800 12 -
4,096 FORM_SHADOW_DANCE 0x1000 13 -
8,192 FORM_CREATURE_BEAR 0x2000 14 -
16,384 FORM_CREATURE_CAT 0x4000 15 -
32,768 FORM_GHOST_WOLF 0x8000 16 -
65,536 FORM_BATTLE_STANCE 0x10000 17 -
131,072 FORM_DEFENSIVE_STANCE 0x20000 18 -
262,144 FORM_BERSERKER_STANCE 0x40000 19 -
524,288 FORM_SERPENT_STANCE 0x080000 20 -
1,048,576 FORM_ZOMBIE 0x100000 21 -
2,097,152 FORM_METAMORPHOSIS 0x200000 22 -
4,194,304 FORM_OX_STANCE 0x400000 23 -
8,388,608 FORM_TIGER_STANCE 0x800000 24 -
16,777,216 FORM_UNDEAD 0x1000000 25 -
33,554,432 FORM_FRENZY 0x2000000 26 -
67,108,864 FORM_FLIGHT_FORM_EPIC 0x4000000 27 -
134,217,728 FORM_SHADOWFORM 0x8000000 28 -
268,435,456 FORM_FLIGHT_FORM 0x10000000 29 -
536,870,912 FORM_STEALTH 0x20000000 30 -
1,073,741,824 FORM_MOONKIN_FORM 0x40000000 31 -
2,147,483,648 FORM_SPIRIT_OF_REDEMPTION 0x80000000 32 -
4,294,967,296 FORM_GLADIATOR_STANCE 0x100000000 33 -
8,589,934,592 FORM_METAMORPHOSIS_2 0x200000000 34 -
17,179,869,184 FORM_MOONKIN_FORM_RESTORATION 0x400000000 35 -
34,359,738,368 FORM_TREANT_FORM 0x800000000 36 -
68,719,476,736 FORM_SPIRIT_OWL_FORM 0x1000000000 37 -
137,438,953,472 FORM_SPIRIT_OWL_FORM_2 0x2000000000 38 -
274,877,906,944 FORM_WISP_FORM 0x4000000000 39 -
549,755,813,888 FORM_WISP_FORM_2 0x80000000000 40 -
1,099,511,627,776 FORM_SOULSHAPE 0x10000000000 41 -
4,398,046,511,104 FORM_FORGEBORNE_REVERIES 0x20000000000 42 -