aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-23 13:24:06 -0700
committermaximius <none@none>2009-09-23 13:24:06 -0700
commita96c704f4647dedb5bbc27aaff209783c31a1db5 (patch)
treeb9fa4f407dee8961d2def964106fcd2c4d63f13c /src
parent36a2633f5dcd02d44050171cb081060797e12453 (diff)
*quest 12231 - The Bear God's Offspring, by Destalker
*SD2 enum escort faction, patch by manuel *Extend the Chathandler to TrinityScript, by Hawthorne --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/include/precompiled.h1
-rw-r--r--src/bindings/scripts/scripts/northrend/grizzly_hills.cpp11
-rw-r--r--src/bindings/scripts/system/system.h24
-rw-r--r--src/game/Chat.h2
4 files changed, 32 insertions, 6 deletions
diff --git a/src/bindings/scripts/include/precompiled.h b/src/bindings/scripts/include/precompiled.h
index b468fbfc2f9..46335c2d9eb 100644
--- a/src/bindings/scripts/include/precompiled.h
+++ b/src/bindings/scripts/include/precompiled.h
@@ -17,6 +17,7 @@
#include "sc_instance.h"
#include "CombatAI.h"
#include "PassiveAI.h"
+#include "Chat.h"
#ifdef WIN32
#include <windows.h>
diff --git a/src/bindings/scripts/scripts/northrend/grizzly_hills.cpp b/src/bindings/scripts/scripts/northrend/grizzly_hills.cpp
index 976122cd296..ebc4188983a 100644
--- a/src/bindings/scripts/scripts/northrend/grizzly_hills.cpp
+++ b/src/bindings/scripts/scripts/northrend/grizzly_hills.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Grizzly_Hills
SD%Complete: 80
-SDComment: Quest support: 12247
+SDComment: Quest support: 12231, 12247
SDCategory: Grizzly Hills
EndScriptData */
@@ -49,7 +49,8 @@ enum
NPC_ORSONN_CREDIT = 27322,
NPC_KODIAN_CREDIT = 27321,
- QUEST_CHILDREN_OF_URSOC = 12247
+ QUEST_CHILDREN_OF_URSOC = 12247,
+ QUEST_THE_BEAR_GODS_OFFSPRING = 12231
};
bool GossipHello_npc_orsonn_and_kodian(Player* pPlayer, Creature* pCreature)
@@ -57,12 +58,12 @@ bool GossipHello_npc_orsonn_and_kodian(Player* pPlayer, Creature* pCreature)
if (pCreature->isQuestGiver())
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
- if (pPlayer->GetQuestStatus(QUEST_CHILDREN_OF_URSOC) == QUEST_STATUS_INCOMPLETE)
+ if (pPlayer->GetQuestStatus(QUEST_CHILDREN_OF_URSOC) == QUEST_STATUS_INCOMPLETE || pPlayer->GetQuestStatus(QUEST_THE_BEAR_GODS_OFFSPRING) == QUEST_STATUS_INCOMPLETE)
{
switch(pCreature->GetEntry())
{
case NPC_ORSONN:
- if (!pPlayer->GetReqKillOrCastCurrentCount(QUEST_CHILDREN_OF_URSOC, NPC_ORSONN_CREDIT))
+ if (!pPlayer->GetReqKillOrCastCurrentCount(QUEST_CHILDREN_OF_URSOC, NPC_ORSONN_CREDIT) || !pPlayer->GetReqKillOrCastCurrentCount(QUEST_THE_BEAR_GODS_OFFSPRING, NPC_ORSONN_CREDIT))
{
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ORSONN1, pCreature->GetGUID());
@@ -70,7 +71,7 @@ bool GossipHello_npc_orsonn_and_kodian(Player* pPlayer, Creature* pCreature)
}
break;
case NPC_KODIAN:
- if (!pPlayer->GetReqKillOrCastCurrentCount(QUEST_CHILDREN_OF_URSOC, NPC_KODIAN_CREDIT))
+ if (!pPlayer->GetReqKillOrCastCurrentCount(QUEST_CHILDREN_OF_URSOC, NPC_KODIAN_CREDIT) || !pPlayer->GetReqKillOrCastCurrentCount(QUEST_THE_BEAR_GODS_OFFSPRING, NPC_KODIAN_CREDIT))
{
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM4, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+4);
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_KODIAN1, pCreature->GetGUID());
diff --git a/src/bindings/scripts/system/system.h b/src/bindings/scripts/system/system.h
index a9d35b6f3f0..479f856514a 100644
--- a/src/bindings/scripts/system/system.h
+++ b/src/bindings/scripts/system/system.h
@@ -9,6 +9,30 @@ extern DatabaseType TScriptDB;
#define TEXT_SOURCE_RANGE -1000000 //the amount of entries each text source has available
+//TODO: find better namings and definitions.
+//N=Neutral, A=Alliance, H=Horde.
+//NEUTRAL or FRIEND = Hostility to player surroundings (not a good definition)
+//ACTIVE or PASSIVE = Hostility to environment surroundings.
+enum eEscortFaction
+{
+ FACTION_ESCORT_A_NEUTRAL_PASSIVE = 10,
+ FACTION_ESCORT_H_NEUTRAL_PASSIVE = 33,
+ FACTION_ESCORT_N_NEUTRAL_PASSIVE = 113,
+
+ FACTION_ESCORT_A_NEUTRAL_ACTIVE = 231,
+ FACTION_ESCORT_H_NEUTRAL_ACTIVE = 232,
+ FACTION_ESCORT_N_NEUTRAL_ACTIVE = 250,
+
+ FACTION_ESCORT_N_FRIEND_PASSIVE = 290,
+ FACTION_ESCORT_N_FRIEND_ACTIVE = 495,
+
+ FACTION_ESCORT_A_PASSIVE = 774,
+ FACTION_ESCORT_H_PASSIVE = 775,
+
+ FACTION_ESCORT_N_ACTIVE = 1986,
+ FACTION_ESCORT_H_ACTIVE = 2046
+};
+
struct ScriptPointMove
{
uint32 uiCreatureEntry;
diff --git a/src/game/Chat.h b/src/game/Chat.h
index f7b948c2cea..796c0acaa70 100644
--- a/src/game/Chat.h
+++ b/src/game/Chat.h
@@ -41,7 +41,7 @@ class ChatCommand
ChatCommand * ChildCommands;
};
-class ChatHandler
+class TRINITY_DLL_SPEC ChatHandler
{
public:
explicit ChatHandler(WorldSession* session) : m_session(session) {}