Register for your free account! | Forgot your password?

You last visited: Today at 19:11

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Frage]Taxi (MaNGOS)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
Question [Frage]Taxi (MaNGOS)

Hi,

wollte fragen ob man ein Taxi erstellen kann wie in dem folgenden Screenshot für MaNGOS. Falls es dafür schon ein TuT gibt entschuldige ich mich für diesen Beitrag doch habe keins gefunden! Übrigens möchte nicht ein NPC mit Quest! Da ich auch so sachen wie Heal me Benötige!

You must register and activate your account in order to view images.



Sevenface is offline  
Old   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 205
Received Thanks: 122
hmm ja man kann solche "taxis" erstellen selba hab ichs ja schon auf den meisten p-servern gesehen^^aber ich denke sowas zu erstellen wär nicht grad einfach :/


madbullman is offline  
Old   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
Hatt vlt noch jmd ne idee wo es so TUTs geben könnte
Sevenface is offline  
Old   #4
 
elite*gold: 0
Join Date: Aug 2009
Posts: 995
Received Thanks: 263
Sufu ist dein Freund!
Googel ist dein Freund!


.$am is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 25
Received Thanks: 0
Ich habe einen , aber nich gaanz so groß^^

Der kann aber im Grunde alles was man brauch

Einfach mit kompilieren lassen. Wie das geht ? GIDF!!!

bitte:
Code:
#include "sc_gossip.h"
#include "GossipDef.h"
#include "Player.h"
#include "precompiled.h"
#include "../../../../shared/Config/Config.h"
#include "../../config.h"

/* Script by ChosenWoW/*

bool GossipHello_teleporter(Player *player, Creature *_Creature)
{
    player->SetTaxiCheater(true);

player->ADD_GOSSIP_ITEM( 5, "Hauptstaedte" , GOSSIP_SENDER_MAIN, 1);
player->ADD_GOSSIP_ITEM( 1, "Playertreffs" , GOSSIP_SENDER_MAIN, 2);
player->ADD_GOSSIP_ITEM( 5, "Azeroth Raids" , GOSSIP_SENDER_MAIN, 3);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Instanzen" , GOSSIP_SENDER_MAIN, 4);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Raids" , GOSSIP_SENDER_MAIN, 5);
player->ADD_GOSSIP_ITEM( 1, "Gurubashi Arena" , GOSSIP_SENDER_MAIN, 6);
player->ADD_GOSSIP_ITEM( 5, "Nordend - Gebiete" , GOSSIP_SENDER_MAIN, 84);
player->ADD_GOSSIP_ITEM( 0, "Tschuess!" , GOSSIP_SENDER_MAIN, 9);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

return true;



}

void SendDefaultMenu_teleporter(Player *player, Creature *_Creature, uint32 action )
{
     // Wenn der Spieler in einen Kampf verwickelt wird.
	if(!player->getAttackers().empty())

    {
    player->CLOSE_GOSSIP_MENU();
    _Creature->MonsterSay("Kaempf erstmal zuende!", LANG_UNIVERSAL, NULL);
return;
    }

switch(action)

{

case 2: //Playertreffs

if ( player->GetTeam() == ALLIANCE )
{
player->ADD_GOSSIP_ITEM( 5, "Los!" , GOSSIP_SENDER_MAIN, 31);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

}else{
player->ADD_GOSSIP_ITEM( 5, "Los!" , GOSSIP_SENDER_MAIN, 30);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


}

break;

case 1: //Haupstaedte

if ( player->GetTeam() == ALLIANCE )
{
player->ADD_GOSSIP_ITEM( 5, "Sturmwind" , GOSSIP_SENDER_MAIN, 20);
player->ADD_GOSSIP_ITEM( 5, "Darnassus" , GOSSIP_SENDER_MAIN, 21);
player->ADD_GOSSIP_ITEM( 5, "Eisenschmiede" , GOSSIP_SENDER_MAIN, 22);
player->ADD_GOSSIP_ITEM( 5, "Exodar" , GOSSIP_SENDER_MAIN, 23);
player->ADD_GOSSIP_ITEM( 5, "Stattrath" , GOSSIP_SENDER_MAIN, 24);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

}else{
player->ADD_GOSSIP_ITEM( 5, "Orgrimmar" , GOSSIP_SENDER_MAIN, 25);
player->ADD_GOSSIP_ITEM( 5, "Donnerfels" , GOSSIP_SENDER_MAIN, 26);
player->ADD_GOSSIP_ITEM( 5, "Unterstadt" , GOSSIP_SENDER_MAIN, 27);
player->ADD_GOSSIP_ITEM( 5, "Silbermond" , GOSSIP_SENDER_MAIN, 28);
player->ADD_GOSSIP_ITEM( 5, "Stattrath" , GOSSIP_SENDER_MAIN, 24);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
}

break;

case 3:  // Azeroth-Schlachtzuege

player->ADD_GOSSIP_ITEM(5, "Ahn'Qhiray-20", GOSSIP_SENDER_MAIN, 41);
player->ADD_GOSSIP_ITEM(5, "Ahn'Qhiray-40", GOSSIP_SENDER_MAIN, 42);
player->ADD_GOSSIP_ITEM(5, "Karazhan", GOSSIP_SENDER_MAIN, 40);
player->ADD_GOSSIP_ITEM(5, "Geschmolzener Kern", GOSSIP_SENDER_MAIN, 38);
player->ADD_GOSSIP_ITEM(5, "Naxxramas", GOSSIP_SENDER_MAIN, 43);
player->ADD_GOSSIP_ITEM(5, "Onyxia's Hort", GOSSIP_SENDER_MAIN, 37);
player->ADD_GOSSIP_ITEM(5, "Schwarzfelsspitze", GOSSIP_SENDER_MAIN, 36);
player->ADD_GOSSIP_ITEM(5, "Sonnenbrunenplateau", GOSSIP_SENDER_MAIN, 82);
player->ADD_GOSSIP_ITEM(5, "Zul'Aman", GOSSIP_SENDER_MAIN, 80);
player->ADD_GOSSIP_ITEM(5, "Zul'Gurub", GOSSIP_SENDER_MAIN, 39);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


break;

case 4: // Scherbenwelt-Inis


player->ADD_GOSSIP_ITEM(5, "Alkatraz", GOSSIP_SENDER_MAIN, 56);
player->ADD_GOSSIP_ITEM(5, "Auchenaikrypta", GOSSIP_SENDER_MAIN, 51);
player->ADD_GOSSIP_ITEM(5, "Der Blutkessel", GOSSIP_SENDER_MAIN, 45);
player->ADD_GOSSIP_ITEM(5, "Der Tiefensumpf", GOSSIP_SENDER_MAIN, 47);
player->ADD_GOSSIP_ITEM(5, "Die Botanika", GOSSIP_SENDER_MAIN, 55);
player->ADD_GOSSIP_ITEM(5, "Die Dampfkammer", GOSSIP_SENDER_MAIN, 49);
player->ADD_GOSSIP_ITEM(5, "Die Mechanar", GOSSIP_SENDER_MAIN, 54);
player->ADD_GOSSIP_ITEM(5, "Die Sklavenunterkunfte", GOSSIP_SENDER_MAIN, 48);
player->ADD_GOSSIP_ITEM(5, "Die zerschmetterten Hallen", GOSSIP_SENDER_MAIN, 46);
player->ADD_GOSSIP_ITEM(5, "Hoellenfeuerbollwerk", GOSSIP_SENDER_MAIN, 44);
player->ADD_GOSSIP_ITEM(5, "Managruft", GOSSIP_SENDER_MAIN, 50);
player->ADD_GOSSIP_ITEM(5, "Schattenlabyrinth", GOSSIP_SENDER_MAIN, 53);
player->ADD_GOSSIP_ITEM(5, "Sethekkhallen", GOSSIP_SENDER_MAIN, 52);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


break;

case 5: // scherbenwelt-Schlachtzuege


player->ADD_GOSSIP_ITEM(5, "Festung der Stürme", GOSSIP_SENDER_MAIN, 57);
player->ADD_GOSSIP_ITEM(5, "Gruuls Unterschlupf", GOSSIP_SENDER_MAIN, 58);
player->ADD_GOSSIP_ITEM(5, "Magtheridons Kammer", GOSSIP_SENDER_MAIN, 59);
player->ADD_GOSSIP_ITEM(5, "Schlangenschrein", GOSSIP_SENDER_MAIN, 60);
player->ADD_GOSSIP_ITEM(5, "Schwarzer Tempel", GOSSIP_SENDER_MAIN, 61);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

break;

case 84: //Northend 84

if ( player->GetTeam() == ALLIANCE )
{
player->ADD_GOSSIP_ITEM(5, "Eiskrone", GOSSIP_SENDER_MAIN, 85);
player->ADD_GOSSIP_ITEM(5, "Boreanische Tundra", GOSSIP_SENDER_MAIN, 86);
player->ADD_GOSSIP_ITEM(5, "Sturmgipfel", GOSSIP_SENDER_MAIN, 87);
player->ADD_GOSSIP_ITEM(5, "Zul'Drak", GOSSIP_SENDER_MAIN, 88);
player->ADD_GOSSIP_ITEM(5, "Dalaran", GOSSIP_SENDER_MAIN, 89);
player->ADD_GOSSIP_ITEM(5, "Drachenöde", GOSSIP_SENDER_MAIN, 90);
player->ADD_GOSSIP_ITEM(5, "Grizzly Hügel", GOSSIP_SENDER_MAIN, 91);
player->ADD_GOSSIP_ITEM(5, "Der heulende Fljord", GOSSIP_SENDER_MAIN, 92);
player->ADD_GOSSIP_ITEM(5, "Sholazar Becken", GOSSIP_SENDER_MAIN, 93);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
/* DIESES ELSE ERGIBT NOCH GARKEINEN SINN SOLL ABER BALD EDITIERT WERDEN
ES PORTET AUCH DIE HORDLER ZU DEN ALLIANZ GEBIETEN */
}else{
player->ADD_GOSSIP_ITEM(5, "Eiskrone", GOSSIP_SENDER_MAIN, 85);
player->ADD_GOSSIP_ITEM(5, "Boreanisches Tundra", GOSSIP_SENDER_MAIN, 86);
player->ADD_GOSSIP_ITEM(5, "Sturmgipfel", GOSSIP_SENDER_MAIN, 87);
player->ADD_GOSSIP_ITEM(5, "Zul'Drak", GOSSIP_SENDER_MAIN, 88);
player->ADD_GOSSIP_ITEM(5, "Dalaran", GOSSIP_SENDER_MAIN, 89);
player->ADD_GOSSIP_ITEM(5, "Drachenöde", GOSSIP_SENDER_MAIN, 90);
player->ADD_GOSSIP_ITEM(5, "Grizzly Hügel", GOSSIP_SENDER_MAIN, 91);
player->ADD_GOSSIP_ITEM(5, "Der heulende Fjord", GOSSIP_SENDER_MAIN, 92);
player->ADD_GOSSIP_ITEM(5, "Sholazar Becken", GOSSIP_SENDER_MAIN, 93);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
}

