本文整理汇总了C#中GameLiving.Emote方法的典型用法代码示例。如果您正苦于以下问题:C# GameLiving.Emote方法的具体用法?C# GameLiving.Emote怎么用?C# GameLiving.Emote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameLiving
的用法示例。
在下文中一共展示了GameLiving.Emote方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
/// <summary>
/// Start the berserk on a living
/// </summary>
public override void Start(GameLiving living)
{
base.Start(living);
m_startModel = living.Model;
if (living is GamePlayer)
{
(living as GamePlayer).Out.SendMessage(LanguageMgr.GetTranslation((living as GamePlayer).Client, "Effects.BerserkEffect.GoBerserkerFrenzy"), eChatType.CT_System, eChatLoc.CL_SystemWindow);
living.Emote(eEmote.MidgardFrenzy);
if ((living as GamePlayer).Race == (int)eRace.Dwarf)
{
living.Model = 2032;
}
else
{
living.Model = 582;
}
}
}
示例2: Start
/// <summary>
/// Start the stag on player
/// </summary>
/// <param name="living">The living object the effect is being started on</param>
public override void Start(GameLiving living)
{
base.Start(living);
m_originalModel = living.Model;
if (living is GamePlayer)
{
if ((living as GamePlayer).Race == (int)eRace.Lurikeen)
living.Model = 859;
else living.Model = 583;
}
double m_amountPercent = (m_level + 0.5 + Util.RandomDouble()) / 10; //+-5% random
if (living is GamePlayer)
m_amount = (int)((living as GamePlayer).CalculateMaxHealth(living.Level, living.GetModified(eProperty.Constitution)) * m_amountPercent);
else m_amount = (int)(living.MaxHealth * m_amountPercent);
living.BaseBuffBonusCategory[(int)eProperty.MaxHealth] += m_amount;
living.Health += (int)(living.GetModified(eProperty.MaxHealth) * m_amountPercent);
if (living.Health > living.MaxHealth) living.Health = living.MaxHealth;
living.Emote(eEmote.StagFrenzy);
if (living is GamePlayer)
{
(living as GamePlayer).Out.SendUpdatePlayer();
(living as GamePlayer).Out.SendMessage(LanguageMgr.GetTranslation((living as GamePlayer).Client, "Effects.StagEffect.HuntsSpiritChannel"), eChatType.CT_YouHit, eChatLoc.CL_SystemWindow);
}
}