• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ AddSpell函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中AddSpell函数的典型用法代码示例。如果您正苦于以下问题:C++ AddSpell函数的具体用法?C++ AddSpell怎么用?C++ AddSpell使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: AIUpdate

	void AIUpdate()
	{
		if ((HandOfTheDeceiver1 && HandOfTheDeceiver2 && HandOfTheDeceiver3 && HandOfTheDeceiver4) && (HandOfTheDeceiver1->isDead() || HandOfTheDeceiver2->isDead() || HandOfTheDeceiver3->isDead() || HandOfTheDeceiver4->isDead()) && (GetPhase() != 1))
		{
			RemoveAura(46410);
		}

		if ((HandOfTheDeceiver1 && HandOfTheDeceiver2 && HandOfTheDeceiver3 && HandOfTheDeceiver4) && (HandOfTheDeceiver1->isDead() && HandOfTheDeceiver2->isDead() && HandOfTheDeceiver3->isDead() && HandOfTheDeceiver4->isDead()) && (GetPhase() != 1) && (GetPhase() != 2))
		{
			SetPhase(1);
			_unit->SetUInt64Value(UNIT_FIELD_FLAGS, ( true ) ? 0 : UNIT_FLAG_NOT_ATTACKABLE_9);
			_unit->GetAIInterface()->SetAllowedToEnterCombat(true);
			RemoveAura(46367);
			ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1678.00f, 610.00f, 28.00f, 0.00f, false, 0, 0);
		}

		if (ShieldOrb1)
		{
			//ShieldOrb1->CastSpell(ShShadowbolt);
		}
		if (ShieldOrb2)
		{
			//ShieldOrb2->CastSpell(ShShadowbolt);
		}
		if (ShieldOrb3)
		{
			//ShieldOrb3->CastSpell(ShShadowbolt);
		}
		if (ShieldOrb4)
		{
			//ShieldOrb4->CastSpell(ShShadowbolt);
		}

		switch (dtimmer)
		{
		case 100:
			{
				dtimmer++;
				if (GetHealthPercent()<=85)
				{
					SetPhase(2);
					SetAllowMelee(false);
					SetCanMove(false);
					_unit->SendChatMessage(CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "Kil'jaeden begins to channel dark energy");
				}
			}break;
		case 120:
			{
				dtimmer++;
				if (GetPhase() == 2)
					CastSpellOnTarget(_unit, Target_RandomPlayer, Darkness_explosion, true);
					//CastSpellOnTarget(_unit, Target_RandomPlayer, Darkness, true); //this is the correct, but the dragon doesn't work.
				SetAllowMelee(false);
				SetCanMove(false);
			}break;
		case 128:
			{
				SetPhase(1);
				SetAllowMelee(false);
				SetCanMove(false);
				dtimmer = 1;
			}break;
		default:
			{
				SetCanMove(false);
				SetAllowMelee(false);
				dtimmer++;
			}break;
		}

		switch(GetPhase())
		{
		case 1:
			{
				if(GetHealthPercent()<=85)
				{
					AddPhaseSpell(1, AddSpell(SINISTER_REFLECTION, Target_RandomPlayer, 10, 1.5f, 4, 0, 35));
					AddPhaseSpell(1, AddSpell(SHADOW_SPIKE, Target_RandomDestination, 10, 2.0f, 6, 0, 35));
					AddPhaseSpell(1, AddSpell(FLAME_DART_EXPLOSION, Target_RandomPlayer, 10, 1.3f, 4, 0, 35));
					ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1678.00f, 610.00f, 28.00f, -1.72788f, false, 0, 0);
				}

				if(GetHealthPercent()<=55)
				{
					ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1684.00f, 651.00f, 28.00f, 0.00f, false, 0, 0);
				}

				if(GetHealthPercent()<=25)
				{
					//Armageddon
					ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1720.00f, 642.00f, 28.00f, 0.00f, false, 0, 0);
					AddPhaseSpell(1, AddSpell(SACRIFICE_OF_ANVEENA, Target_RandomPlayer, 50, 0.5f, 10, 0, 35));
				}
			}break;
		}
		ParentClass::AIUpdate();
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:97,代码来源:Raid_SunwellPlateau.cpp