break;

case 6: // Hier kommen jetzt die ganzen coords
 
    
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -13152.0f, 342.72f, 52.395f, 0.0f);

break;



case 9: 

player->CLOSE_GOSSIP_MENU();
player->GetSession()->SendNotification("Bis bald !");


break;

case 20:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -8881.0f, 575.0f, 93.0f, 0.0f);


break;

case 21:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1,9951.89f,2280.55f,1341.39f,0.0f);

break;

case 22:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0,-4981.0f,-881.0f,501.66f,0.0f);


break;

case 23:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530,-4014.0f,-11895.79f,-2.0f,0.0f);


break;

case 24:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -1887.510010f, 5359.379883f, -12.427300f, 0.0f);


break;

case 25:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 1629.777344f, -4373.210449f, 31.246769, 0.0f);


break;

case 26:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -1196.858398f, 30.147331f, 176.949188f, 0.0f);


break;

case 27:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, 1844.765625f, 237.655991f, 62.275150f, 0.0f);


break;

case 28:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 9400.486328f, -7278.376953f, 14.206780f, 0.0f);


break;

// Playertreffs

case 30:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -1593.641602f, 3155.930664f, 62.530003f, 0.0f);


break;

case 31:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 7546.480469f, -1524.475464f, 160.967316f, 0.0f);


break;

// Azeroth-Schlachtzuege


case 36:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -7527.129883f, -1224.997437f, 285.733002f,0.0f);


break;
case 37:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -4744.647f, -3752.661133f, 50.427f,3.0f);


break;
case 38:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(409, 1089.6f, -470.19f, -106.41f,0.0f);


break;
case 39:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -11919.073242f, -1202.459374f, 92.298744f,0.0f);


break;
case 40:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(532, -11087.3f, -1977.47f, 49.6135f,0.0f);


break;
case 41:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -8394.730469f, 1485.658447f, 21.038563f,0.0f);


break;
case 42:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -8247.316406f, 1970.156860f, 129.071472f,0.0f);


break;
case 43:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(533, 3006.06f, -3436.72f, 293.891f,0.0f);


break;

// Scherbenwelt-Inis

case 44:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -360.670990f, 3071.899902f, -15.097700f,0.0f);


break;

case 45:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -303.506012f, 3164.820068f, 31.742500f,0.0f);


break;

case 46:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -311.083527f, 3083.291748f, -3.745923f,0.0f);


break;

case 47:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 777.088989f, 6763.450195f, -72.062561f,0.0f);


break;

case 48:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 719.507996f, 6999.339844f, -73.074303f,0.0f);


break;

case 49:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 816.590027f, 6934.669922f, -80.544601f,0.0f);


break;

case 50:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3079.810059f, 4943.040039f, -101.046997f,0.0f);


break;

case 51:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3361.959961f, 5225.770020f, -101.047997f,0.0f);


break;

case 52:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3362.219971f, 4660.410156f, -101.049004f,0.0f);


break;

case 53:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3645.060059f, 4943.620117f, -101.047997f,0.0f);


break;

case 54:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 2862.409912f, 1546.089966f, 252.158691f,0.0f);


break;

case 55:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3413.649902f, 1483.319946f, 182.837997f,0.0f);


break;

case 56:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3311.598145f, 1332.745117f, 505.557251f,0.0f);


break;

// Scherbenwelt-Schlachtzuege

case 57:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3087.310059f, 1373.790039f, 184.643005f,0.0f);


break;

case 58:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3549.424072f, 5179.854004f, -4.430779f,0.0f);


break;

case 59:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -313.678986f, 3088.350098f, -116.501999f,0.0f);


break;

case 60:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 830.542908f, 6865.445801f, -63.785503f,0.0f);


break;

case 61:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3609.739990f, 328.252014f, 37.307701f,0.0f);


break;

case 80:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 6853.331055f,-7956.031738f, 170.074585f,4.67f);


break;

case 81:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 6853.331055f,-7956.031738f, 170.074585f,4.67f);


break;

case 82:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 12892.640625f, -7314.847168f, 65.570222f,4.355247f);

break;

// AB HIER NORTHEND ALLIAZ

case 88:
// 88 = ZUL'DRAK     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5451.406250f, -2628.971436f, 306.253418f,1.577150f);

break;

case 85:
// 85 = EISKRONE     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 6224.557969f, -2.641857f, 410.164795f,5.416985f);

break;

case 86:
// 86 = BOREANISCHES TUNDRA     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 2243.259277f, 5264.776367f, 11.709665f,5.957395f);
break;

case 87:
// 87 = STURMGIPFEL     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 6121.390625f, -1061.891724f, 402.559570f,1.590555f);
break;

case 89:
// 89 = DALARAN     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5804.149902f, 624.770996f, 647.767029f,1.640000f);


break;

case 90:
// 90 = DRACHENÖDE    
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3546.780029f, 273.084015f, 45.792198f, 1.815140f);


break;

case 91:
// 91 = GRIZZLY HÜGEL    
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3065.147705f, -2007.577515f, 79.796875f, 5.522248f);


break;

case 92:
// 92 = DER HEULENDE FLJÖRD  
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 616.571411f, -4987.544434f, 3.985763f, 5.291873f);

break;

case 93:
// 93 = SHOLAZAR BECKEN 
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5596.030762f, 5826.276367f, -67.677391f, 3.567269f);
// ALLIANZ NORTHEND IST HIER ZUENDE
break;


case 200: //Auswahl Fenster


player->ADD_GOSSIP_ITEM( 5, "Hauptstaedte" , GOSSIP_SENDER_MAIN, 1);
player->ADD_GOSSIP_ITEM( 5, "Playertreffs" , GOSSIP_SENDER_MAIN, 2);
player->ADD_GOSSIP_ITEM( 5, "Azeroth Raids" , GOSSIP_SENDER_MAIN, 3);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Instanzen" , GOSSIP_SENDER_MAIN, 4);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Raids" , GOSSIP_SENDER_MAIN, 5);
player->ADD_GOSSIP_ITEM( 5, "Gurubashi Arena" , GOSSIP_SENDER_MAIN, 6);
player->ADD_GOSSIP_ITEM( 5, "Northend" , GOSSIP_SENDER_MAIN, 84);
player->ADD_GOSSIP_ITEM( 0, "Tschuess!" , GOSSIP_SENDER_MAIN, 9);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


break;
}


}

bool GossipSelect_teleporter(Player *player, Creature *_Creature, uint32

sender, uint32 action )

