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


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

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


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

示例1: GossipHello

    void GossipHello(ObjectPointer pObject, PlayerPointer plr, bool AutoSend)
    {
        GossipMenu *Menu;
		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1793, plr);
			
			Menu->AddItem( 0, GOSSIP_CAPTAIN_GARRAN_VIMES, 1);

        if(AutoSend)
            Menu->SendTo(plr);
    }
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:10,代码来源:Gossip_Theramore.cpp

示例2: GossipHello

    void GossipHello(Object* pObject, Player * plr, bool AutoSend)
    {
		GossipMenu *Menu;
		
		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 60048, plr);
		Menu->AddItem(0, "Tell me how to use the Blastenheimer 5000 Ultra Cannon.", 1);
                        
        if(AutoSend)
            Menu->SendTo(plr);
    }
开发者ID:AtVirus,项目名称:Descent-Scripts,代码行数:10,代码来源:Gossip_DarkmoonFaire.cpp

示例3: GossipHello

    void GossipHello(Object* pObject, Player * Plr, bool AutoSend)
    {
		if (Plr->GetQuestLogForEntry(10814))
		{
			GossipMenu *Menu;
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 10613, Plr);
			Menu->AddItem( 0, "I am listening, dragon", 1);
            Menu->SendTo(Plr);
		}
    }
开发者ID:miklasiak,项目名称:projekt,代码行数:10,代码来源:Shadowmoon.cpp

示例4: GossipHello

void GossipHello(Object * pObject, Player* Plr, bool AutoSend)
    {

            GossipMenu *Menu;
            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
            Menu->AddItem(0, "Power of the Horde", 1);
            Menu->AddItem(5, "Brewfest Songs", 2);
            Menu->AddItem(0, "Menu Music", 3);
            Menu->AddItem(0, "Lament of the Highborne", 4);
            Menu->AddItem(0, "Darkmoon Faire", 5);
            Menu->AddItem(0, "Darnassus Day", 6);
            Menu->AddItem(0, "Exodar City", 7);
            Menu->AddItem(0, "IronForge", 8);
            Menu->AddItem(0, "Tavern Dwarf", 18);
            Menu->AddItem(5, "Page 2", 9);
            if(AutoSend)
            Menu->SendTo(Plr);
        
    }
开发者ID:Chero,项目名称:abcwow,代码行数:19,代码来源:Custom_DJ.cpp

示例5: GossipHello

 void GossipHello(Object* pObject, Player* plr)
 {
     GossipMenu* Menu;
     if(!plr->GetItemInterface()->GetItemCount(24573, true))
     {
         objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 9226, plr);
         Menu->AddItem(ICON_CHAT, plr->GetSession()->LocalizedGossipOption(502), 1);     // Offer treat
         Menu->SendTo(plr);
     }
 }
开发者ID:Declipe,项目名称:AscEmu,代码行数:10,代码来源:Quest_Zangarmarsh.cpp

示例6: GossipHello

		void GossipHello(Object* pObject, Player* plr)
		{
			GossipMenu* Menu;
			if(plr->GetQuestLogForEntry(10652))
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, plr);
				Menu->AddItem(0, "I'm ready", 1);
				Menu->SendTo(plr);
			}
		}
开发者ID:Antares84,项目名称:arcemu,代码行数:10,代码来源:Quest_Netherstorm.cpp

示例7: GossipHello

		void GossipHello(Object* pObject, Player* plr)
		{
			GossipMenu* Menu;
			if(!plr->GetItemInterface()->GetItemCount(24573, true))
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 9226, plr);
				Menu->AddItem(0, "Offer treat", 1);
				Menu->SendTo(plr);
			}
		}
开发者ID:Refuge89,项目名称:Edge-of-Chaos,代码行数:10,代码来源:Quest_Zangarmarsh.cpp

示例8: GossipHello

		void GossipHello(Object* pObject, Player* plr)
		{
			GossipMenu* Menu;
			if(plr->GetQuestLogForEntry(558))
			{
				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 7012, plr);
				Menu->AddItem(0, "Lady Jaina, this may sound like an odd request... but I have a young ward who is quite shy. You are a hero to him, and he asked me to get your autograph.", 1);
				Menu->SendTo(plr);
			}
		}
开发者ID:Antares84,项目名称:arcemu,代码行数:10,代码来源:QuestGossip.cpp

示例9: GossipHello

    void GossipHello(ObjectPointer pObject, PlayerPointer plr, bool AutoSend)
    {
        GossipMenu *Menu;
		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2153, plr);
			
			Menu->AddItem( 0, GOSSIP_ERELAS_AMBERSKY, 1);

        if(AutoSend)
            Menu->SendTo(plr);
    }
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:10,代码来源:Gossip_Teldrassil.cpp

示例10: GossipHello

 void GossipHello(Object* pObject, Player* plr)
 {
     GossipMenu* Menu;
     if(plr->HasQuest(10279) || plr->HasFinishedQuest(10279))
     {
         objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 9978, plr);
         Menu->AddItem(ICON_CHAT, plr->GetSession()->LocalizedGossipOption(496), 1);     // Please take me to the Master's Lair
         Menu->SendTo(plr);
     }
 }
开发者ID:Declipe,项目名称:AscEmu,代码行数:10,代码来源:Quest_Tanaris.cpp

示例11: 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

示例12: 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

示例13: 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

示例14: GossipHello

    void GossipHello(Object* pObject, Player* plr)
    {
        if(plr->_GetSkillLineCurrent(202, false) >= 415)
        {
            GossipMenu* Menu;
            objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 14785, plr);
            Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(447), 1);     // Borean Tundra
            Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(448), 2);     // Howling Fjord
            Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(449), 3);     // Sholazar Basin
            Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(450), 4);     // Icecrown
            Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(451), 5);     // Storm Peaks
            
            uint8 chance = RandomUInt(1);

            if (chance == 1)
                Menu->AddItem(GOSSIP_ICON_CHAT, plr->GetSession()->LocalizedGossipOption(452), 6);     // Underground...

            Menu->SendTo(plr);
        }
    }
开发者ID:AriDEV,项目名称:AscEmu,代码行数:20,代码来源:RandomScripts.cpp

示例15: GossipHello

    void GossipHello(Object* pObject, Player*  pPlayer, bool AutoSend)
    {
        GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, pPlayer);

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

        if(AutoSend)
            Menu->SendTo(pPlayer);
    }
开发者ID:Sandshroud,项目名称:Sandshroud-Prodigy,代码行数:11,代码来源:Borean_Tundra.cpp


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