示例2: Eramas_BrightblazeAI

		Eramas_BrightblazeAI(Creature* pCreature) : MoonScriptBossAI(pCreature)
		{
			AddSpell(ERAMAS_BRIGHTBLAZE_KNOCKDOWN, Target_Current, 25, 0, 5, 0, 5);
			AddSpell(ERAMAS_BRIGHTBLAZE_SNAP_KICK, Target_SecondMostHated, 40, 0, 2, 0, 5);
		}
开发者ID:Asandru,项目名称:Script-Land,代码行数:5,代码来源:Instance_MagistersTerrace.cpp


示例3: ZelfanAI

		ZelfanAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
		{
			AddSpell(ZELFAN_GOBLIN_DRAGON_GUN, Target_Current, 90, 0, 15, 0, 5);
			AddSpell(ZELFAN_HIGH_EXPLOSIV_SHEEP, Target_Self, 90, 2, 80);
			AddSpell(ZELFAN_ROCKET_LAUNCH, Target_RandomPlayer, 99, 3.5, 60, 0, 45);
		}
开发者ID:Asandru,项目名称:Script-Land,代码行数:6,代码来源:Instance_MagistersTerrace.cpp


示例4: GarrAI

	GarrAI(Creature* pCreature) : MoonScriptBossAI(pCreature)
	{
		AddSpell(GARR_ANTIMAGIC_PULSE, Target_Self, 15, 0, 0);
		AddSpell(GARR_MAGMA_SHACKLES, Target_Self, 15, 0, 0);
	}
开发者ID:Tulba,项目名称:wowtbc,代码行数:5,代码来源:Raid_MoltenCore.cpp


示例5: CoreRagerAI

    CoreRagerAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
    {
		Golemagg = NULL;

		AddSpell(CORERAGER_MANGLE, Target_Current, 20, 0, 20);
    }
开发者ID:Tulba,项目名称:wowtbc,代码行数:6,代码来源:Raid_MoltenCore.cpp


示例6: LorgusJettAI

    LorgusJettAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature) 
	{
		// Lightning Bolt
		AddSpell(12167, Target_Current, 20, 3, 0);
	}
开发者ID:miklasiak,项目名称:projekt,代码行数:5,代码来源:Instance_BlackfathomDeeps.cpp


示例7: FlamewakerAI

	FlamewakerAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(FLAMEWAKER_SUNDER_ARMOR, Target_Current, 8, 0, 0);
		AddSpell(FLAMEWAKER_FISTOFRAG, Target_Self, 8, 0, 0);
		AddSpell(FLAMEWAKER_STRIKE, Target_Current, 14, 0, 0);
	}
开发者ID:Tulba,项目名称:wowtbc,代码行数:6,代码来源:Raid_MoltenCore.cpp


示例8: SunbladeImpAI

	SunbladeImpAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(IMP_FIREBOLT, Target_Current, 100, 2, (int32)2.5, 0, 30);
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:4,代码来源:Instance_MagistersTerrace.cpp


示例9: SunbladeMageGuardAI

	SunbladeMageGuardAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(MAGE_GUARD_GLAVE_THROW, Target_Current, 60, 0, 25, 0, 5);
		AddSpell(MAGE_GUARD_MAGIC_DAMPENING_FIELD, Target_RandomPlayer, 20, 1, 35, 0, 20);
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:5,代码来源:Instance_MagistersTerrace.cpp


示例10: VoidWalkerAI

	VoidWalkerAI(CreaturePointer pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(7154, Target_WoundedFriendly, 5, 0, 7);
	}
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:4,代码来源:Instance_ShadowfangKeep.cpp