{
// Der Teleporter
if (sender == GOSSIP_SENDER_MAIN)
SendDefaultMenu_teleporter(player, _Creature, action   );

return true;

}
void AddSC_teleporter()
{
    Script *newscript;

newscript = new Script;
newscript->Name="teleporter";
newscript->pGossipHello = &GossipHello_teleporter;
newscript->pGossipSelect = &GossipSelect_teleporter;
newscript->pItemHello = NULL;
newscript->pGOHello = NULL;
newscript->pAreaTrigger = NULL;
newscript->pItemQuestAccept = NULL;
newscript->pGOQuestAccept = NULL;
newscript->pGOChooseReward = NULL;
newscript->RegisterSelf();

}
dooming is offline  
Old   #6
 
elite*gold: 0
Join Date: Jun 2009
Posts: 25
Received Thanks: 0
Ich habe einen , aber nich gaanz so groß^^

bitte:
Code:
#include "sc_gossip.h"
#include "GossipDef.h"
#include "Player.h"
#include "precompiled.h"
#include "../../../../shared/Config/Config.h"
#include "../../config.h"

/* Script by ChosenWoW/*

bool GossipHello_teleporter(Player *player, Creature *_Creature)
{
    player->SetTaxiCheater(true);

player->ADD_GOSSIP_ITEM( 5, "Hauptstaedte" , GOSSIP_SENDER_MAIN, 1);
player->ADD_GOSSIP_ITEM( 1, "Playertreffs" , GOSSIP_SENDER_MAIN, 2);
player->ADD_GOSSIP_ITEM( 5, "Azeroth Raids" , GOSSIP_SENDER_MAIN, 3);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Instanzen" , GOSSIP_SENDER_MAIN, 4);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Raids" , GOSSIP_SENDER_MAIN, 5);
player->ADD_GOSSIP_ITEM( 1, "Gurubashi Arena" , GOSSIP_SENDER_MAIN, 6);
player->ADD_GOSSIP_ITEM( 5, "Nordend - Gebiete" , GOSSIP_SENDER_MAIN, 84);
player->ADD_GOSSIP_ITEM( 0, "Tschuess!" , GOSSIP_SENDER_MAIN, 9);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

return true;



}

void SendDefaultMenu_teleporter(Player *player, Creature *_Creature, uint32 action )
{
     // Wenn der Spieler in einen Kampf verwickelt wird.
	if(!player->getAttackers().empty())

    {
    player->CLOSE_GOSSIP_MENU();
    _Creature->MonsterSay("Kaempf erstmal zuende!", LANG_UNIVERSAL, NULL);
return;
    }

switch(action)

{

case 2: //Playertreffs

if ( player->GetTeam() == ALLIANCE )
{
player->ADD_GOSSIP_ITEM( 5, "Los!" , GOSSIP_SENDER_MAIN, 31);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

}else{
player->ADD_GOSSIP_ITEM( 5, "Los!" , GOSSIP_SENDER_MAIN, 30);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


}

break;

case 1: //Haupstaedte

if ( player->GetTeam() == ALLIANCE )
{
player->ADD_GOSSIP_ITEM( 5, "Sturmwind" , GOSSIP_SENDER_MAIN, 20);
player->ADD_GOSSIP_ITEM( 5, "Darnassus" , GOSSIP_SENDER_MAIN, 21);
player->ADD_GOSSIP_ITEM( 5, "Eisenschmiede" , GOSSIP_SENDER_MAIN, 22);
player->ADD_GOSSIP_ITEM( 5, "Exodar" , GOSSIP_SENDER_MAIN, 23);
player->ADD_GOSSIP_ITEM( 5, "Stattrath" , GOSSIP_SENDER_MAIN, 24);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

}else{
player->ADD_GOSSIP_ITEM( 5, "Orgrimmar" , GOSSIP_SENDER_MAIN, 25);
player->ADD_GOSSIP_ITEM( 5, "Donnerfels" , GOSSIP_SENDER_MAIN, 26);
player->ADD_GOSSIP_ITEM( 5, "Unterstadt" , GOSSIP_SENDER_MAIN, 27);
player->ADD_GOSSIP_ITEM( 5, "Silbermond" , GOSSIP_SENDER_MAIN, 28);
player->ADD_GOSSIP_ITEM( 5, "Stattrath" , GOSSIP_SENDER_MAIN, 24);
player->ADD_GOSSIP_ITEM( 0, "[Hauptmenu]" , GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
}

break;

case 3:  // Azeroth-Schlachtzuege

player->ADD_GOSSIP_ITEM(5, "Ahn'Qhiray-20", GOSSIP_SENDER_MAIN, 41);
player->ADD_GOSSIP_ITEM(5, "Ahn'Qhiray-40", GOSSIP_SENDER_MAIN, 42);
player->ADD_GOSSIP_ITEM(5, "Karazhan", GOSSIP_SENDER_MAIN, 40);
player->ADD_GOSSIP_ITEM(5, "Geschmolzener Kern", GOSSIP_SENDER_MAIN, 38);
player->ADD_GOSSIP_ITEM(5, "Naxxramas", GOSSIP_SENDER_MAIN, 43);
player->ADD_GOSSIP_ITEM(5, "Onyxia's Hort", GOSSIP_SENDER_MAIN, 37);
player->ADD_GOSSIP_ITEM(5, "Schwarzfelsspitze", GOSSIP_SENDER_MAIN, 36);
player->ADD_GOSSIP_ITEM(5, "Sonnenbrunenplateau", GOSSIP_SENDER_MAIN, 82);
player->ADD_GOSSIP_ITEM(5, "Zul'Aman", GOSSIP_SENDER_MAIN, 80);
player->ADD_GOSSIP_ITEM(5, "Zul'Gurub", GOSSIP_SENDER_MAIN, 39);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


break;

case 4: // Scherbenwelt-Inis


player->ADD_GOSSIP_ITEM(5, "Alkatraz", GOSSIP_SENDER_MAIN, 56);
player->ADD_GOSSIP_ITEM(5, "Auchenaikrypta", GOSSIP_SENDER_MAIN, 51);
player->ADD_GOSSIP_ITEM(5, "Der Blutkessel", GOSSIP_SENDER_MAIN, 45);
player->ADD_GOSSIP_ITEM(5, "Der Tiefensumpf", GOSSIP_SENDER_MAIN, 47);
player->ADD_GOSSIP_ITEM(5, "Die Botanika", GOSSIP_SENDER_MAIN, 55);
player->ADD_GOSSIP_ITEM(5, "Die Dampfkammer", GOSSIP_SENDER_MAIN, 49);
player->ADD_GOSSIP_ITEM(5, "Die Mechanar", GOSSIP_SENDER_MAIN, 54);
player->ADD_GOSSIP_ITEM(5, "Die Sklavenunterkunfte", GOSSIP_SENDER_MAIN, 48);
player->ADD_GOSSIP_ITEM(5, "Die zerschmetterten Hallen", GOSSIP_SENDER_MAIN, 46);
player->ADD_GOSSIP_ITEM(5, "Hoellenfeuerbollwerk", GOSSIP_SENDER_MAIN, 44);
player->ADD_GOSSIP_ITEM(5, "Managruft", GOSSIP_SENDER_MAIN, 50);
player->ADD_GOSSIP_ITEM(5, "Schattenlabyrinth", GOSSIP_SENDER_MAIN, 53);
player->ADD_GOSSIP_ITEM(5, "Sethekkhallen", GOSSIP_SENDER_MAIN, 52);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


break;

case 5: // scherbenwelt-Schlachtzuege


player->ADD_GOSSIP_ITEM(5, "Festung der Stürme", GOSSIP_SENDER_MAIN, 57);
player->ADD_GOSSIP_ITEM(5, "Gruuls Unterschlupf", GOSSIP_SENDER_MAIN, 58);
player->ADD_GOSSIP_ITEM(5, "Magtheridons Kammer", GOSSIP_SENDER_MAIN, 59);
player->ADD_GOSSIP_ITEM(5, "Schlangenschrein", GOSSIP_SENDER_MAIN, 60);
player->ADD_GOSSIP_ITEM(5, "Schwarzer Tempel", GOSSIP_SENDER_MAIN, 61);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());

break;

case 84: //Northend 84

if ( player->GetTeam() == ALLIANCE )
{
player->ADD_GOSSIP_ITEM(5, "Eiskrone", GOSSIP_SENDER_MAIN, 85);
player->ADD_GOSSIP_ITEM(5, "Boreanische Tundra", GOSSIP_SENDER_MAIN, 86);
player->ADD_GOSSIP_ITEM(5, "Sturmgipfel", GOSSIP_SENDER_MAIN, 87);
player->ADD_GOSSIP_ITEM(5, "Zul'Drak", GOSSIP_SENDER_MAIN, 88);
player->ADD_GOSSIP_ITEM(5, "Dalaran", GOSSIP_SENDER_MAIN, 89);
player->ADD_GOSSIP_ITEM(5, "Drachenöde", GOSSIP_SENDER_MAIN, 90);
player->ADD_GOSSIP_ITEM(5, "Grizzly Hügel", GOSSIP_SENDER_MAIN, 91);
player->ADD_GOSSIP_ITEM(5, "Der heulende Fljord", GOSSIP_SENDER_MAIN, 92);
player->ADD_GOSSIP_ITEM(5, "Sholazar Becken", GOSSIP_SENDER_MAIN, 93);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
/* DIESES ELSE ERGIBT NOCH GARKEINEN SINN SOLL ABER BALD EDITIERT WERDEN
ES PORTET AUCH DIE HORDLER ZU DEN ALLIANZ GEBIETEN */
}else{
player->ADD_GOSSIP_ITEM(5, "Eiskrone", GOSSIP_SENDER_MAIN, 85);
player->ADD_GOSSIP_ITEM(5, "Boreanisches Tundra", GOSSIP_SENDER_MAIN, 86);
player->ADD_GOSSIP_ITEM(5, "Sturmgipfel", GOSSIP_SENDER_MAIN, 87);
player->ADD_GOSSIP_ITEM(5, "Zul'Drak", GOSSIP_SENDER_MAIN, 88);
player->ADD_GOSSIP_ITEM(5, "Dalaran", GOSSIP_SENDER_MAIN, 89);
player->ADD_GOSSIP_ITEM(5, "Drachenöde", GOSSIP_SENDER_MAIN, 90);
player->ADD_GOSSIP_ITEM(5, "Grizzly Hügel", GOSSIP_SENDER_MAIN, 91);
player->ADD_GOSSIP_ITEM(5, "Der heulende Fjord", GOSSIP_SENDER_MAIN, 92);
player->ADD_GOSSIP_ITEM(5, "Sholazar Becken", GOSSIP_SENDER_MAIN, 93);
player->ADD_GOSSIP_ITEM(0, "[Hauptmenu]", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());
}

