*Remove event_ai from script folder.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-17 15:36:10 -05:00
parent f0cbed1ad8
commit b9d8bdeddd
7 changed files with 18 additions and 41 deletions

View File

@@ -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

View File

@@ -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"
>

View File

@@ -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"
>

View File

@@ -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;

View File

@@ -1,5 +0,0 @@
#ifndef SC_EVENTAI_H
#define SC_EVENTAI_H
ACTION_T_SUMMON_GO = 39, //GameObjectID, DespawnTime in ms
#endif

View File

@@ -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;
}
}

View File

@@ -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,
};