[11311] Add SCRIPT_COMMAND_ATTACK_START to initiate attack by creature.

../docs/script_commands.txt updated for details

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-04-03 19:52:06 +02:00
parent b92ebd994f
commit acb6372d29
5 changed files with 102 additions and 1 deletions

View file

@ -90,6 +90,8 @@ enum eScriptCommand
SCRIPT_COMMAND_SET_RUN = 25, // source=any, target=creature
// datalong= bool 0=off, 1=on
// datalong2=creature entry, datalong3=search radius
SCRIPT_COMMAND_ATTACK_START = 26, // source = Creature (or WorldObject when creature entry are defined), target = Player
// datalong2 = creature entry (searching for a buddy, closest to source), datalong3 = creature search radius
};
#define MAX_TEXT_ID 4 // used for SCRIPT_COMMAND_TALK
@ -271,6 +273,15 @@ struct ScriptInfo
uint32 searchRadius; // datalong3
} run;
struct // SCRIPT_COMMAND_ATTACK_START (26)
{
uint32 empty1; // datalong
uint32 creatureEntry; // datalong2
uint32 searchRadius; // datalong3
uint32 empty2; // datalong4
uint32 flags; // data_flags
} attack;
struct
{
uint32 data[9];