MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides > Mangos Guides
Reload this Page Custom Teleporter Script
Mangos Guides This section is for WoW emulated server, Mangos guides.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
Custom Teleporter Script
(#1)
Old
Chrispee's Avatar
Chrispee is Offline
The True Repacker
Rep Power: 5
Reputation: 581
Chrispee is a name known to allChrispee is a name known to allChrispee is a name known to allChrispee is a name known to allChrispee is a name known to allChrispee is a name known to all
 
Posts: 751
Join Date: Mar 2007
Location: Malta
Codes Custom Teleporter Script - 12-02-2007

HI guys this was an old script we used for an old private server i was gm on hope u like it




--- src/bindings/ScriptDev2/ScriptMgr.cpp 2007-05-23 12:28:26.000000000 +0000
+++ src/bindings/ScriptDev2/ScriptMgr.cpp 2007-05-23 12:57:04.444259000 +0000
@@ -79,6 +79,8 @@
extern void AddSC_item_test();

// -- NPC --
+extern void AddSC_teleport_npc_1();
+extern void AddSC_teleport_npc_2();

// -- Servers --
extern void AddSC_battlemaster();
@@ -393,6 +394,8 @@
AddSC_item_test();

// -- NPC --
+ AddSC_teleport_npc_1();
+ AddSC_teleport_npc_2();

// -- Servers --
AddSC_battlemaster();
--- src/bindings/ScriptDev2/Makefile.am 2007-05-23 13:04:10.000000000 +0000
+++ src/bindings/ScriptDev2/Makefile.am 2007-05-23 13:05:25.034259000 +0000
@@ -40,6 +40,8 @@
scripts/creature/sc_miner.cpp \
scripts/creature/sc_shade_of_taerar.cpp \
scripts/custom/sc_custom_example.cpp \
+scripts/custom/sc_teleport_npc_1.cpp \
+scripts/custom/sc_teleport_npc_2.cpp \
scripts/custom/sc_test.cpp \
scripts/go/sc_go_teleporter.cpp \
scripts/guard/sc_guard_ai.h \
--- src/bindings/ScriptDev2/scripts/custom/sc_teleport_npc_2.cpp 2007-05-23 14:14:28.904259000 +0000
+++ src/bindings/ScriptDev2/scripts/custom/sc_teleport_npc_2.cpp 2007-05-23 14:14:25.314259000 +0000
@@ -0,0 +1,381 @@
+#include "../sc_defines.h"
+bool GossipHello_teleport_npc_2(Player *player, Creature *_Creature)
+
+{
+player->ADD_GOSSIP_ITEM( 7, "Tirisfal Prime (25g,lvl 1-84)", GOSSIP_SENDER_MAIN, 1201);
+player->ADD_GOSSIP_ITEM( 7, "Shattrath (5 g,lvl 1-84)", GOSSIP_SENDER_MAIN, 1202);
+player->ADD_GOSSIP_ITEM( 7, "Darnassus (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1203);
+player->ADD_GOSSIP_ITEM( 7, "Exodar (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1204);
+player->ADD_GOSSIP_ITEM( 7, "Ironforge (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1205);
+player->ADD_GOSSIP_ITEM( 7, "Stormwind (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1206);
+player->ADD_GOSSIP_ITEM( 7, "Orgrimmar (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1207);
+player->ADD_GOSSIP_ITEM( 7, "Silvermoon (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1208);
+player->ADD_GOSSIP_ITEM( 7, "Thunder Bluff (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1209);
+player->ADD_GOSSIP_ITEM( 7, "Undercity (50 s,lvl 1-84)", GOSSIP_SENDER_MAIN, 1210);
+player->ADD_GOSSIP_ITEM( 7, "Gurubashi Arena (free)", GOSSIP_SENDER_MAIN, 1211);
+
+player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
+
+return true;
+
+}
+
+void SendDefaultMenu_teleport_npc_2(Player *player, Creature *_Creature, uint32 action)
+{
+
+// Teleport to Tirisfal Prime
+if (action == 1201)
+{
+ if ((player->getLevel() >= 60) && (player->getLevel() <= 84))
+ {
+ if (player->GetMoney() >= 250000)
+ {
+ player->Say("Off I go to Tirisfal Prime!",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-250000);
+ player->TeleportTo(0, 2500.0f, 2131.0f, 33.0f, 0.0f);
+ }
+ else
+ {
+ player->Say("I must have at least 25 gold to enter Tirisfal Prime.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be between level 60 and 84 to enter Tirisfal Prime.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Shattrath
+if (action == 1202)
+{
+ if ((player->getLevel() >= 58) && (player->getLevel() <= 84))
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->Say("Off I go to Shattrath city!",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(530, -1846.85f, 5396.64f, -12.4282f, 0.0f);
+ }
+ else
+ {
+ player->Say("I must have at least 5 gold to enter Shattrath.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be between level 58 and 84 to enter Shattrath.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Darnassus
+if (action == 1203)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Darnassus.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(1, 9947.52f, 2482.73f, 1316.21f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+
+}
+
+// Teleport to Exodar
+if (action == 1204)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to the Exodar.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(530, -4073.03f, -12020.4f, -1.47f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Ironforge
+if (action == 1205)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Ironforge.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(0, -5032.0f, -819.0f, 495.0f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Stormwind
+if (action == 1206)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Stormwind.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(0, -8960.14f, 516.266f, 96.3568f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Orgrimmar
+if (action == 1207)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Orgrimmar.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(1, 1552.5f, -4420.66f, 8.94802f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Silvermoon
+if (action == 1208)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Silvermoon City.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(530, 9338.74f, -7277.27f, 13.7895f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Thunder Bluff
+if (action == 1209)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Thunder Bluff.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(1, -1391.0f, 140.0f, 22.478f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Undercity
+if (action == 1210)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->getLevel() <= 84)
+ {
+ if (player->GetMoney() >= 5000)
+ {
+ player->Say("Off I go to Undercity.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000);
+ player->TeleportTo(0, 1819.71f, 238.79f, 60.5321f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 50 silver to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be level 84 or lower to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I can't enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Gurubashi Arena
+if (action == 1211)
+{
+ player->CLOSE_GOSSIP_MENU();
+ player->Say("Off I go to the Gurubashi Arena!",LANG_UNIVERSAL);
+ player->TeleportTo(0, -13155.2314f, 340.1806f, 49.7404f, 4.15f);
+}
+
+}
+
+bool GossipSelect_teleport_npc_2(Player *player, Creature *_Creature, uint32 sender, uint32 action )
+
+{
+// Main menu
+if (sender == GOSSIP_SENDER_MAIN)
+SendDefaultMenu_teleport_npc_2(player, _Creature, action);
+
+return true;
+
+}
+
+void AddSC_teleport_npc_2()
+
+{
+
+Script *newscript;
+
+newscript = new Script;
+newscript->Name="teleport_npc_2";
+newscript->pGossipHello = &GossipHello_teleport_npc_2;
+newscript->pGossipSelect = &GossipSelect_teleport_npc_2;
+newscript->pItemHello = NULL;
+newscript->pGOHello = NULL;
+newscript->pAreaTrigger = NULL;
+newscript->pItemQuestAccept = NULL;
+newscript->pGOQuestAccept = NULL;
+newscript->pGOChooseReward = NULL;
+
+m_scripts[nrscripts++] = newscript;
+
+}
\ No newline at end of file
--- src/bindings/ScriptDev2/scripts/custom/sc_teleport_npc_1.cpp 2007-05-23 14:14:28.904259000 +0000
+++ src/bindings/ScriptDev2/scripts/custom/sc_teleport_npc_1.cpp 2007-05-23 14:14:25.314259000 +0000
@@ -0,0 +1,360 @@
+#include "../sc_defines.h"
+bool GossipHello_teleport_npc_1(Player *player, Creature *_Creature)
+
+{
+player->ADD_GOSSIP_ITEM( 7, "Alentus (20000 gold)", GOSSIP_SENDER_MAIN, 1212);
+player->ADD_GOSSIP_ITEM( 7, "Hyjal (2000 gold)", GOSSIP_SENDER_MAIN, 1200);
+player->ADD_GOSSIP_ITEM( 7, "Tirisfal Prime (250 gold)", GOSSIP_SENDER_MAIN, 1201);
+player->ADD_GOSSIP_ITEM( 7, "Shattrath (500 gold)", GOSSIP_SENDER_MAIN, 1202);
+player->ADD_GOSSIP_ITEM( 7, "Darnassus (5 gold)", GOSSIP_SENDER_MAIN, 1203);
+player->ADD_GOSSIP_ITEM( 7, "Exodar (5 gold)", GOSSIP_SENDER_MAIN, 1204);
+player->ADD_GOSSIP_ITEM( 7, "Ironforge (5 gold)", GOSSIP_SENDER_MAIN, 1205);
+player->ADD_GOSSIP_ITEM( 7, "Stormwind (5 gold)", GOSSIP_SENDER_MAIN, 1206);
+player->ADD_GOSSIP_ITEM( 7, "Orgrimmar (5 gold)", GOSSIP_SENDER_MAIN, 1207);
+player->ADD_GOSSIP_ITEM( 7, "Silvermoon (5 gold)", GOSSIP_SENDER_MAIN, 1208);
+player->ADD_GOSSIP_ITEM( 7, "Thunder Bluff (5 gold)", GOSSIP_SENDER_MAIN, 1209);
+player->ADD_GOSSIP_ITEM( 7, "Undercity (5 gold)", GOSSIP_SENDER_MAIN, 1210);
+player->ADD_GOSSIP_ITEM( 7, "Gurubashi Arena (free)", GOSSIP_SENDER_MAIN, 1211);
+
+player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
+
+return true;
+
+}
+
+void SendDefaultMenu_teleport_npc_1(Player *player, Creature *_Creature, uint32 action)
+{
+
+// Teleport to Alentus
+if (action == 1212)
+{
+ if (player->getLevel() >= 175)
+ {
+ if (player->GetMoney() >= 200000000)
+ {
+ player->Say("Off I go to Alentus!",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-200000000);
+ player->TeleportTo(0, -4730.4931f, 579.1478f, 408.0016f, 1.9714f);
+ }
+ else
+ {
+ player->Say("I must have at least 20 000 gold to enter Alentus.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be at least level 175 to enter Alentus.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Hyjal
+if (action == 1200)
+{
+ if (player->getLevel() >= 85)
+ {
+ if (player->GetMoney() >= 20000000)
+ {
+ player->Say("Off I go to Hyjal!",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-20000000);
+ player->TeleportTo(1, 4609.85f, -3866.36f, 944.18f, 1.139f);
+ }
+ else
+ {
+ player->Say("I must have at least 2000 gold to enter Hyjal.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be at least level 85 to enter Hyjal.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Tirisfal Prime
+if (action == 1201)
+{
+ if (player->getLevel() >= 60)
+ {
+ if (player->GetMoney() >= 2500000)
+ {
+ player->Say("Off I go to Tirisfal Prime!",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-2500000);
+ player->TeleportTo(0, 2500.0f, 2131.0f, 33.0f, 0.0f);
+ }
+ else
+ {
+ player->Say("I must have at least 250 gold to enter Tirisfal Prime.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be at least level 60 to enter Tirisfal Prime.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Shattrath
+if (action == 1202)
+{
+ if (player->getLevel() >= 58)
+ {
+ if (player->GetMoney() >= 5000000)
+ {
+ player->Say("Off I go to Shattrath city!",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-5000000);
+ player->TeleportTo(530, -1846.85f, 5396.64f, -12.4282f, 0.0f);
+ }
+ else
+ {
+ player->Say("I must have at least 500 gold to enter Shattrath.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I must be at least level 58 to enter Shattrath.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Darnassus
+if (action == 1203)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(1, 9947.52f, 2482.73f, 1316.21f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Exodar
+if (action == 1204)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(530, -4073.03f, -12020.4f, -1.47f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Ironforge
+if (action == 1205)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(0, -5032.0f, -819.0f, 495.0f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Stormwind
+if (action == 1206)
+{
+ if (player->GetTeam() == ALLIANCE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(0, -8960.14f, 516.266f, 96.3568f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter alliance areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Orgrimmar
+if (action == 1207)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(1, 1552.5f, -4420.66f, 8.94802f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Silvermoon
+if (action == 1208)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(530, 9338.74f, -7277.27f, 13.7895f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Thunder Bluff
+if (action == 1209)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(1, -1391.0f, 140.0f, 22.478f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Undercity
+if (action == 1210)
+{
+ if (player->GetTeam() == HORDE)
+ {
+ if (player->GetMoney() >= 50000)
+ {
+ player->CLOSE_GOSSIP_MENU();
+ player->ModifyMoney(-50000);
+ player->TeleportTo(0, 1819.71f, 238.79f, 60.5321f, 0.0f);
+ }
+ else
+ {
+ player->Say("I need 5 gold to teleport there.",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+ }
+ else
+ {
+ player->Say("I cannot enter horde areas...",LANG_UNIVERSAL);
+ player->CLOSE_GOSSIP_MENU();
+ }
+}
+
+// Teleport to Gurubashi Arena
+if (action == 1211)
+{
+ player->CLOSE_GOSSIP_MENU();
+ player->Say("Off I go to the Gurubashi Arena!",LANG_UNIVERSAL);
+ player->TeleportTo(0, -13155.2314f, 340.1806f, 49.7404f, 4.15f);
+}
+
+}
+
+bool GossipSelect_teleport_npc_1(Player *player, Creature *_Creature, uint32 sender, uint32 action )
+
+{
+// Main menu
+if (sender == GOSSIP_SENDER_MAIN)
+SendDefaultMenu_teleport_npc_1(player, _Creature, action);
+
+return true;
+
+}
+
+void AddSC_teleport_npc_1()
+
+{
+
+Script *newscript;
+
+newscript = new Script;
+newscript->Name="teleport_npc_1";
+newscript->pGossipHello = &GossipHello_teleport_npc_1;
+newscript->pGossipSelect = &GossipSelect_teleport_npc_1;
+newscript->pItemHello = NULL;
+newscript->pGOHello = NULL;
+newscript->pAreaTrigger = NULL;
+newscript->pItemQuestAccept = NULL;
+newscript->pGOQuestAccept = NULL;
+newscript->pGOChooseReward = NULL;
+
+m_scripts[nrscripts++] = newscript;
+
+}
Reply With Quote

Donate to remove ads.
Re: Custom Teleporter Script
(#2)
Old
Spike_Kobra is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
Spike_Kobra is an unknown quantity at this point
 
Posts: 33
Join Date: Aug 2007
Re: Custom Teleporter Script - 12-02-2007

Chrispee create guide love youre stuf man love it ... (im the first who posted)
Reply With Quote
Re: Custom Teleporter Script
(#3)
Old
PolitisktNamn's Avatar
PolitisktNamn is Offline
Master Sergeant
Rep Power: 2
Reputation: 8
PolitisktNamn is an unknown quantity at this point
 
Posts: 77
Join Date: Jun 2007
Re: Custom Teleporter Script - 12-03-2007

Nice, (: + Rep
Reply With Quote
Teleports
(#4)
Old
Fallen1087's Avatar
Fallen1087 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
Fallen1087 is an unknown quantity at this point
 
Posts: 14
Join Date: Nov 2007
Location: Latvia
Teleports - 12-18-2007

can any one upload in here MySQL update for Teleports.....?(i Using MaNGOS 2.3.0 server 4847 rev....)
Reply With Quote
(#5)
Old
nightelf1's Avatar
nightelf1 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
nightelf1 is an unknown quantity at this point
 
Posts: 16
Join Date: Dec 2007
12-26-2007

heya, daz good right dare
Reply With Quote
(#6)
Old
Superfly's Avatar
Superfly is Offline
Contributor
Rep Power: 3
Reputation: 90
Superfly will become famous soon enough
 
Posts: 179
Join Date: Aug 2006
Location: My Home
12-27-2007

how do i use it in /s?
Reply With Quote
+++++rep
(#7)
Old
invader92's Avatar
invader92 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 2
invader92 is an unknown quantity at this point
 
Posts: 16
Join Date: Nov 2007
+++++rep - 12-28-2007

Awsome (+rep) nice find
Reply With Quote
(#8)
Old
boone2515's Avatar
boone2515 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 2
boone2515 is an unknown quantity at this point
 
Posts: 12
Join Date: Aug 2007
Location: Cinncinati OH
01-07-2008

Nice I need some portals but I dont know how to make them anyways +rep
Reply With Quote
(#9)
Old
sebbe00 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
sebbe00 is an unknown quantity at this point
 
Posts: 11
Join Date: Nov 2007
01-09-2008

How do i use it? should i only past it into a notepad file and do it to a SQL`.. and then use it in Navicat/SQLyog
Reply With Quote
(#10)
Old
meinson is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
meinson is an unknown quantity at this point
 
Posts: 25
Join Date: Nov 2007
01-11-2008

you have to complie it with scriptev2
Reply With Quote
(#11)
Old
Arcane91 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
Arcane91 is an unknown quantity at this point
 
Posts: 6
Join Date: Dec 2007
01-12-2008

nice script!!!
Reply With Quote
People!
(#12)
Old
raoul-d1 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
raoul-d1 is an unknown quantity at this point
 
Posts: 3
Join Date: Mar 2007
People! - 01-16-2008

This is not a SQL document! This is a C++ script witch needs to be added to the source file of MaNGOS!!!! In othere words you need to compile your own mangos!
Reply With Quote
(#13)
Old
kreven's Avatar
kreven is Offline
Master Sergeant
Rep Power: 1
Reputation: 55
kreven will become famous soon enough
 
Posts: 84
Join Date: Nov 2007
Location: Bucharest
01-22-2008

nice stuff
Reply With Quote
(#14)
Old
bill45's Avatar
bill45 is Offline
Master Sergeant
Rep Power: 1
Reputation: 5
bill45 is an unknown quantity at this point
 
Posts: 93
Join Date: Jan 2008
01-23-2008

thanks for the script.
Reply With Quote
(#15)
Old
bagel99 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
bagel99 is an unknown quantity at this point
 
Posts: 14
Join Date: Jan 2008
02-07-2008

awesome post
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231