示例11: SunbladeBloodKnightAI

	SunbladeBloodKnightAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(BLOOD_KNIGHT_JUDGEMENT_OF_WRATH, Target_Current, 20, 0, 30, 0, 5);
		AddSpell(BLOOD_KNIGHT_SEAL_OF_WRATH, Target_Self, 99, 0, 30, 0, 0);
		AddSpell(BLOOD_KNIGHT_HOLY_LIGHT, Target_Self, 10, 2, 30, 0, 40);		
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:6,代码来源:Instance_MagistersTerrace.cpp


示例12: FenrusAI

	FenrusAI(CreaturePointer pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(7125, Target_Current, 12, 1.5f, 60);
	}
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:4,代码来源:Instance_ShadowfangKeep.cpp


示例13: ShadowswordCommanderAI

	ShadowswordCommanderAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(SHADOWSWORD_COMMANDER_SHIELD_SLAM, Target_Current, 10, 0, 10);
		AddSpell(SHADOWSWORD_COMMANDER_BATTLESHOUT, Target_Self, 20, 0, 25);
	}
开发者ID:Desch,项目名称:Edge-of-Chaos,代码行数:5,代码来源:Raid_SunwellPlateau.cpp


示例14: SunbladeProtectorAI

	SunbladeProtectorAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(SUNBLADE_PROTECTOR_FEL_LIGHTNING, Target_RandomPlayer, 100, 0, 15, 0, 60);
	}
开发者ID:Desch,项目名称:Edge-of-Chaos,代码行数:4,代码来源:Raid_SunwellPlateau.cpp


示例15: GhamooraAI

    GhamooraAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature) 
	{
		// Trample
		AddSpell(5568, Target_Self, 12, 0, 0);
	}
开发者ID:miklasiak,项目名称:projekt,代码行数:5,代码来源:Instance_BlackfathomDeeps.cpp


示例16: SunbladeMagisterAI

	SunbladeMagisterAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(MAGISTER_FROSTBOLT, Target_Current, 65, 2, 4, 0, 30);
		AddSpell(MAGISTER_ARCANE_NOVA, Target_Self, 12, 1.5, 40, 0, 0);
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:5,代码来源:Instance_MagistersTerrace.cpp


示例17: GelihastAI

    GelihastAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature) 
	{
		// Net
		AddSpell(6533, Target_RandomPlayer, 10, 0, 0);
	}
开发者ID:miklasiak,项目名称:projekt,代码行数:5,代码来源:Instance_BlackfathomDeeps.cpp


示例18: thekaAI

		thekaAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
		{
			AddSpell(8600, Target_Current, 20, 4.5f, -1);	//Fevered Plague
			morph = false;
		}
开发者ID:Refuge89,项目名称:arcscripts2,代码行数:5,代码来源:Instance_ZulFarrak.cpp


示例19: MordreshFireEyeAI

 MordreshFireEyeAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
 {
     //spells
     AddSpell(SP_MORDRESH_FIRE_NOVA, Target_Self, 10, 2, 0);
     AddSpell(SP_MORDRESH_FIREBALL, Target_Current, 10, 3, 0, 0, 40);
 }
开发者ID:master312,项目名称:AscEmu,代码行数:6,代码来源:Instance_RazorfenDowns.cpp


示例20: ChaoticRiftAI

		ChaoticRiftAI(Creature* pCreature) : MoonScriptBossAI(pCreature)
		{
			_unit->GetAIInterface()->SetAllowedToEnterCombat(false);
			AddSpell(SUMMON_MANA_WRAITH, Target_Self, 30, 0, dbcSpell.LookupEntryForced(SUMMON_MANA_WRAITH)->RecoveryTime);
			AddSpell(CHAOTIC_ENERGY_BURST, Target_RandomPlayer, 30, 0, dbcSpell.LookupEntryForced(CHAOTIC_ENERGY_BURST)->RecoveryTime);
		};
开发者ID:Refuge89,项目名称:Edge-of-Chaos,代码行数:6,代码来源:Instance_Nexus.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ AddSpellScripts函数代码示例发布时间:2022-05-30
下一篇:
C++ AddSolidFlags函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap