本文整理汇总了C#中Server.Items.Backpack类的典型用法代码示例。如果您正苦于以下问题:C# Backpack类的具体用法?C# Backpack怎么用?C# Backpack使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Backpack类属于Server.Items命名空间,在下文中一共展示了Backpack类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: setup
private void setup()
{
Body = 999;
Name = "BaseBoss";
SetStr(100, 100);
SetDex(100, 100);
SetInt(100, 100);
SetHits(100);
SetStam(100, 100);
SetDamage(40, 50);
SetSkill(SkillName.Anatomy, 100.0);
SetSkill(SkillName.MagicResist, 100.0);
SetSkill(SkillName.Tactics, 100.0);
SetSkill(SkillName.DetectHidden, 200.0);
Fame = 1000;
Karma = -1000;
VirtualArmor = 130;
Backpack pack = new Backpack();
AddItem(pack);
}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:27,代码来源:BaseBoss.cs
示例2: IchabodCrane
public IchabodCrane()
: base(AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4)
{
InitStats(31, 41, 51);
Name = "Ichabod Crane";
Body = 0x190;
Hue = 1002;
AddItem(new Server.Items.FancyShirt());
AddItem(new Server.Items.LongPants());
AddItem(new Server.Items.Boots());
int hairHue = 1865;
Utility.AssignRandomHair(this);
Blessed = true;
Container pack = new Backpack();
pack.DropItem(new Gold(250, 300));
pack.Movable = false;
AddItem(pack);
}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:30,代码来源:IchabodCrane.cs
示例3: Sculptor
public Sculptor()
: base(AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4)
{
InitStats( 31, 41, 51 );
SpeechHue = Utility.RandomDyedHue();
Title = "the sculptor";
Hue = Utility.RandomSkinHue();
if( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );
AddItem( Skirt( Utility.RandomAllColors() ) );
}
else
{
this.Body = 0x190;
this.Name = NameList.RandomName( "male" );
AddItem( PlainPants( Utility.RandomAllColors() ) );
}
AddItem(PlainShirt(Utility.RandomAllColors()));
AddItem(new Shoes(Utility.RandomNeutralHue()));
AddItem( new HalfApron( 2301 ) );
Utility.AssignRandomHair( this );
Container pack = new Backpack();
pack.Movable = false;
AddItem( pack );
}
开发者ID:Godkong,项目名称:RunUO,代码行数:34,代码来源:Sculptor.cs
示例4: BushidoMaster2
public BushidoMaster2()
: base(AIType.AI_None, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Lee";
Title = ", Le Combattant";
Direction = Direction.South;
Body = 400;
Hue = 33825;
Blessed = true;
InitStats(25, 25, 25);
SetHits(5);
SpeechHue = 802;
EmoteHue = 802;
Backpack bp = new Backpack();
bp.Movable = false;
AddItem(bp);
AddItem(new LeatherDo());
AddItem(new LeatherHaidate());
AddItem(new LeatherHiroSode());
AddItem(new LeatherJingasa());
Boots b = new Boots();
b.Hue = 1527;
AddItem(b);
this.HairItemID = 8253;
this.HairHue = 1129;
QuestPlayer = null;
}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:31,代码来源:BushidoMaster2.cs
示例5: Sculptor
public Sculptor()
: base(AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4)
{
this.InitStats(31, 41, 51);
this.SpeechHue = Utility.RandomDyedHue();
this.Title = "the sculptor";
this.Hue = Utility.RandomSkinHue();
if (this.Female = Utility.RandomBool())
{
this.Body = 0x191;
this.Name = NameList.RandomName("female");
this.AddItem(new Kilt(Utility.RandomNeutralHue()));
}
else
{
this.Body = 0x190;
this.Name = NameList.RandomName("male");
this.AddItem(new LongPants(Utility.RandomNeutralHue()));
}
this.AddItem(new Doublet(Utility.RandomNeutralHue()));
this.AddItem(new HalfApron());
Utility.AssignRandomHair(this);
Container pack = new Backpack();
pack.DropItem(new Gold(250, 300));
pack.Movable = false;
this.AddItem(pack);
}
开发者ID:Crome696,项目名称:ServUO,代码行数:35,代码来源:Sculptor.cs
示例6: ArmyBase
public ArmyBase(int Team, AIType iAI, FightMode iFightMode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed)
: base(iAI, iFightMode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed)
{
this.Body = 400 + Utility.Random(2);
this.Hue = Utility.RandomSkinHue();
this.Team = Team;
this.Skills[SkillName.DetectHidden].Base = 100;
this.Skills[SkillName.MagicResist].Base = 120;
int iHue = 20 + Team * 40;
int jHue = 25 + Team * 40;
Item hair = new Item( Utility.RandomList( 0x203C, 0x203B, 0x203C, 0x203D ) );
hair.Hue = iHue;
hair.Layer = Layer.Hair;
hair.Movable = false;
AddItem( hair );
LeatherGloves glv = new LeatherGloves();
glv.Hue = iHue;
glv.LootType = LootType.Newbied;
AddItem(glv);
Container pack = new Backpack();
pack.Movable = false;
AddItem( pack );
m_Timer = new AutokillTimer(this);
m_Timer.Start();
}
开发者ID:nick12344356,项目名称:The-Basement,代码行数:33,代码来源:ArmyBase.cs
示例7: Marrow
[Constructable]public Marrow(){
InitStats( 100, 100, 100 );
Name = "Marrow";
Title = "the chemist";
Body = 0x191;
Fame = 2000;
Karma = 3000;
Hue = Utility.RandomSkinHue();
Utility.AssignRandomHair( this );
AddItem( new Server.Items.Shirt( Utility.RandomRedHue() ) );
AddItem( new Server.Items.Skirt( Utility.RandomRedHue() ) );
AddItem( new Server.Items.Boots( Utility.RandomNeutralHue() ) );
Blessed = true;
CantWalk = true;
Container pack = new Backpack();
pack.DropItem( new Gold( 150, 200 ) );
pack.Movable = false;
AddItem( pack );
}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:29,代码来源:MarrowQuest.cs
示例8: DecorBox
public DecorBox()
{
Weight = 1.0;
Hue = 1150;
Item item = null;
Name = "Defiance Decoration Member Box";
PlaceItemIn( 10, 53, new FishTankPart1() );
PlaceItemIn( 25, 53, new FishTankPart2() );
PlaceItemIn( 50, 53, new AncientBedPart1() );
PlaceItemIn( 85, 53, new AncientBedPart2() );
PlaceItemIn( 90, 53, new AncientFruitBowl() );
PlaceItemIn( 110, 53, new StoneSculpture() );
BaseContainer cont;
PlaceItemIn( 58, 57, (cont = new Backpack()) );
cont.Hue = 2213;
cont.Name = "a golden backpack";
PlaceItemIn(130, 83, (item = new MembershipTicket()));
item.Hue = 2213;
((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(180);
}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:25,代码来源:DecorBox.cs
示例9: AddBackpack
//private static void AddBankbox2( Mobile m )
//{
// BankBox2 box = m.Bankbox2;
//
// if ( box == null )
// {
// box = new Bankbox2();
// box.Movable = false;
//
//
// }
//
// }
private static void AddBackpack( Mobile m )
{
Container pack = m.Backpack;
if ( pack == null )
{
pack = new Backpack();
pack.Movable = false;
m.AddItem( pack );
}
Container cont;
cont = new WoodenBox();
cont.ItemID = 0xE7D;
cont.Hue = 0x489;
PlaceItemIn( cont, 16, 51, new NLeatherGorget() );
PlaceItemIn( cont, 28, 51, new NLeatherArms() );
PlaceItemIn( cont, 40, 51, new NLeatherGloves() );
PlaceItemIn( cont, 52, 51, new NLeatherLegs() );
PlaceItemIn( cont, 64, 115, new TokenLedger() );
PlaceItemIn( cont, 16, 115, new Candle() );
PlaceItemIn( pack, 18, 169, cont );
PlaceItemIn( pack, 16, 51, new SkillBall() );
PlaceItemIn( pack, 56, 51, new SkillBall() );
PlaceItemIn( pack, 66, 51, new SkillBall() );
PlaceItemIn( pack, 80, 51, new StatBall() );
PlaceItemIn( pack, 70, 169, new RuleBook1() );
PlaceItemIn( pack, 164, 169, new BankCheck( 5000 ) );
PlaceItemIn( pack, 164, 51, new CommandBook() );
}
开发者ID:FreeReign,项目名称:realmofdarkness,代码行数:45,代码来源:CharacterCreation.cs
示例10: InitOutfit
public override void InitOutfit( Faction faction )
{
new Horse().Rider = this;
AddItem( new StuddedChest() );
AddItem( new StuddedArms() );
AddItem( new StuddedGloves() );
AddItem( new StuddedGorget() );
AddItem( new StuddedLegs() );
AddItem( new Boots() );
AddItem( new SkullCap() );
Bow bow = new Bow();
bow.Movable = false;
bow.Crafter = this;
bow.Quality = WeaponQuality.Exceptional;
AddItem( bow );
Container pack = new Backpack();
pack.Movable = false;
Arrow arrows = new Arrow( 250 );
arrows.LootType = LootType.Newbied;
pack.DropItem( arrows );
pack.DropItem( new Gold( 10, 25 ) );
AddItem( pack );
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:33,代码来源:ArcherGuard.cs
示例11: HordeMinionFamiliar
public HordeMinionFamiliar()
{
Name = "a horde minion";
Body = 776;
BaseSoundID = 0x39D;
SetStr( 100 );
SetDex( 110 );
SetInt( 100 );
SetHits( 70 );
SetStam( 110 );
SetMana( 0 );
SetDamage( 5, 10 );
SetSkill( SkillName.Wrestling, 70.1, 75.0 );
SetSkill( SkillName.Tactics, 50.0 );
ControlSlots = 1;
Container pack = Backpack;
if ( pack != null )
pack.Delete();
pack = new Backpack();
pack.Movable = false;
pack.Weight = 13.0;
AddItem( pack );
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:32,代码来源:HordeMinion.cs
示例12: AddBackpack
private static void AddBackpack( Mobile m )
{
Container pack = m.Backpack;
if ( pack == null )
{
pack = new Backpack();
pack.Movable = false;
m.AddItem( pack );
}
PackItem( new RedBook( "a book", m.Name, 20, true ) );
PackItem( new Gold( 100 ) ); // Starting gold can be customized here
PackItem( new Dagger() );
PackItem( new Candle() );
PackItem( new BankCheck (900) );
PackItem( new Runebook(10) );
PackItem( new TrashPack() );
PackItem( new SkillBall() );
PackItem( new CorpseWand() );
PackItem( new SkillBall() );
PackItem( new PetLeash() );
PackItem( new ResourceStorageKeyBlackSmith() );
PackItem( new ResourceStorageKeyScribersTome() );
PackItem( new ResourceStorageKeySpellCasters() );
PackItem( new ResourceStorageKeyTailor() );
PackItem( new NewPlayerPackage() );
PackItem( new StatSkillPurchaseCrystal() );
PackItem( new NewPlayerWelcomeHandbook() );
//PackItem( new ResourceStorageKeyWood() );
}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:34,代码来源:CharacterCreation.cs
示例13: AddBackpack
private static void AddBackpack( Mobile m )
{
Container pack = m.Backpack;
if ( pack == null )
{
pack = new Backpack();
pack.Movable = false;
m.AddItem( pack );
}
PackItem( new RedBook( "a book", m.Name, 20, true ) );
//PackItem( new Gold( 1000 ) ); // Starting gold can be customized here
PackItem( new Dagger() );
PackItem( new Candle() );
PackItem( new Spellbook( UInt64.MaxValue ) );
Account account = (Account)m.Account;
if(account.GetTag("AlreadyGotTheirGold") == null)
{
PackItem( new StatBall() );
PackItem( new SkillBall() );
PackItem( new BankCheck( 100000 ) );
account.SetTag("AlreadyGotTheirGold", "True");
}
}
开发者ID:greeduomacro,项目名称:GoUO,代码行数:28,代码来源:CharacterCreation.cs
示例14: FamousPirates
public FamousPirates(AIType iAI, FightMode iFightMode, int iRangePerception, int iRangeFight, double dActiveSpeed, double dPassiveSpeed) : base(iAI, iFightMode, iRangePerception, iRangeFight, dActiveSpeed, dPassiveSpeed)
{
this.Body = 400;
this.Hue = Utility.RandomSkinHue();
this.Skills[SkillName.DetectHidden].Base = 100;
this.Skills[SkillName.MagicResist].Base = 100;
this.Skills[SkillName.Magery].Base = 100;
this.Skills[SkillName.Healing].Base = 100;
int Hue = 0 ;
Utility.AssignRandomHair( this, Hue );
LeatherGloves glv = new LeatherGloves();
glv.Hue = Hue;
glv.LootType = LootType.Regular;
AddItem(glv);
Container pack = new Backpack();
pack.Movable = false;
AddItem( pack );
Kills = 5;
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:27,代码来源:FamousPirates.cs
示例15: Crystal
[Constructable]public Crystal(){
///////////STR/DEX/INT
InitStats( 31, 41, 51 );
///////////name
Name = "Crystal";
///////////title
Title = "Quest Giver";
///////////sex. 0x191 is female, 0x190 is male.
Body = 0x191;
///////////skincolor
Hue = Utility.RandomSkinHue();
///////////Random hair and haircolor
Utility.AssignRandomHair( this );
///////////clothing and hues
AddItem( new Server.Items.Shirt( Utility.RandomBlueHue() ) );
AddItem( new Server.Items.LongPants( Utility.RandomBlueHue() ) );
AddItem( new Server.Items.Sandals( Utility.RandomBlueHue() ) );
///////////immortal and frozen to-the-spot features below:
Blessed = true;
CantWalk = true;
///////////Adding a backpack
Container pack = new Backpack();
pack.DropItem( new Gold( 250, 300 ) );
pack.Movable = false;
AddItem( pack );
}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:35,代码来源:CrystalQuest.cs
示例16: Actor
public Actor () : base( AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4 )
{
InitStats( 31, 41, 51 );
SpeechHue = Utility.RandomDyedHue();
Hue = Utility.RandomSkinHue();
if ( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );
AddItem( new FancyDress( Utility.RandomDyedHue() ) );
Title = "the actress";
}
else
{
this.Body = 0x190;
this.Name = NameList.RandomName( "male" );
AddItem( new LongPants( Utility.RandomNeutralHue() ) );
AddItem( new FancyShirt( Utility.RandomDyedHue() ) );
Title = "the actor";
}
AddItem( new Boots( Utility.RandomNeutralHue() ) );
Utility.AssignRandomHair( this );
Container pack = new Backpack();
pack.Movable = false;
AddItem( pack );
}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:33,代码来源:Actor.cs
示例17: People
public People (bool isFemale) : base( AIType.AI_None, FightMode.None, 10, 1, 0.2, 0.4 )
{
InitStats( 30, 30, 30 );
SpeechHue = Utility.RandomDyedHue();
Hue = Utility.RandomSkinHue();
if (Female = isFemale) // this.Female = Utility.RandomBool()
{
this.Body = 0x191;
this.Name = "une femme";
AddItem( new Server.Items.Robe( Utility.RandomNeutralHue() ) );
switch ( Utility.Random ( 2 ) )
{
case 0: AddItem( new Skirt ( Utility.RandomNeutralHue() ) ); break;
case 1: AddItem( new Kilt ( Utility.RandomNeutralHue() ) ); break;
}
}
else
{
this.Body = 0x190;
this.Name = "un homme";
AddItem( new ShortPants( Utility.RandomNeutralHue() ) );
AddItem( new Server.Items.Robe( Utility.RandomNeutralHue() ) );
}
AddItem( new Boots( Utility.RandomNeutralHue() ) );
Utility.AssignRandomHair( this );
Container pack = new Backpack();
pack.Movable = false;
AddItem( pack );
}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:35,代码来源:People.cs
示例18: ShadowFiend
public ShadowFiend() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0xA8;
Alignment = Alignment.Undead;
// this to allow shadow fiend to loot from corpses
var backpack = new Backpack();
backpack.Movable = false;
AddItem(backpack);
SetStr(46, 55);
SetDex(121, 130);
SetInt(46, 55);
SetHits(28, 33);
SetStam(46, 55);
SetDamage(10, 22);
SetSkill(SkillName.MagicResist, 20.1, 30.0);
SetSkill(SkillName.Tactics, 20.1, 30.0);
SetSkill(SkillName.Wrestling, 20.1, 30.0);
Fame = 1000;
Karma = -1000;
m_Timer = new UnhideTimer(this);
m_Timer.Start();
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:30,代码来源:ShadowFiend.cs
示例19: OnDoubleClick
public override void OnDoubleClick( Mobile from )
{
Backpack bankbag = new Backpack();
Container mobilePack = from.Backpack;
BankBox mobileBox = from.BankBox;
ArrayList equipitems = new ArrayList(from.Items);
mobileBox.AddItem( bankbag );
// this.AddPlayer( player );
from.Frozen = true;
from.SendMessage( "All your belongings were transported to your bankbox. You will need to close you backpack and re-open it for it to display the correct contents.");
// if ( Teams.Contains( from ) )
// {
// from.Frozen = true;
// }
foreach (Item item in equipitems)
{
if ((item.Layer != Layer.Bank) && (item.Layer != Layer.Backpack) && (item.Layer != Layer.Hair) && (item.Layer != Layer.FacialHair) && (item.Layer != Layer.Mount))
{
mobilePack.DropItem( item );
}
}
ArrayList packitems = new ArrayList( mobilePack.Items );
foreach (Item items in packitems)
{
bankbag.DropItem(items);
}
}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:30,代码来源:AutoBankStone.cs
示例20: Artist
public Artist()
: base( AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4 )
{
InitStats( 31, 41, 51 );
SetSkill( SkillName.Healing, 36, 68 );
SpeechHue = Utility.RandomDyedHue();
Title = "the artist";
Hue = Utility.RandomSkinHue();
if( this.Female = Utility.RandomBool() )
{
this.Body = 0x191;
this.Name = NameList.RandomName( "female" );
}
else
{
this.Body = 0x190;
this.Name = NameList.RandomName( "male" );
}
AddItem( new Doublet( Utility.RandomDyedHue() ) );
AddItem( new Sandals( Utility.RandomNeutralHue() ) );
AddItem( new ShortPants( Utility.RandomNeutralHue() ) );
AddItem( new HalfApron( Utility.RandomDyedHue() ) );
Utility.AssignRandomHair( this );
Container pack = new Backpack();
pack.Movable = false;
AddItem( pack );
}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:35,代码来源:Artist.cs
注:本文中的Server.Items.Backpack类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论