Ai agents

From ArcEmu-Wiki
Jump to: navigation, search

Description

This table contains spells that creatures use instead of advanced scripting. Note that some of these do not work. (surprise surprise)

Contents



entry

The Entry ID of the NPC, from creature_names and creature_proto.


instance_mode

0 => Normal dungeon / Normal old raid / Normal 10 man raid
1 => Heroic dungeon / Normal 25man Raid 
2 => Heroic 10man Raid 
3 => Heroic 25man raid 
4 => All of the above


type

1 => Melee
2 => Ranged
3 => Flee
4 => Spell
5 => Call For Help


Event (Unused!)

0 => Enter Combat (This is working)
1 => Leave Combat
2 => Damage Taken (This is working)
3 => Target Cast Spell
4 => Target Parried
5 => Target Dodged
6 => Target Blocked
7 => Target Critically Hit
8 => Target Died
9 => Target Died (?)
10 => Unit Parried
11 => Unit Dodged
12 => Unit Blocked
13 => Unit Critical Hit
14 => Unit Died
15 => Assisting Target Died (Pet)
16 => Follow Owner


chance

The chance the spell has to be cast.


maxCount

0 => infinite count
x => x counts the spell is cast.


spell

ID of the spell that will be cast.


spelltype

1 => Root
2 => Heal
3 => Stun
4 => Fear
5 => Silence
6 => Curse
7 => AoE Damage
8 => Damage
9 => Summon
10 => Buff Spell
11 => Debuff Spell


targettype_overwrite

0 => Null
1 => Random Target
2 => Target Location
3 => Creature Location
4 => Self
5 => Owner - (Pets / Slave cast on their Owner)


cooldown_overwrite

Value in milliseconds (1000 = 1 sec)


floatMisc1

If (type = FLEE [3]) then this should be the Health Percent it flees at. Default: 0.2f.
If (type = CALLFORHELP [5]) then this should be the Health Percent it calls for health at. Default: 0.2f


Misc2

If (type = FLEE [3]) then this should be the time it flees for, in milliseconds. Default: 10000ms (10 seconds).


SQL Structure

CREATE TABLE `ai_agents` (
  `entry` int(11) unsigned NOT NULL default '0',
  `instance_mode` int(10) unsigned NOT NULL default '4',
  `type` smallint(5) unsigned NOT NULL default '0',
  `event` int(11) unsigned NOT NULL default '0',
  `chance` int(11) unsigned NOT NULL default '0',
  `maxcount` int(11) unsigned NOT NULL default '0',
  `spell` int(11) unsigned NOT NULL default '0',
  `spelltype` int(11) unsigned NOT NULL default '0',
  `targettype_overwrite` int(11) NOT NULL default '-1',
  `cooldown_overwrite` int(11) NOT NULL default '-1',
  `floatMisc1` float NOT NULL default '0',
  `Misc2` int(11) unsigned NOT NULL default '0',
  PRIMARY KEY  (`entry`,`type`,`spell`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='AI System';
Personal tools