aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/world/go_scripts.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/world/go_scripts.cpp b/src/bindings/scripts/scripts/world/go_scripts.cpp
index e434d18b13f..f09817a45fb 100644
--- a/src/bindings/scripts/scripts/world/go_scripts.cpp
+++ b/src/bindings/scripts/scripts/world/go_scripts.cpp
@@ -471,6 +471,14 @@ bool GOHello_go_bashir_crystalforge(Player* pPlayer, GameObject* pGO)
return false;
}
+bool GOHello_go_wg2voa_portal(Player* pPlayer, GameObject* pGO)
+{
+ // teleport player inside VoA if faction controls WG, core has already set faction for this GO
+ pPlayer->TeleportTo(571,5405.61,2854.35,418.90,2.4636);
+ pPlayer->SetPvP(false);
+ return false;
+}
+
void AddSC_go_scripts()
{
Script *newscript;
@@ -580,5 +588,10 @@ void AddSC_go_scripts()
newscript->Name = "go_bashir_crystalforge";
newscript->pGOHello = &GOHello_go_bashir_crystalforge;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "go_wg2voa_portal";
+ newscript->pGOHello = &GOHello_go_wg2voa_portal;
+ newscript->RegisterSelf();
}