本文整理汇总了C#中Mobile.Emote方法的典型用法代码示例。如果您正苦于以下问题:C# Mobile.Emote方法的具体用法?C# Mobile.Emote怎么用?C# Mobile.Emote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mobile
的用法示例。
在下文中一共展示了Mobile.Emote方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Gifle_Callback
/// <summary>
/// Execution de la gifle
/// </summary>
public static void Gifle_Callback(Mobile mJoueur, object objCible)
{
if (objCible is Mobile)
{
Mobile mCible = objCible as Mobile;
// si le joueur s'est ciblé lui même
if (mJoueur == mCible)
mJoueur.Emote("*{0} se gifle*", mJoueur.Name);
// si il reussi a donner la gifle
else if (Utility.Random(10) > 3) // Scriptiz : pas besoin de stocker le booléen
{
mJoueur.Emote("*{0} gifle {1}*", mJoueur.Name, mCible.Name);
mCible.Emote("*{0} se prend une gifle de {1}*", mCible.Name, mJoueur.Name);
}
else // quel looseur il s'est manqué
{
mJoueur.Emote("*{0} gifle {1}, mais ratte*", mJoueur.Name, mCible.Name );
mCible.Emote("*{0} esquive une gifle de {1}*", mCible.Name, mJoueur.Name);
}
// animation
mCible.Animate(20, 1, 1, true, false, 2);
mJoueur.Animate(33, 1, 1, true, false, 2);
// Scriptiz : son
mCible.PlaySound(0x135);
}
}
示例2: OnDoubleClick
public override void OnDoubleClick(Mobile from)
{
if (Parent != from)
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage("When you touch, it vanishes without trace...");
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume();
if (from.AccessLevel < AccessLevel.GameMaster)
return;
{
if (!IsChildOf(from.Backpack))
{
from.Say("That must be in your pack for you to use it");
return;
}
if (!from.Hidden == true)
{
from.Emote("*" + from.Name + " goes to ethereal world*");
from.BoltEffect(0);
from.Hidden = true;
}
else
{
from.Hidden = false;
from.Emote("*" + from.Name + " strikes the earth*");
from.BoltEffect(0);
}
}
}
示例3: OnTarget
public virtual void OnTarget(Mobile from, object obj)
{
Mobile mob;
if (obj is Corpse)
{
Corpse corpse = obj as Corpse;
mob = corpse.Owner;
}
else
{
mob = obj as Mobile;
}
if (mob == null)
{
from.SendMessage("This is not a living being!");
return;
}
if (mob is BaseCreature && mob.IsDeadBondedPet)
{
BaseCreature bc = mob as BaseCreature;
bc.PlaySound(0x214);
bc.FixedEffect(0x376A, 10, 16);
bc.ResurrectPet();
this.Consume();
from.Emote("*recites a scroll of resurrection*");
from.SendMessage("The creature was brought back to life.");
}
if (mob is PlayerMobile)
{
if (mob.Alive)
{
from.SendMessage("This creature is not dead!");
return;
}
else
{
mob.PlaySound(0x214);
mob.FixedEffect(0x376A, 10, 16);
mob.Resurrect();
}
this.Consume();
from.Emote("*recites a scroll of resurrection*");
from.SendMessage("This person was brought back to life.");
}
}
示例4: CheckSpellEvasion
public static bool CheckSpellEvasion( Mobile defender )
{
BaseWeapon weap = defender.FindItemOnLayer( Layer.OneHanded ) as BaseWeapon;
if ( weap == null )
weap = defender.FindItemOnLayer( Layer.TwoHanded ) as BaseWeapon;
if ( Core.ML ) {
if ( defender.Spell != null && defender.Spell.IsCasting ) {
return false;
}
if ( weap != null ) {
if ( defender.Skills[weap.Skill].Base < 50 ) {
return false;
}
} else if ( !( defender.FindItemOnLayer( Layer.TwoHanded ) is BaseShield ) ) {
return false;
}
}
if ( IsEvading( defender ) && BaseWeapon.CheckParry( defender ) ) {
defender.Emote( "*evades*" ); // Yes. Eew. Blame OSI.
defender.FixedEffect( 0x37B9, 10, 16 );
return true;
}
return false;
}
示例5: CheckSpellEvasion
public static bool CheckSpellEvasion( Mobile defender )
{
if( IsEvading( defender ) && VerifyCast( defender, false ) && BaseWeapon.CheckParry( defender ) ) //As per OSI, uses the exact same parry code
{
defender.Emote( "*evades*" ); //Yes. Eew. Blame OSI.
defender.FixedEffect( 0x37B9, 10, 16 );
return true;
}
return false;
}
示例6: OnDoubleClick
public override void OnDoubleClick( Mobile from )
{
if ( Parent != from )
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage( "When you touch, it vanishes without trace..." );
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume() ;
if (from.AccessLevel < AccessLevel.GameMaster)
return ;
{
if ( !IsChildOf( from.Backpack ) )
{
from.Say ( "That must be in your pack for you to use it" );
return;
}
if ( !from.Hidden == true )
{
from.Emote( "*" + from.Name + "* Disapears in a rage of magical fury *" );
from.FixedParticles(0x376A, 1, 31, 9961, 1160, 0, EffectLayer.Waist );
from.FixedParticles( 0x37C4, 1, 31, 9502, 43, 2, EffectLayer.Waist );
from.PlaySound( 0x20F );
from.PlaySound( 0x44A );
from.Hidden = true;
}
else
{
from.Hidden=false;
from.Emote( "*" + from.Name + "* Apears in a rage of magical fury *");
from.FixedParticles(0x376A, 1, 31, 9961, 1160, 0, EffectLayer.Waist );
from.FixedParticles( 0x37C4, 1, 31, 9502, 43, 2, EffectLayer.Waist );
from.PlaySound( 0x20F );
from.PlaySound(0x44A );
}
}
}
示例7: OnDoubleClick
public override void OnDoubleClick( Mobile from )
{
if ( Parent != from )
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage( "When you touch, it vanishes without trace..." );
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume() ;
if (from.AccessLevel < AccessLevel.GameMaster)
return ;
{
if ( !IsChildOf( from.Backpack ) )
{
from.Say ( "That must be in your pack for you to use it" );
return;
}
if ( !from.Hidden == true )
{
from.Emote( "*" + from.Name + "* Withers away to nothing But the wind around you *" );
from.FixedParticles( 0x37CC, 1, 40, 97, 3, 9917, EffectLayer.Waist );
from.FixedParticles( 0x374A, 1, 15, 9502, 97, 3, (EffectLayer)255 );
from.PlaySound( 0x1FB );
from.Hidden = true;
}
else
{
from.Hidden=false;
from.Emote( "*" + from.Name + "* Steps out From A Ice cold wirlwind *");
from.FixedParticles( 0x37CC, 1, 40, 97, 3, 9917, EffectLayer.Waist );
from.FixedParticles( 0x374A, 1, 15, 9502, 97, 3, (EffectLayer)255 );
from.PlaySound( 0x10B );
}
}
}
示例8: OnDoubleClick
public override void OnDoubleClick(Mobile from)
{
if (Parent != from)
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage("When you touch, it vanishes without trace...");
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume();
if (from.AccessLevel < AccessLevel.GameMaster)
return;
{
if (!IsChildOf(from.Backpack))
{
from.Say("That must be in your pack for you to use it");
return;
}
if (!from.Hidden == true)
{
from.Emote("*" + from.Name + " expands into a mist a floats away*");
from.FixedParticles(0x375A, 1, 17, 9919, 33, 7, EffectLayer.Waist);
from.FixedParticles(0x3728, 1, 13, 9502, 33, 7, (EffectLayer)255);
from.PlaySound(0x175);
from.Hidden = true;
}
else
{
from.Hidden = false;
from.Emote("*" + from.Name + " pulls together in front of you from the air*");
from.FixedParticles(0x375A, 1, 17, 9919, 33, 7, EffectLayer.Waist);
from.FixedParticles(0x3728, 1, 13, 9502, 33, 7, (EffectLayer)255);
from.PlaySound(0x175);
}
}
}
示例9: OnDoubleClick
public override void OnDoubleClick(Mobile from)
{
if (Parent != from)
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage("When you touch, it vanishes without trace...");
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume();
if (from.AccessLevel < AccessLevel.GameMaster)
return;
{
if (!IsChildOf(from.Backpack))
{
from.Say("That must be in your pack for you to use it");
return;
}
if (!from.Hidden == true)
{
from.Emote("*" + from.Name + " evaporates into a watery mist*");
from.FixedParticles(0x3709, 1, 30, 9965, 5, 7, EffectLayer.Waist);
from.FixedParticles(0x376A, 1, 30, 9502, 5, 3, EffectLayer.Waist);
from.PlaySound(0x244);
from.Hidden = true;
}
else
{
from.Hidden = false;
from.Emote("*" + from.Name + " retakes shape from the magical watery mist*");
from.FixedParticles(0x3709, 1, 30, 9965, 5, 7, EffectLayer.Waist);
from.FixedParticles(0x376A, 1, 30, 9502, 5, 3, EffectLayer.Waist);
from.PlaySound(0x244);
}
}
}
示例10: GrabLoot
private static void GrabLoot(Mobile from, Container cont)
{
if (!from.Alive || cont == null)
return;
if (cont is Corpse && from == ((Corpse)cont).Owner)
{
Corpse corpse = (Corpse)cont;
if (corpse.Killer == null || corpse.Killer is BaseCreature)
corpse.Open(from, true);
else
corpse.Open(from, false);
}
else
{
bool fullPack = false;
List<Item> items = new List<Item>(cont.Items);
LootOptions options = LootGrab.GetOptions(from);
for (int i = 0; !fullPack && i < items.Count; i++)
{
Item item = items[i];
if (options.IsLootable(item))
{
Container dropCont = options.GetPlacementContainer(LootGrab.ParseType(item));
if (dropCont == null || dropCont.Deleted || !dropCont.IsChildOf(from.Backpack))
dropCont = from.Backpack;
if (!item.DropToItem(from, dropCont, new Point3D(-1, -1, 0)))
fullPack = true;
if (options.IsToken(item))
from.Emote("*loots a few shiny tokens*");
}
}
if (fullPack)
from.SendMessage("You looted as much as you could. The rest remain {0}.", (cont is Corpse ? "on the corpse" : "in the container"));
else
from.SendMessage("You loot all you can from the {0}.", (cont is Corpse ? "corpse" : "container"));
from.Animate(32, 5, 1, true, false, 0);
from.PlaySound(79);
from.RevealingAction();
}
UseDelaySystem.AddContext(from, DelayContextType.LootCommand, TimeSpan.FromSeconds(3.0)); //edit timer here, dont forget reference in usedelaysystem.cs!
}
示例11: OnDoubleClick
public override void OnDoubleClick(Mobile from)
{
if (Parent != from)
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage("When you touch, it vanishes without trace...");
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume();
if (from.AccessLevel < AccessLevel.GameMaster)
return;
{
if (!IsChildOf(from.Backpack))
{
from.Say("That must be in your pack for you to use it");
return;
}
if (!from.Hidden == true)
{
from.Emote("*" + from.Name + " burned itself*");
from.FixedParticles(0x3709, 10, 30, 5052, EffectLayer.LeftFoot);
from.PlaySound(0x225);
from.Hidden = true;
}
else
{
from.Hidden = false;
from.Emote("*" + from.Name + " showed up among flames*");
from.FixedParticles(0x3709, 10, 30, 5052, EffectLayer.LeftFoot);
from.PlaySound(0x225);
}
}
}
示例12: OnDoubleClick
public override void OnDoubleClick(Mobile from)
{
if (Parent != from)
if (from.AccessLevel < AccessLevel.GameMaster)
from.SendMessage("When you touch, it vanishes without trace...");
if (from.AccessLevel < AccessLevel.GameMaster)
this.Consume();
if (from.AccessLevel < AccessLevel.GameMaster)
return;
{
if (!IsChildOf(from.Backpack))
{
from.Say("That must be in your pack for you to use it");
return;
}
if (!from.Hidden == true)
{
from.Emote("*" + from.Name + " explodes out*");
from.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
from.PlaySound(0x307);
from.Hidden = true;
}
else
{
from.Hidden = false;
from.Emote("*" + from.Name + " explodes in*");
from.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
from.PlaySound(0x307);
}
}
}
示例13: FinalEffect
public static void FinalEffect( Mobile caster, Mobile target, int hold )
{
target.PlaySound( 0x204 );
target.FixedParticles( 0x37C4, 1, 8, 9916, 39, 3, EffectLayer.Head );
target.FixedParticles( 0x37C4, 1, 8, 9502, 39, 4, EffectLayer.Head );
if( caster != null )
target.Emote( "*was paralyzed by " + caster.Name + "*" );
if (((IKhaerosMobile)target).StunnedTimer != null)
((IKhaerosMobile)target).StunnedTimer.Stop();
((IKhaerosMobile)target).StunnedTimer = new HoldPersonTimer(target, hold);
((IKhaerosMobile)target).StunnedTimer.Start();
}
示例14: OnDoubleClick
public override void OnDoubleClick( Mobile from )
{
if ( !from.InRange( GetWorldLocation(), 2 ) )
from.SendLocalizedMessage( 500446 );
else if ( Apply( from ) )
{
from.FixedEffect( 0x3728, 10, 15 );
from.PlaySound( 1002 );
from.SendMessage(1276, "You feel AMAZING!");
new PowerTimer( from, this ).Start();
from.Emote( String.Format( "* {0} FLARES IN POWER *" , from.Name ) );
Delete();
}
}
示例15: OnChew
public virtual void OnChew(Mobile from)
{
if (m_Chewable == Chewable.Qat)
ChewTimer.BeginChew(from as PlayerMobile, 15);
from.Emote("*chews*");
int chewSound = Utility.RandomMinMax(58, 60);
from.PlaySound(chewSound);
from.SendMessage("You feel a narcotic rush.");
}