Yet more tabs to spaces
--HG-- branch : trunk
This commit is contained in:
@@ -167,91 +167,91 @@ CreatureAI* GetAI_npc_kyle_frenzied(Creature *_Creature)
|
|||||||
float wp_plain_vision[50][3] =
|
float wp_plain_vision[50][3] =
|
||||||
{
|
{
|
||||||
{-2226.32, -408.095, -9.36235},
|
{-2226.32, -408.095, -9.36235},
|
||||||
{-2203.04, -437.212, -5.72498},
|
{-2203.04, -437.212, -5.72498},
|
||||||
{-2163.91, -457.851, -7.09049},
|
{-2163.91, -457.851, -7.09049},
|
||||||
{-2123.87, -448.137, -9.29591},
|
{-2123.87, -448.137, -9.29591},
|
||||||
{-2104.66, -427.166, -6.49513},
|
{-2104.66, -427.166, -6.49513},
|
||||||
{-2101.48, -422.826, -5.3567},
|
{-2101.48, -422.826, -5.3567},
|
||||||
{-2097.56, -417.083, -7.16716},
|
{-2097.56, -417.083, -7.16716},
|
||||||
{-2084.87, -398.626, -9.88973},
|
{-2084.87, -398.626, -9.88973},
|
||||||
{-2072.71, -382.324, -10.2488},
|
{-2072.71, -382.324, -10.2488},
|
||||||
{-2054.05, -356.728, -6.22468},
|
{-2054.05, -356.728, -6.22468},
|
||||||
{-2051.8, -353.645, -5.35791},
|
{-2051.8, -353.645, -5.35791},
|
||||||
{-2049.08, -349.912, -6.15723},
|
{-2049.08, -349.912, -6.15723},
|
||||||
{-2030.6, -310.724, -9.59302},
|
{-2030.6, -310.724, -9.59302},
|
||||||
{-2002.15, -249.308, -10.8124},
|
{-2002.15, -249.308, -10.8124},
|
||||||
{-1972.85, -195.811, -10.6316},
|
{-1972.85, -195.811, -10.6316},
|
||||||
{-1940.93, -147.652, -11.7055},
|
{-1940.93, -147.652, -11.7055},
|
||||||
{-1888.06, -81.943, -11.4404},
|
{-1888.06, -81.943, -11.4404},
|
||||||
{-1837.05, -34.0109, -12.258},
|
{-1837.05, -34.0109, -12.258},
|
||||||
{-1796.12, -14.6462, -10.3581},
|
{-1796.12, -14.6462, -10.3581},
|
||||||
{-1732.61, -4.27746, -10.0213},
|
{-1732.61, -4.27746, -10.0213},
|
||||||
{-1688.94, -0.829945, -11.7103},
|
{-1688.94, -0.829945, -11.7103},
|
||||||
{-1681.32, 13.0313, -9.48056},
|
{-1681.32, 13.0313, -9.48056},
|
||||||
{-1677.04, 36.8349, -7.10318},
|
{-1677.04, 36.8349, -7.10318},
|
||||||
{-1675.2, 68.559, -8.95384},
|
{-1675.2, 68.559, -8.95384},
|
||||||
{-1676.57, 89.023, -9.65104},
|
{-1676.57, 89.023, -9.65104},
|
||||||
{-1678.16, 110.939, -10.1782},
|
{-1678.16, 110.939, -10.1782},
|
||||||
{-1677.86, 128.681, -5.73869},
|
{-1677.86, 128.681, -5.73869},
|
||||||
{-1675.27, 144.324, -3.47916},
|
{-1675.27, 144.324, -3.47916},
|
||||||
{-1671.7, 163.169, -1.23098},
|
{-1671.7, 163.169, -1.23098},
|
||||||
{-1666.61, 181.584, 5.26145},
|
{-1666.61, 181.584, 5.26145},
|
||||||
{-1661.51, 196.154, 8.95252},
|
{-1661.51, 196.154, 8.95252},
|
||||||
{-1655.47, 210.811, 8.38727},
|
{-1655.47, 210.811, 8.38727},
|
||||||
{-1647.07, 226.947, 5.27755},
|
{-1647.07, 226.947, 5.27755},
|
||||||
{-1621.65, 232.91, 2.69579},
|
{-1621.65, 232.91, 2.69579},
|
||||||
{-1600.23, 237.641, 2.98539},
|
{-1600.23, 237.641, 2.98539},
|
||||||
{-1576.07, 242.546, 4.66541},
|
{-1576.07, 242.546, 4.66541},
|
||||||
{-1554.57, 248.494, 6.60377},
|
{-1554.57, 248.494, 6.60377},
|
||||||
{-1547.53, 259.302, 10.6741},
|
{-1547.53, 259.302, 10.6741},
|
||||||
{-1541.7, 269.847, 16.4418},
|
{-1541.7, 269.847, 16.4418},
|
||||||
{-1539.83, 278.989, 21.0597},
|
{-1539.83, 278.989, 21.0597},
|
||||||
{-1540.16, 290.219, 27.8247},
|
{-1540.16, 290.219, 27.8247},
|
||||||
{-1538.99, 298.983, 34.0032},
|
{-1538.99, 298.983, 34.0032},
|
||||||
{-1540.38, 307.337, 41.3557},
|
{-1540.38, 307.337, 41.3557},
|
||||||
{-1536.61, 314.884, 48.0179},
|
{-1536.61, 314.884, 48.0179},
|
||||||
{-1532.42, 323.277, 55.6667},
|
{-1532.42, 323.277, 55.6667},
|
||||||
{-1528.77, 329.774, 61.1525},
|
{-1528.77, 329.774, 61.1525},
|
||||||
{-1525.65, 333.18, 63.2161},
|
{-1525.65, 333.18, 63.2161},
|
||||||
{-1517.01, 350.713, 62.4286},
|
{-1517.01, 350.713, 62.4286},
|
||||||
{-1511.39, 362.537, 62.4539},
|
{-1511.39, 362.537, 62.4539},
|
||||||
{-1508.68, 366.822, 62.733}
|
{-1508.68, 366.822, 62.733}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TRINITY_DLL_DECL npc_plains_visionAI : public ScriptedAI
|
struct TRINITY_DLL_DECL npc_plains_visionAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
npc_plains_visionAI(Creature *c) : ScriptedAI(c) {Reset();}
|
npc_plains_visionAI(Creature *c) : ScriptedAI(c) {Reset();}
|
||||||
|
|
||||||
bool newWaypoint;
|
bool newWaypoint;
|
||||||
uint8 WayPointId;
|
uint8 WayPointId;
|
||||||
uint8 amountWP;
|
uint8 amountWP;
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
WayPointId = 0;
|
WayPointId = 0;
|
||||||
newWaypoint = true;
|
newWaypoint = true;
|
||||||
amountWP = 49;
|
amountWP = 49;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aggro(Unit* who){}
|
void Aggro(Unit* who){}
|
||||||
|
|
||||||
void MovementInform(uint32 type, uint32 id)
|
void MovementInform(uint32 type, uint32 id)
|
||||||
{
|
{
|
||||||
if(type != POINT_MOTION_TYPE)
|
if(type != POINT_MOTION_TYPE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (id < amountWP)
|
if (id < amountWP)
|
||||||
{
|
{
|
||||||
++WayPointId;
|
++WayPointId;
|
||||||
newWaypoint = true;
|
newWaypoint = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_creature->setDeathState(JUST_DIED);
|
m_creature->setDeathState(JUST_DIED);
|
||||||
m_creature->RemoveCorpse();
|
m_creature->RemoveCorpse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
{
|
{
|
||||||
if (newWaypoint)
|
if (newWaypoint)
|
||||||
@@ -259,16 +259,16 @@ struct TRINITY_DLL_DECL npc_plains_visionAI : public ScriptedAI
|
|||||||
m_creature->GetMotionMaster()->MovePoint(WayPointId, wp_plain_vision[WayPointId][0], wp_plain_vision[WayPointId][1], wp_plain_vision[WayPointId][2]);
|
m_creature->GetMotionMaster()->MovePoint(WayPointId, wp_plain_vision[WayPointId][0], wp_plain_vision[WayPointId][1], wp_plain_vision[WayPointId][2]);
|
||||||
newWaypoint = false;
|
newWaypoint = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
CreatureAI* GetAI_npc_plains_vision(Creature *_Creature)
|
CreatureAI* GetAI_npc_plains_vision(Creature *_Creature)
|
||||||
{
|
{
|
||||||
return new npc_plains_visionAI (_Creature);
|
return new npc_plains_visionAI (_Creature);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#####
|
/*#####
|
||||||
#
|
#
|
||||||
######*/
|
######*/
|
||||||
|
|
||||||
void AddSC_mulgore()
|
void AddSC_mulgore()
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ bool QuestAccept_npc_swiftmountain(Player* player, Creature* creature, Quest con
|
|||||||
if (quest->GetQuestId() == QUEST_HOMEWARD_BOUND)
|
if (quest->GetQuestId() == QUEST_HOMEWARD_BOUND)
|
||||||
{
|
{
|
||||||
((npc_escortAI*)(creature->AI()))->Start(true, true, false, player->GetGUID());
|
((npc_escortAI*)(creature->AI()))->Start(true, true, false, player->GetGUID());
|
||||||
DoScriptText(SAY_READY, creature, player);
|
DoScriptText(SAY_READY, creature, player);
|
||||||
creature->setFaction(113);
|
creature->setFaction(113);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,9 +193,9 @@ CreatureAI* GetAI_npc_swiftmountain(Creature *_Creature)
|
|||||||
# npc_plucky
|
# npc_plucky
|
||||||
######*/
|
######*/
|
||||||
|
|
||||||
#define GOSSIP_P "<Learn Secret phrase>"
|
#define GOSSIP_P "<Learn Secret phrase>"
|
||||||
|
|
||||||
#define SPELL_TRANSFORM_HUMAN 9192
|
#define SPELL_TRANSFORM_HUMAN 9192
|
||||||
#define QUEST_GET_THE_SCOOP 1950
|
#define QUEST_GET_THE_SCOOP 1950
|
||||||
|
|
||||||
struct TRINITY_DLL_DECL npc_pluckyAI : public ScriptedAI
|
struct TRINITY_DLL_DECL npc_pluckyAI : public ScriptedAI
|
||||||
@@ -209,45 +209,45 @@ struct TRINITY_DLL_DECL npc_pluckyAI : public ScriptedAI
|
|||||||
uint32 ChickenTimer;
|
uint32 ChickenTimer;
|
||||||
|
|
||||||
void Reset() {
|
void Reset() {
|
||||||
|
|
||||||
Transformed = false;
|
Transformed = false;
|
||||||
Chicken = false;
|
Chicken = false;
|
||||||
m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||||
Timer = 0;
|
Timer = 0;
|
||||||
ChickenTimer = 0;
|
ChickenTimer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aggro(Unit *who){}
|
void Aggro(Unit *who){}
|
||||||
|
|
||||||
void TransformHuman(uint32 emoteid)
|
void TransformHuman(uint32 emoteid)
|
||||||
{
|
{
|
||||||
if (!Transformed)
|
if (!Transformed)
|
||||||
{
|
{
|
||||||
Transformed = true;
|
Transformed = true;
|
||||||
DoCast(m_creature, SPELL_TRANSFORM_HUMAN);
|
DoCast(m_creature, SPELL_TRANSFORM_HUMAN);
|
||||||
Timer = 120000;
|
Timer = 120000;
|
||||||
if (emoteid == TEXTEMOTE_BECKON)
|
if (emoteid == TEXTEMOTE_BECKON)
|
||||||
m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ChickenTimer = 1500;
|
ChickenTimer = 1500;
|
||||||
Chicken = true;
|
Chicken = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
{
|
{
|
||||||
if (Transformed)
|
if (Transformed)
|
||||||
{
|
{
|
||||||
if (Timer < diff)
|
if (Timer < diff)
|
||||||
Reset();
|
Reset();
|
||||||
else Timer-=diff;
|
else Timer-=diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Chicken)
|
if(Chicken)
|
||||||
{
|
{
|
||||||
if (ChickenTimer < diff)
|
if (ChickenTimer < diff)
|
||||||
{
|
{
|
||||||
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_WAVE);
|
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_WAVE);
|
||||||
Chicken = false;
|
Chicken = false;
|
||||||
@@ -269,7 +269,7 @@ bool ReceiveEmote_npc_plucky( Player *player, Creature *_Creature, uint32 emote
|
|||||||
_Creature->SetInFront(player);
|
_Creature->SetInFront(player);
|
||||||
((npc_pluckyAI*)((Creature*)_Creature)->AI())->TransformHuman(emote);
|
((npc_pluckyAI*)((Creature*)_Creature)->AI())->TransformHuman(emote);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ bool GossipHello_npc_plucky(Player *player, Creature *_Creature)
|
|||||||
if(player->GetQuestStatus(QUEST_GET_THE_SCOOP) == QUEST_STATUS_INCOMPLETE)
|
if(player->GetQuestStatus(QUEST_GET_THE_SCOOP) == QUEST_STATUS_INCOMPLETE)
|
||||||
player->ADD_GOSSIP_ITEM(0, GOSSIP_P, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
player->ADD_GOSSIP_ITEM(0, GOSSIP_P, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||||
player->SEND_GOSSIP_MENU(738, _Creature->GetGUID());
|
player->SEND_GOSSIP_MENU(738, _Creature->GetGUID());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -300,7 +300,7 @@ return new npc_pluckyAI(_Creature);
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*#####
|
/*#####
|
||||||
#
|
#
|
||||||
######*/
|
######*/
|
||||||
|
|
||||||
void AddSC_thousand_needles()
|
void AddSC_thousand_needles()
|
||||||
|
|||||||
@@ -4996,7 +4996,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
|||||||
}
|
}
|
||||||
case 47977: // Magic Broom
|
case 47977: // Magic Broom
|
||||||
{
|
{
|
||||||
if(!unitTarget)
|
if(!unitTarget)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(unitTarget)
|
if(unitTarget)
|
||||||
|
|||||||
Reference in New Issue
Block a user