本文整理汇总了C#中WCell.RealmServer.Entities.NPC.MoveToPointsThenExecute方法的典型用法代码示例。如果您正苦于以下问题:C# NPC.MoveToPointsThenExecute方法的具体用法?C# NPC.MoveToPointsThenExecute怎么用?C# NPC.MoveToPointsThenExecute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WCell.RealmServer.Entities.NPC
的用法示例。
在下文中一共展示了NPC.MoveToPointsThenExecute方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EyeOfAcherusActivated
private static void EyeOfAcherusActivated(NPC npc)
{
//npc.SpellCast.TriggerSelf((SpellId)51860);
npc.SpellCast.TriggerSelf(SpellId.EyeOfAcherusVisual);
npc.Phase = 2;
var chr = npc.Map.GetObject(npc.Creator) as Character;
if (chr != null)
{
//TODO localise!
ChatMgr.SendRaidBossWhisper(npc, chr, "The Eye of Acherus launches towards its destination.");
npc.SpellCast.Trigger(SpellId.EyeOfAcherusFlightBoost, npc, chr);
npc.Flying++;
//npc.IncMechanicCount(SpellMechanic.Rooted);
//Move to destination
var points = new List<Vector3>(3)
{
new Vector3(1758.007f, -5876.785f, 166.8667f),
new Vector3(1957.396f, -5844.105f, 273.8667f),
new Vector3(2341.571f, -5672.797f, 538.3942f),
};
npc.MoveToPointsThenExecute(points, unit =>
{
unit.SpellCast.TriggerSelf(
SpellId.EyeOfAcherusFlight);
unit.Auras.Remove(
SpellId.EyeOfAcherusFlightBoost);
ChatMgr.SendRaidBossWhisper(unit, chr,
"The Eye of Acherus is in your control.");
//unit.DecMechanicCount(SpellMechanic.Rooted);
});
}
}