Ejemplo n.º 1
0
    void GossipHello(ObjectPointer pObject, PlayerPointer plr, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 7243, plr);
        
		Menu->AddItem( 0, "Please teach me how to become a axesmith, Kilram.", 1);
		Menu->AddItem( 0, "I wish to unlearn Axesmithing!", 2);

        if(AutoSend)
            Menu->SendTo(plr);
    }
Ejemplo n.º 2
0
  void GossipHello(Object * pObject, Player * plr, bool AutoSend)
  {
    GossipMenu *Menu;
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 3557, plr);

    if(plr->GetQuestLogForEntry(4921) != NULL)
      Menu->AddItem(0, "I inspect the body further.", 1);
    
    if(AutoSend)
      Menu->SendTo(plr);
  }
Ejemplo n.º 3
0
    void GossipHello(Object* pObject, Player* pPlayer)
    {
        GossipMenu* Menu;

        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, pPlayer);

        if(sEAS.GetQuest(pPlayer, QUEST_THE_MECHAGNOMES))
            Menu->AddItem(0, GOSSIP_ITEM_TELL_ME, 1);

        Menu->SendTo(pPlayer);
    }
Ejemplo n.º 4
0
        void GossipHello(Object* pObject, Player* plr)
        {
            if(plr->HasQuest(12645))
            {
                GossipMenu* Menu;
                objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, plr);
                Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(476), 1);     // Care to try Grimbooze Thunderbrew's Jungle punch?

                Menu->SendTo(plr);
            }
        }
Ejemplo n.º 5
0
    void GossipSelectOption(Object* pObject, Player* plr, uint32 Id, uint32 IntId, const char * Code)
    {
		if(pObject->GetTypeId()!=TYPEID_UNIT)
			return;
		
		GossipMenu * Menu;
        switch(IntId)
        {
        case 1:
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1521, plr);
				Menu->SendTo(plr);
            }break;
		case 2:
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1646, plr);
				Menu->SendTo(plr);
            }break;
		}
    }
Ejemplo n.º 6
0
		void GossipHello(Object* pObject, Player* plr)
		{
			if(plr->HasQuest(12645))
			{
				GossipMenu* Menu;
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, plr);
				Menu->AddItem(0, GOSSIP_TASTETEST, 1);

				Menu->SendTo(plr);
			}
		}
Ejemplo n.º 7
0
    void GossipHello(Object * pObject, Player * plr, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 7245, plr);
        
		Menu->AddItem( 0, "Please teach me how to become a hammersmith, Lilith.", 1);
		Menu->AddItem( 0, "I wish to unlearn Hammersmithing!", 2);

        if(AutoSend)
            Menu->SendTo(plr);
    }
Ejemplo n.º 8
0
		void GossipHello(Object* pObject, Player* plr)
		{
			GossipMenu* Menu;
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 60016, plr);

			if(pObject->GetUInt32Value(UNIT_NPC_FLAGS) & UNIT_NPC_FLAG_VENDOR)
				Menu->AddItem(1, "Let me browse your goods.", 1);
			Menu->AddItem(0, "Tell me more about these Darkmoon Cards.", 2);

			Menu->SendTo(plr);
		}
	void send_MainPage(Object * pObject, Player* Plr)
	{
		if( Plr == false )
			return; 

		GossipMenu *Menu;
		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
		Menu->SetTextID( 20050 );
		Menu->AddItem( 0, "Queue for Maze Event",2);
		Menu->SendTo(Plr);
	}
Ejemplo n.º 10
0
    void GossipHello(Object* pObject, Player* pPlayer)
    {
        GossipMenu* Menu;

        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, pPlayer);

        Menu->AddItem(0, GOSSIP_ITEM_FREE_FLIGHT, 1);
        Menu->AddItem(3, GOSSIP_ITEM_FLIGHT, 2);

        Menu->SendTo(pPlayer);
    };
        void GossipHello(Object* pObject, Player* Plr)
        {
            GossipMenu* Menu;
            if (!pObject->IsCreature())
                return;

            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), THRALL_ON_HELLO, Plr);
            Menu->AddItem(GOSSIP_ICON_CHAT, Plr->GetSession()->LocalizedGossipOption(THRALL_START_ESCORT), 1);

            Menu->SendTo(Plr);
        }
Ejemplo n.º 12
0
        void GossipHello(Object* pObject, Player* plr)
        {
            if(plr->HasQuest(10814))
            {
                GossipMenu* Menu;
                objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 10613, plr);
                Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(471), 1);     // I am listening, Dragon

                Menu->SendTo(plr);
            }
        }