break;

case 6: // Hier kommen jetzt die ganzen coords
 
    
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -13152.0f, 342.72f, 52.395f, 0.0f);

break;



case 9: 

player->CLOSE_GOSSIP_MENU();
player->GetSession()->SendNotification("Bis bald !");


break;

case 20:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -8881.0f, 575.0f, 93.0f, 0.0f);


break;

case 21:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1,9951.89f,2280.55f,1341.39f,0.0f);

break;

case 22:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0,-4981.0f,-881.0f,501.66f,0.0f);


break;

case 23:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530,-4014.0f,-11895.79f,-2.0f,0.0f);


break;

case 24:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -1887.510010f, 5359.379883f, -12.427300f, 0.0f);


break;

case 25:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 1629.777344f, -4373.210449f, 31.246769, 0.0f);


break;

case 26:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -1196.858398f, 30.147331f, 176.949188f, 0.0f);


break;

case 27:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, 1844.765625f, 237.655991f, 62.275150f, 0.0f);


break;

case 28:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 9400.486328f, -7278.376953f, 14.206780f, 0.0f);


break;

// Playertreffs

case 30:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -1593.641602f, 3155.930664f, 62.530003f, 0.0f);


break;

case 31:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, 7546.480469f, -1524.475464f, 160.967316f, 0.0f);


break;

// Azeroth-Schlachtzuege


case 36:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -7527.129883f, -1224.997437f, 285.733002f,0.0f);


break;
case 37:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -4744.647f, -3752.661133f, 50.427f,3.0f);


break;
case 38:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(409, 1089.6f, -470.19f, -106.41f,0.0f);


break;
case 39:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(0, -11919.073242f, -1202.459374f, 92.298744f,0.0f);


break;
case 40:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(532, -11087.3f, -1977.47f, 49.6135f,0.0f);


break;
case 41:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -8394.730469f, 1485.658447f, 21.038563f,0.0f);


break;
case 42:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(1, -8247.316406f, 1970.156860f, 129.071472f,0.0f);


break;
case 43:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(533, 3006.06f, -3436.72f, 293.891f,0.0f);


break;

// Scherbenwelt-Inis

case 44:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -360.670990f, 3071.899902f, -15.097700f,0.0f);


break;

case 45:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -303.506012f, 3164.820068f, 31.742500f,0.0f);


break;

case 46:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -311.083527f, 3083.291748f, -3.745923f,0.0f);


break;

case 47:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 777.088989f, 6763.450195f, -72.062561f,0.0f);


break;

case 48:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 719.507996f, 6999.339844f, -73.074303f,0.0f);


break;

case 49:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 816.590027f, 6934.669922f, -80.544601f,0.0f);


break;

case 50:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3079.810059f, 4943.040039f, -101.046997f,0.0f);


break;

case 51:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3361.959961f, 5225.770020f, -101.047997f,0.0f);


break;

case 52:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3362.219971f, 4660.410156f, -101.049004f,0.0f);


break;

case 53:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3645.060059f, 4943.620117f, -101.047997f,0.0f);


break;

case 54:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 2862.409912f, 1546.089966f, 252.158691f,0.0f);


break;

case 55:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3413.649902f, 1483.319946f, 182.837997f,0.0f);


break;

case 56:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3311.598145f, 1332.745117f, 505.557251f,0.0f);


break;

// Scherbenwelt-Schlachtzuege

case 57:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3087.310059f, 1373.790039f, 184.643005f,0.0f);


break;

case 58:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 3549.424072f, 5179.854004f, -4.430779f,0.0f);


break;

case 59:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -313.678986f, 3088.350098f, -116.501999f,0.0f);


break;

case 60:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 830.542908f, 6865.445801f, -63.785503f,0.0f);


break;

case 61:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, -3609.739990f, 328.252014f, 37.307701f,0.0f);


break;

case 80:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 6853.331055f,-7956.031738f, 170.074585f,4.67f);


break;

case 81:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 6853.331055f,-7956.031738f, 170.074585f,4.67f);


break;

case 82:

player->CLOSE_GOSSIP_MENU();
player->TeleportTo(530, 12892.640625f, -7314.847168f, 65.570222f,4.355247f);

break;

// AB HIER NORTHEND ALLIAZ

case 88:
// 88 = ZUL'DRAK     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5451.406250f, -2628.971436f, 306.253418f,1.577150f);

break;

case 85:
// 85 = EISKRONE     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 6224.557969f, -2.641857f, 410.164795f,5.416985f);

break;

case 86:
// 86 = BOREANISCHES TUNDRA     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 2243.259277f, 5264.776367f, 11.709665f,5.957395f);
break;

case 87:
// 87 = STURMGIPFEL     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 6121.390625f, -1061.891724f, 402.559570f,1.590555f);
break;

case 89:
// 89 = DALARAN     
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5804.149902f, 624.770996f, 647.767029f,1.640000f);


break;

case 90:
// 90 = DRACHENÖDE    
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3546.780029f, 273.084015f, 45.792198f, 1.815140f);


break;

case 91:
// 91 = GRIZZLY HÜGEL    
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 3065.147705f, -2007.577515f, 79.796875f, 5.522248f);


break;

case 92:
// 92 = DER HEULENDE FLJÖRD  
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 616.571411f, -4987.544434f, 3.985763f, 5.291873f);

break;

case 93:
// 93 = SHOLAZAR BECKEN 
player->CLOSE_GOSSIP_MENU();
player->TeleportTo(571, 5596.030762f, 5826.276367f, -67.677391f, 3.567269f);
// ALLIANZ NORTHEND IST HIER ZUENDE
break;


case 200: //Auswahl Fenster


player->ADD_GOSSIP_ITEM( 5, "Hauptstaedte" , GOSSIP_SENDER_MAIN, 1);
player->ADD_GOSSIP_ITEM( 5, "Playertreffs" , GOSSIP_SENDER_MAIN, 2);
player->ADD_GOSSIP_ITEM( 5, "Azeroth Raids" , GOSSIP_SENDER_MAIN, 3);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Instanzen" , GOSSIP_SENDER_MAIN, 4);
player->ADD_GOSSIP_ITEM( 5, "Scherbenwelt Raids" , GOSSIP_SENDER_MAIN, 5);
player->ADD_GOSSIP_ITEM( 5, "Gurubashi Arena" , GOSSIP_SENDER_MAIN, 6);
player->ADD_GOSSIP_ITEM( 5, "Northend" , GOSSIP_SENDER_MAIN, 84);
player->ADD_GOSSIP_ITEM( 0, "Tschuess!" , GOSSIP_SENDER_MAIN, 9);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,_Creature->GetGUID());


break;
}


}

bool GossipSelect_teleporter(Player *player, Creature *_Creature, uint32

sender, uint32 action )

