mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Remove event_ai from script folder.
--HG-- branch : trunk
This commit is contained in:
@@ -15,8 +15,6 @@ SET(trinityscript_LIB_SRCS
|
||||
scripts/boss/boss_lethon.cpp
|
||||
scripts/boss/boss_taerar.cpp
|
||||
scripts/boss/boss_ysondre.cpp
|
||||
scripts/creature/mob_event_ai.cpp
|
||||
scripts/creature/mob_event_ai.h
|
||||
scripts/creature/mob_generic_creature.cpp
|
||||
scripts/creature/simple_ai.cpp
|
||||
scripts/creature/simple_ai.h
|
||||
|
||||
@@ -386,14 +386,6 @@
|
||||
<Filter
|
||||
Name="creature"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\scripts\creature\mob_event_ai.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\scripts\creature\mob_event_ai.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\scripts\creature\mob_generic_creature.cpp"
|
||||
>
|
||||
|
||||
@@ -385,14 +385,6 @@
|
||||
<Filter
|
||||
Name="creature"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\scripts\creature\mob_event_ai.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\scripts\creature\mob_event_ai.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\scripts\creature\mob_generic_creature.cpp"
|
||||
>
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#include "precompiled.h"
|
||||
case ACTION_T_SUMMON_GO:
|
||||
{
|
||||
GameObject* pObject = NULL;
|
||||
|
||||
float x,y,z;
|
||||
m_creature->GetPosition(x,y,z);
|
||||
pObject = m_creature->SummonGameObject(param1, x, y, z, 0, 0, 0, 0, 0, param2);
|
||||
if (!pObject)
|
||||
{
|
||||
if (EAI_ErrorLevel > 0)
|
||||
error_db_log( "SD2: EventAI failed to spawn object %u. Spawn event %d is on creature %d", param1, EventId, m_creature->GetEntry());
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1,5 +0,0 @@
|
||||
#ifndef SC_EVENTAI_H
|
||||
#define SC_EVENTAI_H
|
||||
ACTION_T_SUMMON_GO = 39, //GameObjectID, DespawnTime in ms
|
||||
#endif
|
||||
|
||||
@@ -984,6 +984,20 @@ void CreatureEventAI::ProcessAction(uint16 type, uint32 param1, uint32 param2, u
|
||||
case ACTION_T_ATTACK_START_PULSE:
|
||||
AttackStart(me->SelectNearestTarget((float)param1));
|
||||
break;
|
||||
case ACTION_T_SUMMON_GO:
|
||||
{
|
||||
GameObject* pObject = NULL;
|
||||
|
||||
float x,y,z;
|
||||
m_creature->GetPosition(x,y,z);
|
||||
pObject = m_creature->SummonGameObject(param1, x, y, z, 0, 0, 0, 0, 0, param2);
|
||||
if (!pObject)
|
||||
{
|
||||
if (EAI_ErrorLevel > 0)
|
||||
error_db_log( "SD2: EventAI failed to spawn object %u. Spawn event %d is on creature %d", param1, EventId, m_creature->GetEntry());
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -103,9 +103,10 @@ enum EventAI_ActionType
|
||||
ACTION_T_DIE = 37, //No Params
|
||||
ACTION_T_ZONE_COMBAT_PULSE = 38, //No Params
|
||||
|
||||
ACTION_T_SET_ACTIVE = 101, //Apply
|
||||
ACTION_T_SET_AGGRESSIVE = 102, //Apply
|
||||
ACTION_T_ATTACK_START_PULSE = 103, //Distance
|
||||
ACTION_T_SET_ACTIVE = 101, //Apply
|
||||
ACTION_T_SET_AGGRESSIVE = 102, //Apply
|
||||
ACTION_T_ATTACK_START_PULSE = 103, //Distance
|
||||
ACTION_T_SUMMON_GO = 104, //GameObjectID, DespawnTime in ms
|
||||
|
||||
ACTION_T_END,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user