当前位置: 首页>>代码示例>>C++>>正文


C++ GossipMenu::SendTo方法代码示例

本文整理汇总了C++中GossipMenu::SendTo方法的典型用法代码示例。如果您正苦于以下问题:C++ GossipMenu::SendTo方法的具体用法?C++ GossipMenu::SendTo怎么用?C++ GossipMenu::SendTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GossipMenu的用法示例。


在下文中一共展示了GossipMenu::SendTo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: GossipHello

    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);
    }
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:11,代码来源:Gossip_Trainer.cpp

示例2: GossipHello

    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);
    }
开发者ID:treetrees,项目名称:Edge-of-Chaos,代码行数:11,代码来源:Quest_BoreanTundra.cpp

示例3: GossipHello

        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);
            }
        }
开发者ID:master312,项目名称:AscEmu,代码行数:11,代码来源:Quest_SholazarBasin.cpp

示例4: GossipHello

		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);
			}
		}
开发者ID:Refuge89,项目名称:Edge-of-Chaos,代码行数:11,代码来源:Quest_SholazarBasin.cpp

示例5: GossipHello

    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);
    }
开发者ID:AtVirus,项目名称:Descent-Scripts,代码行数:11,代码来源:Gossip_Trainer.cpp

示例6: GossipHello

		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);
		}
开发者ID:Antares84,项目名称:arcemu,代码行数:11,代码来源:Gossip_DarkmoonFaire.cpp

示例7: send_MainPage

	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);
	}
开发者ID:AtVirus,项目名称:Descent-Scripts,代码行数:11,代码来源:Tournament_supervisor_gossip.cpp

示例8: GossipHello

        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);
        }
开发者ID:master312,项目名称:AscEmu,代码行数:11,代码来源:Instance_OldHillsbradFoothills.cpp

示例9: GossipHello

        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);
            }
        }
开发者ID:Lbniese,项目名称:AscEmu,代码行数:11,代码来源:Quest_ShadowMoon.cpp

示例10: GossipHello

    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);
    }
开发者ID:AscEmu,项目名称:AscEmu_TBC,代码行数:11,代码来源:Gossip_Stormwind.cpp

示例11: GossipSelectOption

 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;
     }
 }
开发者ID:Refuge89,项目名称:Hearthstone,代码行数:41,代码来源:Ironforge.cpp

示例12: GossipHello

	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);
    }
开发者ID:vata,项目名称:wowice,代码行数:12,代码来源:Quest_Howling_Fjord.cpp

示例13: GossipHello

	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);
    }
开发者ID:miklasiak,项目名称:projekt,代码行数:12,代码来源:Instance_BlackfathomDeeps.cpp

示例14: GossipHello

        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);
        }
开发者ID:AriDEV,项目名称:AscEmu,代码行数:12,代码来源:Instance_BlackfathomDeeps.cpp

示例15: GossipHello

		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);
		}
开发者ID:Refuge89,项目名称:arcscripts2,代码行数:12,代码来源:Quest_Silithus.cpp


注:本文中的GossipMenu::SendTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。