DB/Lock: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
Line 14: Line 14:
  If the corresponding Type field value is 1 then this is the itemID of the key or item that 'unlocks' this item.  
  If the corresponding Type field value is 1 then this is the itemID of the key or item that 'unlocks' this item.  
  18 Required_Skill[8] Integer Required skill needed for Lock_Properties
  18 Required_Skill[8] Integer Required skill needed for Lock_Properties
  26 Action[8] Integer Something to do with direction / opening / closing
  26 Action[8] Integer Something to do with direction / opening / closing. used in <code>CGGameObject_C::IsValidOpenAction</code>


==1.12.1.5875, 6.0.1.18179==
==1.12.1.5875, 6.0.1.18179==

Revision as of 17:14, 3 October 2017

0.5.3.3368

struct LockRec {
  uint32_t m_ID;
  uint32_t m_Type[4];
  uint32_t m_Index[4];
  uint32_t m_Skill[4];
  uint32_t m_Action[4];
};

Structure

Column	Field 			Type 		Notes 
1 	ID 			Integer 	
2 	Type[8] 		Integer 	If this is 1, then the next lock_properties is an item ID, if it's 2, then it's an iRef to LockType.dbc 
10 	Lock_Properties[8] 	Integer 	If the corresponding Type field is 2 then this is an iRefID_LockType.dbc. 
						If the corresponding Type field value is 1 then this is the itemID of the key or item that 'unlocks' this item. 
18 	Required_Skill[8] 	Integer 	Required skill needed for Lock_Properties
26 	Action[8] 		Integer 	Something to do with direction / opening / closing. used in CGGameObject_C::IsValidOpenAction

1.12.1.5875, 6.0.1.18179

struct LockRec {
  uint32_t m_ID;
  foreign_key<uint32_t, &LockTypeRec::m_ID> m_Type[8];
  uint32_t m_Index[8];
  uint32_t m_Skill[8];
  uint32_t m_Action[8];
};