Scripts/Howling Fjord: Fix horde version of Of Keys and Cages
This commit is contained in:
@@ -1192,7 +1192,8 @@ class go_massive_seaforium_charge : public GameObjectScript
|
|||||||
|
|
||||||
enum OfKeysAndCages
|
enum OfKeysAndCages
|
||||||
{
|
{
|
||||||
QUEST_OF_KEYS_AND_CAGES = 11231,
|
QUEST_ALLIANCE_OF_KEYS_AND_CAGES = 11231,
|
||||||
|
QUEST_HORDE_OF_KEYS_AND_CAGES = 11265,
|
||||||
NPC_GJALERBRON_PRISONER = 24035,
|
NPC_GJALERBRON_PRISONER = 24035,
|
||||||
SAY_FREE = 0,
|
SAY_FREE = 0,
|
||||||
};
|
};
|
||||||
@@ -1204,7 +1205,8 @@ class go_gjalerbron_cage : public GameObjectScript
|
|||||||
|
|
||||||
bool OnGossipHello(Player* player, GameObject* go)
|
bool OnGossipHello(Player* player, GameObject* go)
|
||||||
{
|
{
|
||||||
if (player->GetQuestStatus(QUEST_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE)
|
if ((player->GetTeamId() == TEAM_ALLIANCE && player->GetQuestStatus(QUEST_ALLIANCE_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE) ||
|
||||||
|
(player->GetTeamId() == TEAM_HORDE && player->GetQuestStatus(QUEST_HORDE_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE))
|
||||||
{
|
{
|
||||||
if (Creature* prisoner = go->FindNearestCreature(NPC_GJALERBRON_PRISONER, 5.0f))
|
if (Creature* prisoner = go->FindNearestCreature(NPC_GJALERBRON_PRISONER, 5.0f))
|
||||||
{
|
{
|
||||||
@@ -1232,7 +1234,8 @@ class go_large_gjalerbron_cage : public GameObjectScript
|
|||||||
|
|
||||||
bool OnGossipHello(Player* player, GameObject* go)
|
bool OnGossipHello(Player* player, GameObject* go)
|
||||||
{
|
{
|
||||||
if (player->GetQuestStatus(QUEST_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE)
|
if ((player->GetTeamId() == TEAM_ALLIANCE && player->GetQuestStatus(QUEST_ALLIANCE_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE) ||
|
||||||
|
(player->GetTeamId() == TEAM_HORDE && player->GetQuestStatus(QUEST_HORDE_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE))
|
||||||
{
|
{
|
||||||
std::list<Creature*> prisonerList;
|
std::list<Creature*> prisonerList;
|
||||||
GetCreatureListWithEntryInGrid(prisonerList, go, NPC_GJALERBRON_PRISONER, INTERACTION_DISTANCE);
|
GetCreatureListWithEntryInGrid(prisonerList, go, NPC_GJALERBRON_PRISONER, INTERACTION_DISTANCE);
|
||||||
|
|||||||
Reference in New Issue
Block a user