{
// Der Teleporter
if (sender == GOSSIP_SENDER_MAIN)
SendDefaultMenu_teleporter(player, _Creature, action   );

return true;

}
void AddSC_teleporter()
{
    Script *newscript;

newscript = new Script;
newscript->Name="teleporter";
newscript->pGossipHello = &GossipHello_teleporter;
newscript->pGossipSelect = &GossipSelect_teleporter;
newscript->pItemHello = NULL;
newscript->pGOHello = NULL;
newscript->pAreaTrigger = NULL;
newscript->pItemQuestAccept = NULL;
newscript->pGOQuestAccept = NULL;
newscript->pGOChooseReward = NULL;
newscript->RegisterSelf();

}
dooming is offline  
Old   #7
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
nett das jmd schreibt aber

1. mir fehlen diese datein alle

#include "sc_gossip.h"
#include "GossipDef.h"
#include "Player.h"
#include "precompiled.h"
#include "../../../../shared/Config/Config.h"
#include "../../config.h"

und

2. bei dem sind einige fehler dirn
z.B.
Quote:
/* Script by ChosenWoW/*
/* Script by ChosenWoW */

könntest du mir vlt per PN schreiben !
Sevenface is offline  
Old   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 25
Received Thanks: 0
@ Sevenface :
1: Die Datein sind in JEDER Core drin!
2: Ich leite besagtes Projekt^^
dooming is offline  
Old   #9
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
1. aso sorry habs nicht ins core getan ^^

2. nicht schlecht aber leider sind paar fehler drin ! da ich es nicht kompilieren kann !

z.B. hier

bool GossipHello_teleporter(Player *player, Creature *_Creature)

wird mir ein fehler angezeigt beim kompilieren !
Sevenface is offline  
Old   #10
 
elite*gold: 0
Join Date: Jun 2009
Posts: 25
Received Thanks: 0
dann nimm den: (der kann noch mehr)

Code:
/* Copyright (C) 2006 - 2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/* ScriptData
SDName: telenpc
SD%Complete: 100
SDComment: Teleport Master
SDCategory: NPC
EndScriptData */

#include "precompiled.h"
#include "../../../../shared/Config/Config.h"
#include "../../config.h"

bool GossipHello_TeleNPC(Player* pPlayer, Creature* pCreature)
{
	Config SD2Config;
	if(!SD2Config.SetSource(_SCRIPTDEV2_CONFIG,true))
		error_log("SD2: Unable to open configuration file");

	if(SD2Config.GetBoolDefault("TeleNPC.OnlyGMs", false)) // If TeleNPC.OnlyGMs is enabled in scriptdev2.conf
		if (pPlayer->GetSession()->GetSecurity() == SEC_PLAYER)
		{
			pCreature->MonsterWhisper("Sorry, I can only teleport game masters.", pPlayer->GetGUID());
			return true;
		}

	bool EnableResSickness = SD2Config.GetBoolDefault("TeleNPC.EnableRemoveResSickness", true);
	bool EnableAlliancevsHordePvP = SD2Config.GetBoolDefault("TeleNPC.EnableAlliancevsHordePvP", true);
	bool EnablePlayerTools = SD2Config.GetBoolDefault("TeleNPC.EnablePlayerTools", true);
	bool EnableInnkeeper = SD2Config.GetBoolDefault("TeleNPC.EnableInnkeeper", true);
	bool EnableShoppingMall = SD2Config.GetBoolDefault("TeleNPC.EnableShoppingMall", false);
	bool EnableHarmonyGuildShip = SD2Config.GetBoolDefault("TeleNPC.HarmonyGuildShip", false);
	bool EnableUnityGuildShip = SD2Config.GetBoolDefault("TeleNPC.UnityGuildShip", false);

	// Main Menu for Alliance
    if (pPlayer->GetTeam() == ALLIANCE)
	{
		pPlayer->ADD_GOSSIP_ITEM( 7, "Alliance Town ->"             , GOSSIP_SENDER_MAIN, 1000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Neutral Town ->"              , GOSSIP_SENDER_MAIN, 3000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Outland Location ->"          , GOSSIP_SENDER_MAIN, 3600);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Northrend Location ->"        , GOSSIP_SENDER_MAIN, 3700);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
	}
	else // Main Menu for Horde
	{
		pPlayer->ADD_GOSSIP_ITEM( 7, "Horde Town ->"                , GOSSIP_SENDER_MAIN, 2000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Neutral Town ->"              , GOSSIP_SENDER_MAIN, 3000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Outland Location ->"          , GOSSIP_SENDER_MAIN, 3600);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Northrend Location ->"        , GOSSIP_SENDER_MAIN, 3700);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
	}

	// Check config if "Player Tools" is enabled or not
	if(EnablePlayerTools)
		pPlayer->ADD_GOSSIP_ITEM( 7, "Player Tools ->"              , GOSSIP_SENDER_MAIN, 4000);

	// Check config if "Shopping Mall" is enabled or not
	if(EnableShoppingMall)
		pPlayer->ADD_GOSSIP_ITEM( 8, "Shopping Mall"                , GOSSIP_SENDER_MAIN, 5200);

	// Check config file if "Alliance vs Horde PvP" option is enabled or not
	if(EnableAlliancevsHordePvP)
		pPlayer->ADD_GOSSIP_ITEM( 9, "Alliance vs Horde PvP"        , GOSSIP_SENDER_MAIN, 3500);

    pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());

return true;
}

