aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/5866_gameobject_template.sql1
-rw-r--r--src/bindings/scripts/scripts/world/go_scripts.cpp13
2 files changed, 14 insertions, 0 deletions
diff --git a/sql/updates/5866_gameobject_template.sql b/sql/updates/5866_gameobject_template.sql
new file mode 100644
index 00000000000..26f89e1d354
--- /dev/null
+++ b/sql/updates/5866_gameobject_template.sql
@@ -0,0 +1 @@
+UPDATE `gameobject_template` SET `type`='10',`data0`='0',`ScriptName`='go_wg2voa_portal' WHERE (`entry`='190763');
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();
}