Ejemplo n.º 13
0
    void GossipHello(Object* pObject, Player * plr, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 11469, plr);

		if(plr->GetQuestLogForEntry(11223))
        Menu->AddItem( 0, GOSSIP_ARCHMAGE_MALIN, 1);
        
        if(AutoSend)
            Menu->SendTo(plr);
    }
Ejemplo n.º 14
0
 void GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * EnteredCode)
 {
     GossipMenu* Menu;
     switch(IntId)
     {
     case 1:
     {
         objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2236, Plr);
         Menu->AddItem(2, RHA_GOSSIP_ITEM_2, 2);
         Menu->SendTo(Plr);
     }
     break;
     case 2:
     {
         objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2237, Plr);
         Menu->AddItem(2, RHA_GOSSIP_ITEM_3, 3);
         Menu->SendTo(Plr);
     }
     break;
     case 3:
     {
         objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2238, Plr);
         Menu->AddItem(2, RHA_GOSSIP_ITEM_4, 4);
         Menu->SendTo(Plr);
     }
     break;
     case 4:
     {
         objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2239, Plr);
         Menu->AddItem(2, RHA_GOSSIP_ITEM_5, 5);
         Menu->SendTo(Plr);
     }
     break;
     case 5:
     {
         Plr->Gossip_Complete();
         sQuestMgr.OnPlayerExploreArea(Plr, 3702);
     }
     break;
     }
 }
Ejemplo n.º 15
0
	void GossipHello(Object* pObject, Player * plr, bool AutoSend)
    {
		GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, plr);
        Menu->AddItem( 0, "Where would you like to fly too ?", 2); 
        if( plr->GetQuestLogForEntry(11332)!= NULL)
			Menu->AddItem( 0, "Greer, i need a gryphon to ride and some bombs to drop on New Agamand!", 1 );
       

        if(AutoSend)
            Menu->SendTo(plr);
    }
Ejemplo n.º 16
0
		void GossipHello(Object* pObject, Player* plr)
		{
			GossipMenu* Menu;

			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 60035, plr);
			Menu->AddItem(0, "What can I purchase?", 1);
			Menu->AddItem(0, "What are Darkmoon Faire Prize Tickets and how do I get them?", 2);
			Menu->AddItem(0, "What are Darkmoon Cards?", 3);
			Menu->AddItem(0, "What other things can I do at the faire?", 4);

			Menu->SendTo(plr);
		}
Ejemplo n.º 17
0
	void GossipHello(Object * pObject, Player * plr, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 7247, plr);
        
		if(plr->GetTeam() == 0)
			Menu->AddItem( 0, "Please Teleport me to Darnassus.", 1);
		Menu->AddItem( 0, "I wish to leave this horrible place", 2);

        if(AutoSend)
            Menu->SendTo(plr);
    }
Ejemplo n.º 18
0
        void GossipHello(Object* pObject, Player* pPlayer)
        {
            GossipMenu* menu;
            objmgr.CreateGossipMenuForPlayer(&menu, pObject->GetGUID(), MORRIDUNE_ON_HELLO, pPlayer);

            if (pPlayer->IsTeamAlliance())
                menu->AddItem(GOSSIP_ICON_CHAT, pPlayer->GetSession()->LocalizedGossipOption(MORRIDUNE_OPTION_1), 1);
            else
                menu->AddItem(GOSSIP_ICON_CHAT, pPlayer->GetSession()->LocalizedGossipOption(MORRIDUNE_OPTION_2), 2);

            menu->SendTo(pPlayer);
        }
Ejemplo n.º 19
0
		void GossipHello(Object* pObject, Player* Plr)
		{
			GossipMenu* Menu;
			QuestLogEntry* en = Plr->GetQuestLogForEntry(8304);

			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 7736, Plr);

			if(en && en->GetMobCount(1) < en->GetQuest()->required_mobcount[1])
				Menu->AddItem(0, "Hello, Rutgar. The Commander has sent me here to gather some information about his missing wife.", 3);

			Menu->SendTo(Plr);
		}