void SendDefaultMenu_TeleNPC(Player* pPlayer, Creature* pCreature, uint32 uiAction)
{

// Not allow in combat
if (pPlayer->isInCombat())
{
    pPlayer->CLOSE_GOSSIP_MENU();
    pCreature->MonsterSay("You are in combat!", LANG_UNIVERSAL, NULL);
	return;
}

Config SD2Config;
if(!SD2Config.SetSource(_SCRIPTDEV2_CONFIG,true))
		error_log("SD2: Unable to open configuration file");
bool EnableResSickness = SD2Config.GetBoolDefault("TeleNPC.EnableRemoveResSickness", true);
bool EnableAlliancevsHordePvP = SD2Config.GetBoolDefault("TeleNPC.EnableAlliancevsHordePvP", true);
bool EnablePlayerTools = SD2Config.GetBoolDefault("TeleNPC.PlayerTools", true);
bool EnableInnkeeper = SD2Config.GetBoolDefault("TeleNPC.EnableInnkeeper", true);
bool EnableShoppingMall = SD2Config.GetBoolDefault("TeleNPC.EnableShoppingMall", false);
bool EnableHarmonyGuildShip = SD2Config.GetBoolDefault("TeleNPC.HarmonyGuildShip", false);
bool EnableUnityGuildShip = SD2Config.GetBoolDefault("TeleNPC.UnityGuildShip", false);

//Mony Check
if (pPlayer->GetMoney() < (SD2Config.GetFloatDefault("TeleGoldCost",0)))
{
    pPlayer->CLOSE_GOSSIP_MENU();
    pCreature->MonsterWhisper("You don't have enough money.", pPlayer->GetGUID());
	return;
}

switch(uiAction)
{

case 1000: //Alliance Town
		pPlayer->ADD_GOSSIP_ITEM( 5, "Darnassus"                    , GOSSIP_SENDER_MAIN, 1001);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Exodar"                       , GOSSIP_SENDER_MAIN, 1005);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Ironforge"                    , GOSSIP_SENDER_MAIN, 1010);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Stormwind"                    , GOSSIP_SENDER_MAIN, 1015);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                 , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 2000: //Horde Town
		pPlayer->ADD_GOSSIP_ITEM( 5, "Orgrimmar"                    , GOSSIP_SENDER_MAIN, 2001);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Silvermoon"                   , GOSSIP_SENDER_MAIN, 2005);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Thunder Bluff"                , GOSSIP_SENDER_MAIN, 2010);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Undercity"                    , GOSSIP_SENDER_MAIN, 2015);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                 , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 3000: //Neutral Town
     // Check if player is DK for "Ebon Hold"
     if(pPlayer->getClass()==6)
		pPlayer->ADD_GOSSIP_ITEM( 5, "Ebon Hold"                    , GOSSIP_SENDER_MAIN, 3001);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Booty Bay"                    , GOSSIP_SENDER_MAIN, 3005);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Dalaran"                      , GOSSIP_SENDER_MAIN, 3010);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Everlook"                     , GOSSIP_SENDER_MAIN, 3015);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Gadegetzan"                   , GOSSIP_SENDER_MAIN, 3020);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Mudsprocket"                  , GOSSIP_SENDER_MAIN, 3025);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Ratchet"                      , GOSSIP_SENDER_MAIN, 3030);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Shattrath City"               , GOSSIP_SENDER_MAIN, 3035);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Isle Of Quel'Danas"           , GOSSIP_SENDER_MAIN, 3040);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                 , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 3600: //Outland Location
		pPlayer->ADD_GOSSIP_ITEM( 5, "Blade's Edge Mountains"       , GOSSIP_SENDER_MAIN, 3601);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Hellfire Peninsula"           , GOSSIP_SENDER_MAIN, 3605);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Nagrand"                      , GOSSIP_SENDER_MAIN, 3610);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Netherstorm"                  , GOSSIP_SENDER_MAIN, 3615);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Shadowmoon Valley"            , GOSSIP_SENDER_MAIN, 3620);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Terokkar Forest"              , GOSSIP_SENDER_MAIN, 3625);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Zangarmarsh"                  , GOSSIP_SENDER_MAIN, 3630);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                 , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 3700: //Northrend Location
		pPlayer->ADD_GOSSIP_ITEM( 5, "Borean Tundra"                , GOSSIP_SENDER_MAIN, 3701);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Crystalsong Forest"           , GOSSIP_SENDER_MAIN, 3705);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Dragonblight"                 , GOSSIP_SENDER_MAIN, 3710);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Grizzly Hills"                , GOSSIP_SENDER_MAIN, 3715);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Howling Fjord"                , GOSSIP_SENDER_MAIN, 3720);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Hrothgar's Landing"           , GOSSIP_SENDER_MAIN, 3725);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Icecrown"                     , GOSSIP_SENDER_MAIN, 3730);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Sholazar Basin"               , GOSSIP_SENDER_MAIN, 3735);
		pPlayer->ADD_GOSSIP_ITEM( 5, "The Storm Peaks"              , GOSSIP_SENDER_MAIN, 3740);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Wintergrasp"                  , GOSSIP_SENDER_MAIN, 3745);
		pPlayer->ADD_GOSSIP_ITEM( 5, "Zul'Drak"                     , GOSSIP_SENDER_MAIN, 3750);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                 , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5000: //Dungeons
		pPlayer->ADD_GOSSIP_ITEM( 7, "Kalimdor ->"                  , GOSSIP_SENDER_MAIN, 5010);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Eastern Kingdoms ->"          , GOSSIP_SENDER_MAIN, 5015);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Outland ->"                   , GOSSIP_SENDER_MAIN, 5025);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Northrend ->"                 , GOSSIP_SENDER_MAIN, 5030);
		pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                 , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5005: //Back To Main Menu
    // Main Menu for Alliance
    if (pPlayer->GetTeam() == ALLIANCE)
	{
		pPlayer->ADD_GOSSIP_ITEM( 7, "Alliance Town ->"             , GOSSIP_SENDER_MAIN, 1000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Neutral Town ->"              , GOSSIP_SENDER_MAIN, 3000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Outland Location ->"          , GOSSIP_SENDER_MAIN, 3600);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Northrend Location ->"        , GOSSIP_SENDER_MAIN, 3700);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
	}
	else // Main Menu for Horde
	{
		pPlayer->ADD_GOSSIP_ITEM( 7, "Horde Town ->"                , GOSSIP_SENDER_MAIN, 2000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Neutral Town ->"              , GOSSIP_SENDER_MAIN, 3000);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Outland Location ->"          , GOSSIP_SENDER_MAIN, 3600);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Northrend Location ->"        , GOSSIP_SENDER_MAIN, 3700);
		pPlayer->ADD_GOSSIP_ITEM( 7, "Dungeons ->"                  , GOSSIP_SENDER_MAIN, 5000);
	}

	// Check if Player Tools is enabled in scriptdev2.conf
	if(EnablePlayerTools)
		pPlayer->ADD_GOSSIP_ITEM( 7, "Player Tools ->"              , GOSSIP_SENDER_MAIN, 4000);

	// Check if Shopping Mall is enabled in scriptdev2.conf
	if(EnableShoppingMall)
		pPlayer->ADD_GOSSIP_ITEM( 8, "Shopping Mall"                , GOSSIP_SENDER_MAIN, 5200);

	// Check if Alliance vs Horde PvP option is enabled in scriptdev2.conf
	if(EnableAlliancevsHordePvP)
		pPlayer->ADD_GOSSIP_ITEM( 9, "Alliance vs Horde PvP"        , GOSSIP_SENDER_MAIN, 3500);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5010: //Kalimdor
	pPlayer->ADD_GOSSIP_ITEM( 5, "Blackfathom Deeps"                , GOSSIP_SENDER_MAIN, 6001);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Caverns of Time"                  , GOSSIP_SENDER_MAIN, 6005);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Dire Maul"                        , GOSSIP_SENDER_MAIN, 6010);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Maraudon"                         , GOSSIP_SENDER_MAIN, 6015);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Ragefire Chasm"                   , GOSSIP_SENDER_MAIN, 6020);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Razorfen Downs"                   , GOSSIP_SENDER_MAIN, 6025);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Razorfen Kraul"                   , GOSSIP_SENDER_MAIN, 6030);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Ruins of Ahn'Qiraj"               , GOSSIP_SENDER_MAIN, 6035);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Temple of Ahn'Qiraj"              , GOSSIP_SENDER_MAIN, 6040);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Wailing Caverns"                  , GOSSIP_SENDER_MAIN, 6045);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Zul'Farrak"                       , GOSSIP_SENDER_MAIN, 6050);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- Back"                          , GOSSIP_SENDER_MAIN, 5000);
	
	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5015: //Eastern Kingdoms 1
	pPlayer->ADD_GOSSIP_ITEM( 5, "Blackrock Depths"                 , GOSSIP_SENDER_MAIN, 7001);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Blackrock Spire"                  , GOSSIP_SENDER_MAIN, 7005);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Blackwing Lair"                   , GOSSIP_SENDER_MAIN, 7010);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Deadmines"                        , GOSSIP_SENDER_MAIN, 7015);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Gnomeregan"                       , GOSSIP_SENDER_MAIN, 7020);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Isle Of Quel'Danas"               , GOSSIP_SENDER_MAIN, 7025);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Karazhan"                         , GOSSIP_SENDER_MAIN, 7030);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Molten Core"                      , GOSSIP_SENDER_MAIN, 7035);
	pPlayer->ADD_GOSSIP_ITEM( 7, "More ->"                          , GOSSIP_SENDER_MAIN, 5020);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- Back"                          , GOSSIP_SENDER_MAIN, 5000);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5020: //Eastern Kingdoms 2
	pPlayer->ADD_GOSSIP_ITEM( 5, "Scarlet Monastery"                , GOSSIP_SENDER_MAIN, 7040);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Scholomance"                      , GOSSIP_SENDER_MAIN, 7045);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Shadowfang Keep"                  , GOSSIP_SENDER_MAIN, 7050);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Stratholme"                       , GOSSIP_SENDER_MAIN, 7055);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Sunken Temple"                    , GOSSIP_SENDER_MAIN, 7060);
	pPlayer->ADD_GOSSIP_ITEM( 5, "The Stockade"                     , GOSSIP_SENDER_MAIN, 7065);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Uldaman"                          , GOSSIP_SENDER_MAIN, 7070);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Zul'Aman"                         , GOSSIP_SENDER_MAIN, 7075);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Zul'Gurub"                        , GOSSIP_SENDER_MAIN, 7080);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- Back"                          , GOSSIP_SENDER_MAIN, 5015);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"                     , GOSSIP_SENDER_MAIN, 5005);
	
	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5025: //Outland	
	pPlayer->ADD_GOSSIP_ITEM( 5, "Auchindoun"                       , GOSSIP_SENDER_MAIN, 8001);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Black Temple"                     , GOSSIP_SENDER_MAIN, 8005);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Coilfang Reservoir"               , GOSSIP_SENDER_MAIN, 8010);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Gruul's Lair"                     , GOSSIP_SENDER_MAIN, 8015);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Hellfire Citadel"                 , GOSSIP_SENDER_MAIN, 8020);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Tempest Keep"                     , GOSSIP_SENDER_MAIN, 8025);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- Back"                          , GOSSIP_SENDER_MAIN, 5000);
	
	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 5030: //Northrend	
	pPlayer->ADD_GOSSIP_ITEM( 5, "Ahn'Kahet"                        , GOSSIP_SENDER_MAIN, 9001);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Azjol-Nerub"                      , GOSSIP_SENDER_MAIN, 9005);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Drak'Tharon Keep"                 , GOSSIP_SENDER_MAIN, 9010);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Gun'Drak"                         , GOSSIP_SENDER_MAIN, 9015);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Icecrown Citadel"                 , GOSSIP_SENDER_MAIN, 9020);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Naxxramas"                        , GOSSIP_SENDER_MAIN, 9025);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Onyxia's Lair"                    , GOSSIP_SENDER_MAIN, 9030);
	pPlayer->ADD_GOSSIP_ITEM( 5, "The Nexus"                        , GOSSIP_SENDER_MAIN, 9035);
	pPlayer->ADD_GOSSIP_ITEM( 5, "The Obsidian Sanctum"             , GOSSIP_SENDER_MAIN, 9040);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Utgarde Keep"                     , GOSSIP_SENDER_MAIN, 9045);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Utgarde Pinnacle"                 , GOSSIP_SENDER_MAIN, 9050);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Ulduar"                           , GOSSIP_SENDER_MAIN, 9055);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Violet Hold"                      , GOSSIP_SENDER_MAIN, 9060);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- Back"                          , GOSSIP_SENDER_MAIN, 5000);
	
	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

