本文整理汇总了C#中BaseCreature.FixedParticles方法的典型用法代码示例。如果您正苦于以下问题:C# BaseCreature.FixedParticles方法的具体用法?C# BaseCreature.FixedParticles怎么用?C# BaseCreature.FixedParticles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseCreature
的用法示例。
在下文中一共展示了BaseCreature.FixedParticles方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckLevel
public static void CheckLevel( Mobile defender, BaseCreature attacker, int count )
{
bool nolevel = false;
Type typ = attacker.GetType();
string nam = attacker.Name;
foreach ( string check in FSATS.NoLevelCreatures )
{
if ( check == nam )
nolevel = true;
}
if ( nolevel != false )
return;
int expgainmin, expgainmax;
if ( attacker is BaseBioCreature || attacker is BioCreature || attacker is BioMount )
{
}
else if ( defender is BaseCreature )
{
if ( attacker.Controlled == true && attacker.ControlMaster != null && attacker.Summoned == false )
{
BaseCreature bc = (BaseCreature)defender;
expgainmin = bc.HitsMax * 25;
expgainmax = bc.HitsMax * 50;
int xpgain = Utility.RandomMinMax( expgainmin, expgainmax );
if ( count > 1 )
xpgain = xpgain / count;
if ( attacker.Level <= attacker.MaxLevel - 1 )
{
attacker.Exp += xpgain;
attacker.ControlMaster.SendMessage( "Your pet has gained {0} experience points.", xpgain );
}
int nextLevel = attacker.NextLevel * attacker.Level;
if ( attacker.Exp >= nextLevel && attacker.Level <= attacker.MaxLevel - 1 )
{
DoLevelBonus( attacker );
Mobile cm = attacker.ControlMaster;
attacker.Level += 1;
attacker.Exp = 0;
attacker.FixedParticles( 0x373A, 10, 15, 5012, EffectLayer.Waist );
attacker.PlaySound( 503 );
cm.SendMessage( 38, "Your pets level has increased to {0}.", attacker.Level );
int gain = Utility.RandomMinMax( 10, 50 );
attacker.AbilityPoints += gain;
if ( attacker.ControlMaster != null )
{
attacker.ControlMaster.SendMessage( 38, "Your pet {0} has gained some ability points.", gain );
}
if ( attacker.Level == 9 )
{
attacker.AllowMating = true;
cm.SendMessage( 1161, "Your pet is now at the level to mate." );
}
if ( attacker.Evolves == true )
{
if ( attacker.UsesForm1 == true && attacker.F0 == true )
{
DoEvoCheck( attacker );
attacker.BodyValue = attacker.Form1;
attacker.BaseSoundID = attacker.Sound1;
attacker.F1 = true;
attacker.F2 = false;
attacker.F3 = false;
attacker.F4 = false;
attacker.F5 = false;
attacker.F6 = false;
attacker.F7 = false;
attacker.F8 = false;
attacker.F9 = false;
attacker.UsesForm1 = false;
cm.SendMessage( 64, "Your pet has evoloved." );
}
else if ( attacker.UsesForm2 == true && attacker.F1 == true )
{
DoEvoCheck( attacker );
attacker.BodyValue = attacker.Form2;
attacker.BaseSoundID = attacker.Sound2;
attacker.F1 = false;
attacker.F2 = true;
attacker.F3 = false;
attacker.F4 = false;
attacker.F5 = false;
attacker.F6 = false;
attacker.F7 = false;
//.........这里部分代码省略.........