DB/ItemRandomSuffix: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Header Info ==
Records....................95
Fields.....................29
Record Size...............116
String Block Size........1303


{{Template:Sandbox/VersionRange|min_expansionlevel=2}}
==Structure==
==Structure==
  '''Column Field Type Notes'''  
  '''Column Field Type Notes'''  
Line 12: Line 8:
  20 iRefID_[[SpellItemEnchantment.dbc|enchantment]] Integer[5]
  20 iRefID_[[SpellItemEnchantment.dbc|enchantment]] Integer[5]
  25 allocationPct Integer[5]
  25 allocationPct Integer[5]
== 3.3.5 Wotlk ==
{| class="wikitable"
|+ [https://wowpedia.fandom.com/wiki/Item_suffix Item Suffixes]
|-
! Column !! Field Name !! Type !! Notes
|-
| 1 || ID || Integer || ID used is linked to ID in db world [https://www.azerothcore.org/wiki/item_enchantment_template item_enchantment_template] column 2 "ench"
|-
| 2-18 || Name_Lang || String + Loc || 
|-
| 19 || Internal Name || Visible Name || Name visible in the game if this dbc is patched into mpq file
|-
| 20-25  || Enchantment 1 2 3 4 5 || Integer || Refers to  Column 1 ID in [[DB/SpellItemEnchantment|SpellItemEnchantment.dbc]]
|-
| 26-30 ||Allocaction 1 2 3 4 5 || Integer || Value that determines how much scale based stats (from SpellItemEnchantment.dbc)  will increased on items. Higher number means more of that stat.
|}
The Allocation value needs to be set in the matching column as the Enchantment value is used in.
Example, if u have Enchantment Value in Column 20 "Enchantment 1" then matching Allocation value needs to be in Column 26 "Allocation 1"
List of some Scale based Enchantment values (Column 20-25) from SpellItemEnchantment.dbc that requires a Allocation Value (Column 26-39)  in order to work
Agility 2802
Stamina 2803
intellect 2804
Strength 2805
spirit 2806


==6.0.1.18179==
==6.0.1.18179==
  struct ItemRandomSuffixRec {
  struct ItemRandomSuffixRec {
   uint32_t m_ID;
   uint32_t m_ID;
   stringref m_name_lang;
   {{Template:Type|stringref}} m_name_lang;
   stringref m_internalName;
   {{Template:Type|stringref}} m_internalName;
   uint32_t m_enchantment[5];
   uint32_t m_enchantment[5];
   uint32_t m_allocationPct[5];
   uint32_t m_allocationPct[5];

Latest revision as of 19:44, 6 October 2022

≥ BC

Structure

Column	Field 				Type 		Notes 
1 	ID 				Integer 	
2-18 	Name 				String + Loc
19 	internalName 			String 		Monkey.. Owl.. etc.. (no 'of the') 
20 	iRefID_enchantment 	Integer[5]	
25 	allocationPct 			Integer[5]


3.3.5 Wotlk

Item Suffixes
Column Field Name Type Notes
1 ID Integer ID used is linked to ID in db world item_enchantment_template column 2 "ench"
2-18 Name_Lang String + Loc
19 Internal Name Visible Name Name visible in the game if this dbc is patched into mpq file
20-25 Enchantment 1 2 3 4 5 Integer Refers to Column 1 ID in SpellItemEnchantment.dbc
26-30 Allocaction 1 2 3 4 5 Integer Value that determines how much scale based stats (from SpellItemEnchantment.dbc) will increased on items. Higher number means more of that stat.

The Allocation value needs to be set in the matching column as the Enchantment value is used in.

Example, if u have Enchantment Value in Column 20 "Enchantment 1" then matching Allocation value needs to be in Column 26 "Allocation 1"

List of some Scale based Enchantment values (Column 20-25) from SpellItemEnchantment.dbc that requires a Allocation Value (Column 26-39) in order to work

Agility 2802

Stamina 2803

intellect 2804

Strength 2805

spirit 2806

6.0.1.18179

struct ItemRandomSuffixRec {
  uint32_t m_ID;
  stringref m_name_lang;
  stringref m_internalName;
  uint32_t m_enchantment[5];
  uint32_t m_allocationPct[5];
};