本文整理汇总了C#中Server.Items.Corpse类的典型用法代码示例。如果您正苦于以下问题:C# Corpse类的具体用法?C# Corpse怎么用?C# Corpse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Corpse类属于Server.Items命名空间,在下文中一共展示了Corpse类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddBodyParts
public override void AddBodyParts( BodyPartsContainer bpc, Corpse corpse )
{
base.AddBodyParts( bpc, corpse );
DragonHead head = new DragonHead();
head.Hue = 0;
bpc.DropItem( head );
}
示例2: OnCarve
public override void OnCarve(Mobile from, Corpse corpse, Item with)
{
if (corpse != null)
corpse.DropItem(new DragonBlood(8));
base.OnCarve(from, corpse, with);
}
示例3: GenerateFurs
public override int GenerateFurs(Corpse c)
{
Item i = new LightFur();
i.Amount = 2;
c.DropItem( i );
return 2;
}
示例4: AddBodyParts
public override void AddBodyParts( BodyPartsContainer bpc, Corpse corpse )
{
base.AddBodyParts( bpc, corpse );
bpc.DropItem( new PorkHock( 1 ) );
bpc.DropItem( new RawHam( 1 ) );
bpc.DropItem( new RawBaconSlab( 1 ) );
}
示例5: CorpseContent
public CorpseContent( Mobile beholder, Corpse beheld ) : base( 0x3C )
{
ArrayList items = beheld.EquipItems;
int count = items.Count;
EnsureCapacity( 5 + (count * 19) );
long pos = m_Stream.Position;
int written = 0;
m_Stream.Write( (ushort) 0 );
for ( int i = 0; i < count; ++i )
{
Item child = (Item)items[i];
if ( !child.Deleted && child.Parent == beheld && beholder.CanSee( child ) )
{
m_Stream.Write( (int) child.Serial );
m_Stream.Write( (ushort) child.ItemID );
m_Stream.Write( (byte) 0 ); // signed, itemID offset
m_Stream.Write( (ushort) child.Amount );
m_Stream.Write( (short) child.X );
m_Stream.Write( (short) child.Y );
m_Stream.Write( (int) beheld.Serial );
m_Stream.Write( (ushort) child.Hue );
++written;
}
}
m_Stream.Seek( pos, SeekOrigin.Begin );
m_Stream.Write( (ushort) written );
}
示例6: OnCarve
public override void OnCarve( Mobile from, Corpse corpse, Item with )
{
base.OnCarve( from, corpse, with );
corpse.DropItem( new Bloodmoss( Utility.RandomMinMax( 8, 16 ) ) );
from.SendMessage( "You cut some bloodmoss from between the troll's toes; it remains on the corpse." );
}
示例7: CanUseWithDeed
public static bool CanUseWithDeed(Mobile from, Corpse corpse)
{
if (corpse.IsCriminalAction(from))
{
from.SendMessage("You did not earn the right to use this creature in the deed.");
return false;
}
else return true;
}
示例8: AddBodyParts
public override void AddBodyParts( BodyPartsContainer bpc, Corpse corpse )
{
base.AddBodyParts( bpc, corpse );
Ribs ribs = new Ribs( 3 );
ribs.Hue = 2935;
ribs.Name = "flesh";
ribs.RotStage = RotStage.Rotten;
bpc.DropItem( ribs );
}
示例9: OnCarve
public override void OnCarve(Mobile from, Corpse corpse, Item with)
{
if (!corpse.Carved)
{
corpse.DropItem(new TitanTooth());
from.SendMessage("Vous arrachez une dent au titan");
}
base.OnCarve(from, corpse, with);
}
示例10: OnCarve
public override void OnCarve(Mobile from, Corpse corpse)
{
if (corpse.Carved == false)
{
base.OnCarve(from, corpse);
new Blood(Utility.RandomMinMax(4650, 4655)).MoveToWorld(corpse.Location, corpse.Map);
new GoblinEars().MoveToWorld(corpse.Location, corpse.Map);
corpse.Delete();
}
}
示例11: CheckCorpseType
public static bool CheckCorpseType(Mobile from, Corpse corpse, SmallBOD deed)
{
if (corpse != null && corpse.Owner != null)
{
Type corpseOwnerType = corpse.Owner.GetType();
if (corpseOwnerType != null && deed.Type != null && corpseOwnerType == deed.Type)
return true;
else
from.SendMessage("The creature is not in the request.");
}
return false;
}
示例12: CheckUseWithDeedTime
public static bool CheckUseWithDeedTime(Mobile from, Corpse corpse)
{
DateTime dtCannAdd = corpse.TimeOfDeath + TimeSpan.FromSeconds(30.0);
if (dtCannAdd > DateTime.Now)
{
TimeSpan ts = dtCannAdd - DateTime.Now;
if (ts < TimeSpan.Zero)
ts = TimeSpan.Zero;
from.SendMessage("This corpse cannot be added yet, try again in {0} seconds.", ts.Seconds);
return false;
}
else return true;
}
示例13: OnCarve
public override void OnCarve(Mobile from, Corpse corpse, Item with)
{
if (corpse.Carved)
base.OnCarve(from, corpse, with);
if (Utility.RandomDouble() < 0.15)
{
if (!from.CheckSkill(SkillName.Forensics, 30, 80))
from.SendMessage("Vous auriez gagné à mieux appréhender les cadavres");
else
{
corpse.DropItem(new ReptiledRelic());
from.SendMessage("Un pan de cuir se détache du ventre de la bête");
}
}
base.OnCarve(from, corpse, with);
}
示例14: OnCarve
public override void OnCarve(Mobile from, Corpse corpse, Item with)
{
if (corpse.Carved)
base.OnCarve(from, corpse, with);
if (Utility.RandomDouble() < 0.15)
{
if (!from.CheckSkill(SkillName.Forensics, 30, 80))
from.SendMessage("Vous auriez gagné à mieux appréhender les cadavres");
else
{
corpse.DropItem(new ElementalRelic());
from.SendMessage("L'élémental se crystallise");
}
}
base.OnCarve(from, corpse, with);
}
示例15: OnCarve
public override void OnCarve(Mobile from, Corpse corpse, Item with)
{
if (corpse.Carved)
base.OnCarve(from, corpse, with);
if (Utility.RandomDouble() < 0.15)
{
if (!from.CheckSkill(SkillName.Forensics, 30, 80))
from.SendMessage("Vous auriez gagné à mieux appréhender les cadavres");
else
{
corpse.DropItem(new UndeadRelic());
from.SendMessage("Vous arrachez un morceau de chair à la liche");
}
}
base.OnCarve(from, corpse, with);
}