case 4000: // Player Tools
      // Check config file if "Innkeeper" option is enabled or not
	if(EnableInnkeeper)
		pPlayer->ADD_GOSSIP_ITEM( 5, "Make This Place Your Home"  , GOSSIP_SENDER_MAIN, 4005);
	pPlayer->ADD_GOSSIP_ITEM( 5, "Reset Talent Points"              , GOSSIP_SENDER_MAIN, 4010);
      // Check if player is Hunter for "Reset Pet Talent Points"
	if(pPlayer->getClass()==3)
		pPlayer->ADD_GOSSIP_ITEM( 5, "Reset Pet Talent Points"    , GOSSIP_SENDER_MAIN, 4015);
	// Check config file if "Remove res sickness" option is enabled or not
	if(EnableResSickness)
		pPlayer->ADD_GOSSIP_ITEM( 5, "Remove Resurrect Sickness"  , GOSSIP_SENDER_MAIN, 4020);
	// Guild Only Teleport Options
	// Check config file if "Harmony Guild Ship" option is enabled or not
	if(EnableHarmonyGuildShip)
	if(pPlayer->GetGuildId() == (SD2Config.GetFloatDefault("GuildId1",0))) pPlayer->ADD_GOSSIP_ITEM( 5, "Harmony Guild Ship", GOSSIP_SENDER_MAIN, 4025);
	
	// Check config file if "Unity Guild Ship" option is enabled or not
	if(EnableUnityGuildShip)
	if(pPlayer->GetGuildId() == (SD2Config.GetFloatDefault("GuildId2",0))) pPlayer->ADD_GOSSIP_ITEM( 5, "Unity Guild Ship", GOSSIP_SENDER_MAIN, 4030);
	pPlayer->ADD_GOSSIP_ITEM( 7, "<- [Main Menu]"                   , GOSSIP_SENDER_MAIN, 5005);

	pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
break;

//////////////////////////////////////////////////ALLIANCE///////////////////////////////////////////////////////////////

case 1001: // Darnassus
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, 9947.52f, 2482.73f, 1316.21f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 1005: // Exodar
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -3954.20f, -11656.54f, -138.69f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 1010: // Ironforge
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -4924.07f, -951.95f, 501.55f, 5.40f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 1015: // Stormwind
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -8960.14f, 516.266f, 96.3568f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////HORDE///////////////////////////////////////////////////////////////

case 2001: // Orgrimmar
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, 1552.5f, -4420.66f, 8.94802f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 2005: // Silvermoon
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 9338.74f, -7277.27f, 13.7895f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 2010: // Thunder Bluff
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -1290.0f, 147.033997f, 129.682007f, 4.919000f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 2015: // Undercity
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, 1819.71f, 238.79f, 60.5321f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////NEUTRAL///////////////////////////////////////////////////////////////

case 3001:// Ebon Hold
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, 2353.530029f, -5665.819824f, 426.028015f, 0.596f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3005:// Booty Bay
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -14438.2f, 472.22f, 15.32f, 0.65f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3010: //Dalaran
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 5819.08f, 643.99f, 647.80f, 3.32f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3015: //Everlook
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, 6724.77f, -4610.68f, 720.78f, 4.78f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3020: //Gadgetzan
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -7173.26f, -3785.60f, 8.37f, 6.13f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3025: //Mudsprocket
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -4564.79f, -3172.38f, 33.93f, 3.21f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3030: //Ratchet
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -956.664f, -3754.71f, 5.33239f, 0.996637f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3035:// Shattrath City
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -1850.209961f, 5435.821777f, -10.961435f, 3.403913f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3040:// Isle Of Quel'Danas
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 12947.4f, -6893.31f, 5.68398f, 3.09154f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////OUTLAND LOCATION///////////////////////////////////////////////////////////////

case 3601:// Blade's Edge Mountains
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 1589.919312f, 6784.039063f, 135.167633f, 0.506582f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3605:// Hellfire Peninsula
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -248.0f, 956.0f, 84.362808f, 1.549591f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3610: //Nagrand
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -604.137146f, 8436.199219f, 61.776058f, 3.019857f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3615: //Netherstorm
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 3386.022217f, 4225.194824f, 123.685989f, 5.153f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3620: //Shadowmoon Valley
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -2901.471680f, 3125.052734f, 26.8999f, 4.464991f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3625: //Terokkar Forest
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -2000.469971f, 4451.540039f, 8.379014f, 4.464991f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3630: //Zangarmarsh
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -225.6577f, 5435.426270f, 21.574932f, 1.533886f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////NORTHREND LOCATION///////////////////////////////////////////////////////////////

case 3701:// Borean Tundra
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 3256.570068f, 5278.229980f, 40.804588f, 0.246367f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3705:// Crystalsong Forest
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 5766.373047f, 655.131287f, 160.944641f, 4.135118f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3710: //Dragonblight
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 4103.359863f, 264.477997f, 50.501900f, 3.093490f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3715: //Grizzly Hills
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 4391.729980f, -3587.919922f, 238.531006f, 3.575260f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3720: //Howling Fjord
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 1902.150024f, -4883.910156f, 171.363007f, 3.115370f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3725: //Hrothgar's Landing
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 9982.508789f, 1037.768188f, 15.307539f, 5.512708f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3730: //Icecrown
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 7253.640137f, 1644.780029f, 433.679901f, 4.834120f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3735:// Sholazar Basin
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 5572.285156f, 5737.171387f, -75.440643f, 1.514785f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3740:// The Storm Peaks
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 6119.275391f, -1015.613464f, 408.683258f, 5.175134f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3745:// Wintergrasp
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 5212.746582f, 2821.331787f, 409.666840f, 1.840724f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 3750:// Zul'Drak
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 5560.229980f, -3211.659912f, 371.709015f, 5.550550f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////KALIMDOR///////////////////////////////////////////////////////////////

case 6001:// Blackfathom Deeps
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, 4248.72f, 744.35f, -24.67f, 1.34f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;
  
case 6005:// Caverns of Time
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -8173.66f, -4746.36f, 33.84f, 4.94f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6010:// Dire Maul
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -3960.95f, 1130.64f, 161.05f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6015:// Maraudon
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -1431.33f, 2962.34f, 98.23f, 4.74f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6020:// Ragefire Chasm
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, 1814.47f, -4419.46f, -18.78f, 5.28f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6025:// Razorfen Downs
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -4657.88f, -2525.59f, 81.4f, 4.16f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;
    
case 6030:// Razorfen Kraul
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -4463.6f, -1664.53f, 82.26f, 0.85f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6035:// Ruins of Ahn'Qiraj
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -8413.33f, 1501.27f, 29.64f, 2.61f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6040:// Temple of Ahn'Qiraj
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -8245.837891f, 1983.736206f, 129.071686f, 0.936195f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6045:// Wailing Caverns
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -722.53f,-2226.30f,16.94f,2.71f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 6050:// Zul'Farrak
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -6801.9f, -2890.22f, 8.88f, 6.25f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////EASTERN KINGDOMS///////////////////////////////////////////////////////////////

