Skip to content
This repository
Browse code

DB/Triggers: Implemented arenas triggers teleport to stop people that…

… go outside the walls.
  • Loading branch information...
commit 6e6ed50ab3e2f2559acf92f998516d0e7d094968 1 parent 1ceb779
Kinzcool Kinzcool authored
27 sql/updates/world/2013_04_07_00_world_areatrigger_teleport.sql
... ... @@ -0,0 +1,27 @@
  1 +DELETE FROM `areatrigger_teleport` WHERE `id` IN (4917, 4919, 4921, 4922, 4923, 4924, 4925, 4927, 4928, 4929, 4930, 4931, 4932, 4933, 4934, 4935, 4936, 4941, 4944, 5326, 5328, 5329, 5330, 5331, 5447);
  2 +INSERT INTO `areatrigger_teleport` (`id`, `target_map`, `target_position_x`, `target_position_y`, `target_position_z`, `target_orientation`, `name`) VALUES
  3 +(4917, 559, 4054.57, 2923.23, 13.8179, 0, 'Arena - Nagrand - Teleport Target - Game On'),
  4 +(4919, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  5 +(4921, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  6 +(4922, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  7 +(4923, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  8 +(4924, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  9 +(4925, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  10 +(4927, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  11 +(4928, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  12 +(4929, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  13 +(4930, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  14 +(4931, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  15 +(4932, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  16 +(4933, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  17 +(4934, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  18 +(4935, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  19 +(4936, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  20 +(4941, 572, 1286.57, 1667.4, 39.602, 0, 'Arena - Undercity - Teleport Target - Game On'),
  21 +(4944, 562, 6238.89, 264.155, 0.894302, 0, 'Arena - Bladesedge - Teleport Target - Game On'),
  22 +(5326, 617, 1291.57, 792.965, 8.11463, 0, 'Arena - Dalaran Arena - Teleport Target'),
  23 +(5328, 617, 1291.57, 792.965, 8.11463, 0, 'Arena - Dalaran Arena - Teleport Target'),
  24 +(5329, 617, 1291.57, 792.965, 8.11463, 0, 'Arena - Dalaran Arena - Teleport Target'),
  25 +(5330, 617, 1291.57, 792.965, 8.11463, 0, 'Arena - Dalaran Arena - Teleport Target'),
  26 +(5331, 617, 1291.57, 792.965, 8.11463, 0, 'Arena - Dalaran Arena - Teleport Target'),
  27 +(5447, 618, 763.365, -284.29, 28.2767, 0, 'Arena - Orgrimmar - Teleport Target 3');
6 src/server/game/Battlegrounds/Zones/BattlegroundBE.cpp
@@ -94,12 +94,6 @@ void BattlegroundBE::HandleKillPlayer(Player* player, Player* killer)
94 94 CheckArenaWinConditions();
95 95 }
96 96
97   -bool BattlegroundBE::HandlePlayerUnderMap(Player* player)
98   -{
99   - player->TeleportTo(GetMapId(), 6238.930176f, 262.963470f, 0.889519f, player->GetOrientation());
100   - return true;
101   -}
102   -
103 97 void BattlegroundBE::HandleAreaTrigger(Player* player, uint32 trigger)
104 98 {
105 99 if (GetStatus() != STATUS_IN_PROGRESS)
1  src/server/game/Battlegrounds/Zones/BattlegroundBE.h
@@ -59,7 +59,6 @@ class BattlegroundBE : public Battleground
59 59 void Reset();
60 60 void FillInitialWorldStates(WorldPacket &d);
61 61 void HandleKillPlayer(Player* player, Player* killer);
62   - bool HandlePlayerUnderMap(Player* player);
63 62
64 63 /* Scorekeeping */
65 64 void UpdatePlayerScore(Player* Source, uint32 type, uint32 value, bool doAddHonor = true);
6 src/server/game/Battlegrounds/Zones/BattlegroundDS.cpp
@@ -201,12 +201,6 @@ void BattlegroundDS::HandleAreaTrigger(Player* player, uint32 trigger)
201 201 }
202 202 }
203 203
204   -bool BattlegroundDS::HandlePlayerUnderMap(Player* player)
205   -{
206   - player->TeleportTo(GetMapId(), 1299.046f, 784.825f, 9.338f, 2.422f);
207   - return true;
208   -}
209   -
210 204 void BattlegroundDS::FillInitialWorldStates(WorldPacket &data)
211 205 {
212 206 data << uint32(3610) << uint32(1); // 9 show
1  src/server/game/Battlegrounds/Zones/BattlegroundDS.h
@@ -96,7 +96,6 @@ class BattlegroundDS : public Battleground
96 96 void Reset();
97 97 void FillInitialWorldStates(WorldPacket &d);
98 98 void HandleKillPlayer(Player* player, Player* killer);
99   - bool HandlePlayerUnderMap(Player* player);
100 99 private:
101 100 uint32 _waterfallTimer;
102 101 uint8 _waterfallStatus;
6 src/server/game/Battlegrounds/Zones/BattlegroundNA.cpp
@@ -91,12 +91,6 @@ void BattlegroundNA::HandleKillPlayer(Player* player, Player* killer)
91 91 CheckArenaWinConditions();
92 92 }
93 93
94   -bool BattlegroundNA::HandlePlayerUnderMap(Player* player)
95   -{
96   - player->TeleportTo(GetMapId(), 4055.504395f, 2919.660645f, 13.611241f, player->GetOrientation());
97   - return true;
98   -}
99   -
100 94 void BattlegroundNA::HandleAreaTrigger(Player* player, uint32 trigger)
101 95 {
102 96 if (GetStatus() != STATUS_IN_PROGRESS)
1  src/server/game/Battlegrounds/Zones/BattlegroundNA.h
@@ -58,6 +58,5 @@ class BattlegroundNA : public Battleground
58 58 void Reset();
59 59 void FillInitialWorldStates(WorldPacket &d);
60 60 void HandleKillPlayer(Player* player, Player* killer);
61   - bool HandlePlayerUnderMap(Player* player);
62 61 };
63 62 #endif
6 src/server/game/Battlegrounds/Zones/BattlegroundRL.cpp
@@ -91,12 +91,6 @@ void BattlegroundRL::HandleKillPlayer(Player* player, Player* killer)
91 91 CheckArenaWinConditions();
92 92 }
93 93
94   -bool BattlegroundRL::HandlePlayerUnderMap(Player* player)
95   -{
96   - player->TeleportTo(GetMapId(), 1285.810547f, 1667.896851f, 39.957642f, player->GetOrientation());
97   - return true;
98   -}
99   -
100 94 void BattlegroundRL::HandleAreaTrigger(Player* player, uint32 trigger)
101 95 {
102 96 if (GetStatus() != STATUS_IN_PROGRESS)
1  src/server/game/Battlegrounds/Zones/BattlegroundRL.h
@@ -54,6 +54,5 @@ class BattlegroundRL : public Battleground
54 54 void HandleAreaTrigger(Player* Source, uint32 Trigger);
55 55 bool SetupBattleground();
56 56 void HandleKillPlayer(Player* player, Player* killer);
57   - bool HandlePlayerUnderMap(Player* player);
58 57 };
59 58 #endif
6 src/server/game/Battlegrounds/Zones/BattlegroundRV.cpp
@@ -135,12 +135,6 @@ void BattlegroundRV::HandleKillPlayer(Player* player, Player* killer)
135 135 CheckArenaWinConditions();
136 136 }
137 137
138   -bool BattlegroundRV::HandlePlayerUnderMap(Player* player)
139   -{
140   - player->TeleportTo(GetMapId(), 763.5f, -284, 28.276f, 2.422f);
141   - return true;
142   -}
143   -
144 138 void BattlegroundRV::HandleAreaTrigger(Player* player, uint32 trigger)
145 139 {
146 140 if (GetStatus() != STATUS_IN_PROGRESS)
1  src/server/game/Battlegrounds/Zones/BattlegroundRV.h
@@ -108,7 +108,6 @@ class BattlegroundRV : public Battleground
108 108 void HandleAreaTrigger(Player* Source, uint32 Trigger);
109 109 bool SetupBattleground();
110 110 void HandleKillPlayer(Player* player, Player* killer);
111   - bool HandlePlayerUnderMap(Player* player);
112 111
113 112 private:
114 113 uint32 Timer;

3 comments on commit 6e6ed50

2010phenix

interesting solution.
thx man.

Dem0nid

Gj, thanks!

Georgios O. Burnham H.

Greate.

Please sign in to comment.
Something went wrong with that request. Please try again.