Ejemplo n.º 20
0
// Ulduar Teleporter
void UlduarTeleporter::GossipHello(ObjectPointer  pObject, PlayerPointer Plr, bool AutoSend)
{
	GossipMenu *Menu;
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 0, Plr);

    Menu->AddItem(0, "Teleport to the Expedition Base Camp.", 0);
    Menu->AddItem(0, "Teleport to the Formation Grounds.", 1);
    Menu->AddItem(0, "Teleport to the Colossal Forge.", 2);

    if(AutoSend)
		Menu->SendTo(Plr);
};
Ejemplo n.º 21
0
    void GossipSelectOption(ObjectPointer pObject, PlayerPointer plr, uint32 Id, uint32 IntId, const char * Code)
    {
		if(pObject->GetTypeId()!=TYPEID_UNIT)
			return;
		
        switch(IntId)
        {
        case 1:
			{
				GossipMenu * Menu;
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 10614, plr);
				Menu->AddItem( 0, "But you are dragons! How could orcs do this to you?", 2);
				Menu->SendTo(plr);
            }break;
        case 2:
			{
				GossipMenu * Menu;
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 10615, plr);
				Menu->AddItem( 0, "Your mate?", 3);
				Menu->SendTo(plr);
            }break;
        case 3:
			{
				GossipMenu * Menu;
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 10616, plr);
				Menu->AddItem( 0, "I have battled many beasts, dragon. I will help you.", 4);
				Menu->SendTo(plr);
            }break;
        case 4:
			{
				QuestLogEntry *pQuest = plr->GetQuestLogForEntry(10814);
				if ( pQuest && pQuest->GetMobCount(0) < pQuest->GetQuest()->required_mobcount[0] )
				{
					pQuest->SetMobCount(0, 1);
					pQuest->SendUpdateAddKill(0);
					pQuest->UpdatePlayerFields();
				}
            }break;
		}
    }
Ejemplo n.º 22
0
        void GossipSelectOption(Object* pObject, Player* plr, uint32 Id, uint32 IntId, const char* Code)
        {
            Creature* pCreature = (pObject->IsCreature()) ? (static_cast<Creature*>(pObject)) : NULL;
            if(pCreature == NULL)
                return;

            GossipMenu* Menu;
            switch(IntId)
            {
                case 1:
                    {
                        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13612, plr);
                        Menu->AddItem(ICON_CHAT, plr->GetSession()->LocalizedGossipOption(500), 2);     // I'm sorry that I didn't get here sooner. What happened?
                        Menu->SendTo(plr);
                    }
                    break;
                case 2:
                    {
                        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13613, plr);
                        Menu->AddItem(ICON_CHAT, plr->GetSession()->LocalizedGossipOption(501), 3);     // I'll go get some help. Hang in there.
                        Menu->SendTo(plr);
                    }
                    break;
                case 3:
                    {
                        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13614, plr);
                        Menu->SendTo(plr);

                        QuestLogEntry* qle = plr->GetQuestLogForEntry(12864);
                        if(qle == NULL || qle->GetMobCount(0) != 0)
                            return;

                        qle->SetMobCount(0, 1);
                        qle->SendUpdateAddKill(0);
                        qle->UpdatePlayerFields();
                    }
                    break;
            }
        }
		void GossipHello(Object* pObject, Player* pPlayer)
		{
			GossipMenu* Menu;
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 12252, pPlayer);

			if(pPlayer->GetQuestLogForEntry(11532) || pPlayer->GetQuestLogForEntry(11533))
				Menu->AddItem(0, "Speaking of action, I've been ordered to undertake an air strike.", 1);

			if(pPlayer->GetQuestLogForEntry(11543) || pPlayer->GetQuestLogForEntry(11542))
				Menu->AddItem(0, "I need to intercept the Dawnblade reinforcements.", 2);

			Menu->SendTo(pPlayer);
		}
Ejemplo n.º 24
0
		void GossipSelectOption(Object* pObject, Player* plr, uint32 Id, uint32 IntId, const char* Code)
		{
			Creature* pCreature = (pObject->IsCreature()) ? (TO_CREATURE(pObject)) : NULL;
			if(pCreature == NULL)
				return;

			GossipMenu* Menu;
			switch(IntId)
			{
				case 1:
					{
						objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13612, plr);
						Menu->AddItem(0, GOSSIP_SCOUTMENU2, 2);
						Menu->SendTo(plr);
					}
					break;
				case 2:
					{
						objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13613, plr);
						Menu->AddItem(0, GOSSIP_SCOUTMENU3, 3);
						Menu->SendTo(plr);
					}
					break;
				case 3:
					{
						objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13614, plr);
						Menu->SendTo(plr);

						QuestLogEntry* qle = plr->GetQuestLogForEntry(12864);
						if(qle == NULL || qle->GetMobCount(0) != 0)
							return;

						qle->SetMobCount(0, 1);
						qle->SendUpdateAddKill(0);
						qle->UpdatePlayerFields();
					}
					break;
			}
		}