case 7001:// Blackrock Depths
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -7180.57, -920.04f, 165.49f, 5.02f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7005:// Blackrock Spire
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -7526.77f, -1225.64f, 285.73f, 5.31f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7010:// Blackwing Lair
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(469, -7672.61f, -1107.21f, 396.65f, 3.75f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7015:// Deadmines
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -11208.2f, 1675.92f, 24.57f, 1.48f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7020:// Gnomeregan
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -5163.32f, 927.18f, 257.158, 1.44f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;
 
case 7025:// Isle Of Quel'Danas
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 13010.00f, -6907.64f, 9.58f, 4.58f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7030:// Karazhan
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -11119.6f, -2011.42f, 47.09f, 0.65f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7035:// Molten Core
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(230, 1114.85f, -457.76f, -102.81f, 3.83f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7040:// Scarlet Monastery
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, 2843.89f,-693.74f,139.32f,5.11f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7045:// Scholomance
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, 1273.06f, -2574.01f, 92.66f, 2.06f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7050:// Shadowfang Keep
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -239.54f, 1550.8f, 76.89f, 1.18f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7055:// Stratholme
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, 3370.76f, -3343.63f, 142.26f, 5.23f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7060:// Sunken Temple
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -10346.92f, -3851.90f, -43.41f, 6.09f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7065:// The Stockade
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -8766.89f, 844.6f, 88.43f, 0.69f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;
 
case 7070:// Uldaman
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -6070.72f, -2955.33f, 209.78f, 0.05f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7075:// Zul'Aman
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 6851.09f, -7979.71f, 183.54f, 4.72f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 7080:// Zul'Gurub
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(0, -11916.4f, -1216.23f, 92.28f, 4.75f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////OUTLAND///////////////////////////////////////////////////////////////

case 8001:// Auchindoun
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -3322.92f, 4931.02f, -100.56f, 1.86f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 8005:// Black Temple
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -3649.1f, 317.33f, 35.19f, 2.97f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 8010:// Coilfang Reservoir
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 721.08f, 6846.77f, -68.75f, 0.34f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 8015:// Gruul's Lair
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 3539.01f, 5082.36f, 1.69f, 0.0f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 8020:// Hellfire Citadel
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, -292.71f, 3146.77f, 31.60f, 2.05f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 8025:// Tempest Keep
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(530, 3087.62f, 1376.27f, 184.8f, 4.63f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////////////NORTHREND///////////////////////////////////////////////////////////////

case 9001:// Ahn'Kahet
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 3646.76f, 2045.17f, 1.79f, 4.37f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9005:// Azjol-Nerub
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 3675.43f, 2169.00f, 35.90f, 2.29f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9010:// Drak'Tharon Keep
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 4450.86f, -2045.25f, 162.83f, 0.00f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9015:// Gun'Drak
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 6937.54f, -4455.98f, 450.68f, 1.00f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9020:// Icecrown Citadel
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 6139.24f, 2233.72f, 510.79f, 3.56f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9025:// Naxxramas
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 3668.72f, -1262.46f, 243.622f, 4.785f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9030:// Onyxia's Lair
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(1, -4707.44f, -3726.82f, 54.6723f, 3.8f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9035:// The Nexus
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 3789.95f, 6961.48f, 104.23f, 0.28f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9040:// The Obsidian Sanctum
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 3625.78f, 280.4f, -120.14f, 3.25f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9045:// Ulduar
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 1219.72f, -4865.28f, 41.25f, 0.31f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9050:// Utgarde Keep
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 1245.69f, -4856.59f, 216.86f, 3.45f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9055:// Utgarde Pinnacle
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 8976.24f, -1281.33f, 1059.01f, 0.58f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 9060:// Violet Hold
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->TeleportTo(571, 5679.82f, 486.80f, 652.40f, 4.08f);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////Player Tools////////////////////////////////////////////////////////

case 4005:// Innkeeper Bind your new Home
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->SetBindPoint(pCreature->GetGUID());
break;

case 4010:// Reset Talent Points
	pPlayer->CLOSE_GOSSIP_MENU();
	pPlayer->SendTalentWipeConfirm(pCreature->GetGUID());
break;

case 4015:// Reset Pet Talent Points
	pPlayer->CLOSE_GOSSIP_MENU();
	if(pPlayer->GetPet())
	pPlayer->SendPetSkillWipeConfirm();
	else
	pCreature->MonsterWhisper("You don't have a pet.", pPlayer->GetGUID());
break;

case 4020://Remove Res Sickness
	if(!pPlayer->HasAura(SPELL_ID_PASSIVE_RESURRECTION_SICKNESS,0))
	{
		pCreature->MonsterWhisper("You don't have resurrection sickness.", pPlayer->GetGUID());
		GossipHello_TeleNPC(pPlayer, pCreature);
		return;
	}

	pCreature->CastSpell(pPlayer,38588,false); // Healing effect
	pPlayer->RemoveAurasDueToSpell(SPELL_ID_PASSIVE_RESURRECTION_SICKNESS);
	pPlayer->CLOSE_GOSSIP_MENU();
break;

 pPlayer->CLOSE_GOSSIP_MENU();

//////////////////////////////////////////GUILD////////////////////////////////////////////////////////

case 4025: //Harmony Guild Ship (if enabled in scriptdev2.conf)
	pPlayer->CLOSE_GOSSIP_MENU();
	// Read coordinates from config file
	pPlayer->TeleportTo(SD2Config.GetFloatDefault("MapID1",13),SD2Config.GetFloatDefault("X_pos1",0),SD2Config.GetFloatDefault("Y_pos1",0),SD2Config.GetFloatDefault("Z_pos1",0),0);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

case 4030: //Unity Guild Ship (if enabled in scriptdev2.conf)
	pPlayer->CLOSE_GOSSIP_MENU();
	// Read coordinates from config file
	pPlayer->TeleportTo(SD2Config.GetFloatDefault("MapID2",13),SD2Config.GetFloatDefault("X_pos2",0),SD2Config.GetFloatDefault("Y_pos2",0),SD2Config.GetFloatDefault("Z_pos2",0),0);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

//////////////////////////////////////////TOOLS////////////////////////////////////////////////////////

case 3500:// Alliance vs Horde PvP
	pPlayer->CLOSE_GOSSIP_MENU();
	if (pPlayer->GetTeam() == ALLIANCE) // PvP For Alliance
		pPlayer->TeleportTo(SD2Config.GetFloatDefault("MapIDA",13),SD2Config.GetFloatDefault("X_posA",0),SD2Config.GetFloatDefault("Y_posA",0),SD2Config.GetFloatDefault("Z_posA",0),0);
	else // PvP For Horde
		pPlayer->TeleportTo(SD2Config.GetFloatDefault("MapIDH",13),SD2Config.GetFloatDefault("X_posH",0),SD2Config.GetFloatDefault("Y_posH",0),SD2Config.GetFloatDefault("Z_posH",0),0);
break;

case 5200: //Shopping mall (if enabled in scriptdev2.conf)
	pPlayer->CLOSE_GOSSIP_MENU();
	// Read coordinates from config file
	pPlayer->TeleportTo(SD2Config.GetFloatDefault("MapID",13),SD2Config.GetFloatDefault("X_pos",0),SD2Config.GetFloatDefault("Y_pos",0),SD2Config.GetFloatDefault("Z_pos",0),0);
	pPlayer->ModifyMoney(-(SD2Config.GetFloatDefault("TeleGoldCost",0)));
break;

} // end of switch
} //end of function



bool GossipSelect_TeleNPC(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
{
	// Main menu
	if (uiSender == GOSSIP_SENDER_MAIN)
	SendDefaultMenu_TeleNPC(pPlayer, pCreature, uiAction);

return true;
}

void AddSC_telenpc()
{
    Script *newscript;

	newscript = new Script;
    newscript->Name = "telenpc";
    newscript->pGossipHello = &GossipHello_TeleNPC;
    newscript->pGossipSelect = &GossipSelect_TeleNPC;
    newscript->RegisterSelf();
}
Musst nur in der ScriptDev2 Config das ergänzen:
dooming is offline  
Old   #11
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
ja aber dann muss ich ja SD2 neu kompilieren ? aber da braucht man doch auch eine SQL dazu ?!?! oder ?
Sevenface is offline  
Old   #12
 
elite*gold: 185
Join Date: May 2008
Posts: 3,646
Received Thanks: 603
Quote:
Originally Posted by Andy56 View Post
Sufu ist dein Freund!
Googel ist dein Freund!
Bin hier grad im privat Server Bereich am lesen und du schreibst das echt überall rein! Was los mit dir?
epiTR is offline  
Old   #13
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
Ich versuche es halt herauszufinden!
Und ich will nicht sagen das dieses Forum schlecht - ganz und gar nicht - ist aber in fast keinem Forum über Wow Privat Server erklärt wie das mit dem Script dev 2 funktioniert .. und mit denn scripten!


Sevenface is offline  
Thanks
1 User
Reply



« Previous Thread | Next Thread »

Similar Threads
Suche: Mangos 2.4.3 Fun DB Frage: Mangos Web
Hallo liebe Elitepvpers Und zwar suche ich eine mangos 2.4.3 Fun Database auf der man alles kaufen kann und dann halt nur noch pvp und so macht...
0 Replies - WoW Private Server
Such Taxi fuer Mangos 4.0.0
Suche ein taxi der zur ini und wo anders portet fuer mangos 4.0.0 patch 3.5.5
1 Replies - WoW PServer Hosting
Frage zu Mangos
Hi habe mal 2 fragen. 1. ich habe die neuste version von wow muss ich da zurück patchen? 2. bei mir tauchen fehler in den maps und in den vmaps auf...
4 Replies - WoW PServer Hosting
Frage zu Mangos-Rates
ich hab schon seit längerem eine mangos server laufen aber ich bin mir bei ein paar einstellungen nicht sicher was sie machen: Rate.Focus ...
2 Replies - WoW PServer Hosting
Mangos Server Frage
Hallo Erstmal Ich habe eine frage an auch undzwar hat mein freund sich nen server gebaut aber er weist net wie und wo man sich gegenstände selbst...
2 Replies - WoW PServer Hosting



All times are GMT +1. The time now is 19:11.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.