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


C++ PlayerPointer::HasFinishedQuest方法代码示例

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


在下文中一共展示了PlayerPointer::HasFinishedQuest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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");
		}
	}
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:15,代码来源:GameObjects.cpp

示例2: GossipHello

	void GossipHello(ObjectPointer pObject, PlayerPointer plr, bool AutoSend)
	{
		GossipMenu *Menu;
		uint32 entry = pObject->GetEntry();
		const char* text = "";
		uint32 TextId = 0;

		if(entry == 17900)
		{
			text = "Grant me your mark, wise ancient.";
			TextId = 9176;
		} 
		else if(entry == 17901)
		{
			text = "Grant me your mark, mighty ancient.";
			TextId = 9177;
		}
		
		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), TextId, plr);

		if(plr->HasFinishedQuest(9785) || plr->GetQuestLogForEntry(9785))
			Menu->AddItem(0, text, 1);

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

示例3: GossipHello

	void GossipHello(ObjectPointer pObject, PlayerPointer plr, bool AutoSend)
	{
		GossipMenu *Menu;
		if(plr->GetQuestLogForEntry(10279) || plr->HasFinishedQuest(10279))
		{
			objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 9978, plr);
			Menu->AddItem( 0, "Please take me to the master's lair", 1);
			Menu->SendTo(plr);
		}
	}
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:10,代码来源:Tanaris.cpp


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