Ejemplo n.º 25
0
        void GossipHello(Object* pObject, Player* pPlayer)
        {
            GossipMenu* Menu;
            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 12252, pPlayer);

            if(pPlayer->HasQuest(11532) || pPlayer->HasQuest(11533))
                Menu->AddItem(ICON_CHAT, pPlayer->GetSession()->LocalizedGossipOption(466), 1);     // Speaking of action, I've been ordered to undertake an air strike.

            if(pPlayer->HasQuest(11543) || pPlayer->HasQuest(11542))
                Menu->AddItem(ICON_CHAT, pPlayer->GetSession()->LocalizedGossipOption(467), 2);     // I need to intercept the Dawnblade reinforcements.

            Menu->SendTo(pPlayer);
        }
Ejemplo n.º 26
0
    void GossipHello(Object* pObject, Player* Plr, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 13349, Plr);

        Menu->AddItem(0, "Arena Vendor"		    , 1);
        Menu->AddItem(0, "Arena Battlemaster"   , 2);
        Menu->AddItem(0, "Black Market"         , 3);
        Menu->AddItem(0, "Exit of Dalaran"	    , 4);

        if(AutoSend)
            Menu->SendTo(Plr);
    }
Ejemplo n.º 27
0
    void GossipHello(Object* pObject, Player* Plr, bool AutoSend)
	{
        GossipMenu *Menu;
                
		switch(pObject->GetEntry())
		{
			case TAXI_BRACK:
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, Plr);
				if (Plr->GetQuestLogForEntry(10162) || Plr->GetQuestLogForEntry(10347))
				{
					Menu->AddItem(0, GOSSIP_MISSIONA, 1);
				}

				if (Plr->GetQuestLogForEntry(10129))
				{
					Menu->AddItem(0, GOSSIP_MISSIONB,2);
				}

				Menu->AddItem(0, GOSSIP_SPINERIDGE, 3);
			}break;
			case TAXI_DABIREE:
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, Plr);
				if ( Plr->GetQuestLogForEntry(10146) )
				{
					Menu->AddItem(0, GOSSIP_MISSIONB,2);
				}
				
				Menu->AddItem(0, GOSSIP_SHATTPOINT,4);
			}break;         
			case TAXI_WINDBELLOW:
 			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, Plr);
				if ( Plr->GetQuestLogForEntry(10163) || Plr->GetQuestLogForEntry(10346) )
				{
						Menu->AddItem( 0, GOSSIP_MISSIONA,              1);
				}
				
				Menu->AddItem( 0, GOSSIP_HONORPOINT,    5);
			}break;
			case TAXI_LEAFBEARD:
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 40002, Plr);
				Menu->AddItem( 0, GOSSIP_SHATTPOINT,    4);                             
			}break;
		}

        if(AutoSend)
            Menu->SendTo(Plr);
    }
Ejemplo n.º 28
0
    void GossipHello(Object* pObject, Player* Plr, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 10066, Plr);
        Menu->AddItem(0, "Bank"					, 1);
        Menu->AddItem(0, "Hippogryph Master"	, 2);
        Menu->AddItem(0, "Guild Master"			, 3);
        Menu->AddItem(0, "Inn"					, 4);
        Menu->AddItem(0, "Stable"				, 5);
        Menu->AddItem(0, "Class Trainer"		, 6);
		Menu->AddItem(0, "Profession Trainer"	, 7);
        if(AutoSend)
            Menu->SendTo(Plr);
    }
Ejemplo n.º 29
0
    void GossipHello(Object* pObject, Player * plr, bool AutoSend)
    {
        GossipMenu *Menu;
        if(plr->getClass() == DRUID && plr->getRace() == RACE_NIGHTELF){
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 4914, plr);
			Menu->AddItem( 0, GOSSIP_SILVA_FILNAVETH, 1);
		}else if(plr->getClass() == DRUID && plr->getRace() == RACE_TAUREN){
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 4915, plr);
		}else{
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 4913, plr);
        };
        if(AutoSend)
            Menu->SendTo(plr);
    }
Ejemplo n.º 30
0
    void GossipHello(Object* pObject, Player * plr, bool AutoSend)
    {
        GossipMenu *Menu;
		if(plr->getClass() == DRUID && plr->getRace() == RACE_TAUREN){
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 4918, plr);
			Menu->AddItem( 0, GOSSIP_BUNTHEN_PLAINSWIND, 1);
		}else if(plr->getClass() == DRUID && plr->getRace() == RACE_NIGHTELF){
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 4917, plr);
		}else{
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 4916, plr);
        };
        if(AutoSend)
            Menu->SendTo(plr);
    }