DB/AreaTrigger: Difference between revisions

From wowdev
Jump to navigation Jump to search
m (fix: missing array)
mNo edit summary
Line 25: Line 25:
==6.0.1.18179==
==6.0.1.18179==
  struct AreaTriggerRec {
  struct AreaTriggerRec {
   int m_ID;
   uint32_t m_ID;
   int m_ContinentID;
   uint32_t m_ContinentID;
   float m_pos[3];
   float m_pos[3];
   int m_phaseUseFlags;
   uint32_t m_phaseUseFlags;
   int m_phaseID;
   uint32_t m_phaseID;
   int m_phaseGroupID;
   uint32_t m_phaseGroupID;
   float m_radius;
   float m_radius;
   float m_box_length;
   float m_box_length;
Line 36: Line 36:
   float m_box_height;
   float m_box_height;
   float m_box_yaw;
   float m_box_yaw;
   int m_shapeType;
   uint32_t m_shapeType;
   int m_shapeID;
   uint32_t m_shapeID;
   int m_areaTriggerActionSetID;
   uint32_t m_areaTriggerActionSetID;
   int m_flags;
   uint32_t m_flags;
  };
  };


[[Category:DBC]][[Category:DBC_WotLK]]
[[Category:DBC]][[Category:DBC_WotLK]]

Revision as of 20:07, 2 November 2014

Defines certain areas on the map that presumably tell the server to fire a certain event. IE in BWL, telling the goblins around vael to run away is a trigger defined here. There are also misc triggers out in the middle of space which have 0 size, which are most likely used by the server for certain things. One such use could be remembering settings per instance (ie dracnoid colors in on Nef)?

Header Info

Records...................652
Fields.....................10
Record Size................40
String Block Size...........1

Structure

Column 	Field 		Type 		Notes
1 	ID 		Integer 	
2 	iRefID_Map 	Integer 	
3 	X 		Float 	
4 	Y 		Float 	
5 	Z 		Float 
+	phaseshift	Integer		New with wotlk or cataclysm	
6 	radius 		Float 		Seems to be a box of size yards with center at x,y,z
7 	box_x 		Float 		Most commonly used when size is 0, but not always
8 	box_y 		Float 		"
9 	box_z 		Float 		"
10 	box_orientation	Float 		"

6.0.1.18179

struct AreaTriggerRec {
  uint32_t m_ID;
  uint32_t m_ContinentID;
  float m_pos[3];
  uint32_t m_phaseUseFlags;
  uint32_t m_phaseID;
  uint32_t m_phaseGroupID;
  float m_radius;
  float m_box_length;
  float m_box_width;
  float m_box_height;
  float m_box_yaw;
  uint32_t m_shapeType;
  uint32_t m_shapeID;
  uint32_t m_areaTriggerActionSetID;
  uint32_t m_flags;
};