本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}