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