Creature formations

From ArcEmu-Wiki
Jump to: navigation, search

Description

Contains information on creature formations. Ex. making an NPC follow a leader in a pack.


Contents



spawn_id

The unique ID from creature_spawns. This is the ID that will be following the "leader".


target_spawn_id

The ID from creature_spawns, this is the "leader" that is being followed.


follow_angle

The angle between the two creatures.


follow_dist

The distance between the two creatures.


SQL Structure

CREATE TABLE `creature_formations` (
  `spawn_id` int(10) unsigned NOT NULL default '0',
  `target_spawn_id` int(10) unsigned NOT NULL default '0',
  `follow_angle` float NOT NULL default '0',
  `follow_dist` float NOT NULL default '0',
  PRIMARY KEY  (`spawn_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Creature System';
Personal tools