本文整理汇总了C++中PlayerPointer::BroadcastMessage方法的典型用法代码示例。如果您正苦于以下问题:C++ PlayerPointer::BroadcastMessage方法的具体用法?C++ PlayerPointer::BroadcastMessage怎么用?C++ PlayerPointer::BroadcastMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerPointer
的用法示例。
在下文中一共展示了PlayerPointer::BroadcastMessage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnActivate
void OnActivate(PlayerPointer pPlayer)
{
if(pPlayer->HasFinishedQuest(7761) && pPlayer->getLevel() >= 58 && pPlayer->InGroup() == true)
{
pPlayer->SafeTeleport(469, 0, -7672.939941f, -1107.307617f, 396.649994f, 0.616532f);
}
else if(pPlayer->getLevel() <= 57 || pPlayer->HasFinishedQuest(7761) == false)
{
pPlayer->BroadcastMessage("You need to be level 58 and have completed the quest : Blackhand's Command");
}
else if(pPlayer->HasFinishedQuest(7761) == true && pPlayer->getLevel() >= 58 && pPlayer->InGroup() == false)
{
pPlayer->BroadcastMessage("You need to be in a raid group to be able to enter this instance");
}
}
示例2: OnActivate
void OnActivate(PlayerPointer pPlayer)
{
if(pPlayer->getLevel() >= 70)
{
//pPlayer->SafeTeleport(530, 4080, 12803.374023f, -6907.089844f, 41.114765f, 2.251736f);
pPlayer->CastSpell(pPlayer, dbcSpell.LookupEntry(44870), true);
}
else if(pPlayer->getLevel() <= 69)
{
pPlayer->BroadcastMessage("You must be level 70 to use this!");
}
}