本文整理汇总了C#中Server.Items.Backpack类的典型用法代码示例。如果您正苦于以下问题:C# Backpack类的具体用法?C# Backpack怎么用?C# Backpack使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Backpack类属于Server.Items命名空间,在下文中一共展示了Backpack类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
示例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 );
}
示例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;
}
示例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);
}
示例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();
}
示例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 );
}
示例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);
}
示例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() );
}
示例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 );
}
示例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 );
}
示例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() );
}
示例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");
}
}
示例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;
}
示例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 );
}