Skip to content

Commit

Permalink
Core/Battlefield: Fix the invisible wall at the end of wintergrasp Cl…
Browse files Browse the repository at this point in the history
…oses TrinityCore#9422

DB/Strings: fix the error messages from the spirit guides Author Nastrand TrinityCore#9035
  • Loading branch information
Star-lion committed Apr 3, 2013
1 parent bc31dab commit 002040f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
11 changes: 11 additions & 0 deletions sql/updates/world/2013_04_03_01_world_trinity_string.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Add Trinity String for Spirit Guide and wintergrasp battle mage
DELETE FROM `trinity_string` WHERE `entry` IN (20071,20072,20074,20073,20070,20075,20076,20077);
INSERT INTO `trinity_string`(`entry`,`content_default`) VALUES
(20071, 'Guide me to the Sunken Ring Graveyard.'),
(20072, 'Guide me to the Broken Temple Graveyard.'),
(20074, 'Guide me to the Eastspark Graveyard.'),
(20073, 'Guide me to the Westspark Graveyard.'),
(20070, 'Guide me to the Fortress Graveyard.'),
(20075, 'Guide me back to the Horde landing camp.'),
(20076, 'Guide me back to the Alliance landing camp.'),
(20077, 'Queue for Wintergrasp.');
20 changes: 10 additions & 10 deletions src/server/game/Battlefield/Zones/BattlefieldWG.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ enum WGGraveyardId

enum WGGossipText
{
BATTLEFIELD_WG_GOSSIPTEXT_GY_NE = -1850501,
BATTLEFIELD_WG_GOSSIPTEXT_GY_NW = -1850502,
BATTLEFIELD_WG_GOSSIPTEXT_GY_SE = -1850504,
BATTLEFIELD_WG_GOSSIPTEXT_GY_SW = -1850503,
BATTLEFIELD_WG_GOSSIPTEXT_GY_KEEP = -1850500,
BATTLEFIELD_WG_GOSSIPTEXT_GY_HORDE = -1850505,
BATTLEFIELD_WG_GOSSIPTEXT_GY_ALLIANCE = -1850506
BATTLEFIELD_WG_GOSSIPTEXT_GY_NE = 20071,
BATTLEFIELD_WG_GOSSIPTEXT_GY_NW = 20072,
BATTLEFIELD_WG_GOSSIPTEXT_GY_SE = 20074,
BATTLEFIELD_WG_GOSSIPTEXT_GY_SW = 20073,
BATTLEFIELD_WG_GOSSIPTEXT_GY_KEEP = 20070,
BATTLEFIELD_WG_GOSSIPTEXT_GY_HORDE = 20075,
BATTLEFIELD_WG_GOSSIPTEXT_GY_ALLIANCE = 20076
};

enum WintergraspNpcs
Expand Down Expand Up @@ -1127,7 +1127,7 @@ struct BfWGGameObjectBuilding
build->SetDestructibleState(GO_DESTRUCTIBLE_REBUILDING, NULL, true);
if (build->GetEntry() == GO_WINTERGRASP_VAULT_GATE)
if (GameObject* go = build->FindNearestGameObject(GO_WINTERGRASP_KEEP_COLLISION_WALL, 50.0f))
go->EnableCollision(true);
go->SetGoState(GO_STATE_READY);

// Update worldstate
m_State = BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT - (m_Team * 3);
Expand Down Expand Up @@ -1183,8 +1183,8 @@ struct BfWGGameObjectBuilding
break;
case BATTLEFIELD_WG_OBJECTTYPE_DOOR_LAST:
if (GameObject* build = m_WG->GetGameObject(m_BuildGUID))
if (GameObject* go = build->FindNearestGameObject(GO_WINTERGRASP_KEEP_COLLISION_WALL, 10.0f))
go->EnableCollision(false);
if (GameObject* go = build->FindNearestGameObject(GO_WINTERGRASP_KEEP_COLLISION_WALL, 50.0f))
go->SetGoState(GO_STATE_ACTIVE);
m_WG->SetRelicInteractible(true);
if (m_WG->GetRelic())
m_WG->GetRelic()->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE);
Expand Down
2 changes: 1 addition & 1 deletion src/server/scripts/Northrend/zone_wintergrasp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ enum WGqueuenpctext
WG_NPCQUEUE_TEXT_A_NOWAR = 14782,
WG_NPCQUEUE_TEXT_A_QUEUE = 14791,
WG_NPCQUEUE_TEXT_A_WAR = 14781,
WG_NPCQUEUE_TEXTOPTION_JOIN = -1850507,
WG_NPCQUEUE_TEXTOPTION_JOIN = 20077,
};

enum Spells
Expand Down

0 comments on commit 002040f

Please sign in to comment.