本文整理汇总了C#中Server.Items.Spellbook类的典型用法代码示例。如果您正苦于以下问题:C# Spellbook类的具体用法?C# Spellbook怎么用?C# Spellbook使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Spellbook类属于Server.Items命名空间,在下文中一共展示了Spellbook类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Beholder
public Beholder() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Beholder";
Body = 22;
Hue = 0x0492;
BaseSoundID = 377;
SetStr( 1500 );
SetDex( 200 );
SetInt( 800 );
SetHits( 1500 );
SetStam( 200 );
SetMana( 800 );
SetDamage( 30, 50 );
SetSkill( SkillName.Magery, 200.0 );
SetSkill( SkillName.MagicResist, 100.0 );
SetSkill( SkillName.Tactics, 150.0 );
SetSkill( SkillName.Wrestling, 200.0 );
Fame = 19000;
Karma = -9000;
VirtualArmor = 50;
Spellbook book = new Spellbook();
book.Content = ulong.MaxValue;
book.LootType = LootType.Regular;
AddItem(book);
}
示例2: Khalnga
public Khalnga()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0x190;
Title = "the Bone Lord";
SetStr(1254, 1381);
SetDex(93, 135);
SetInt(745, 810);
SetHits(3000, 4500);
SetDamage(30, 45);
SetSkill(SkillName.Wrestling, 90.1, 100.0);
SetSkill(SkillName.Tactics, 90.1, 100.0);
SetSkill(SkillName.MagicResist, 90.1, 100.0);
SetSkill(SkillName.Magery, 90.1, 100.0);
SetSkill(SkillName.EvalInt, 100.0);
SetSkill(SkillName.Meditation, 120.1, 130.0);
VirtualArmor = 50;
Fame = 10000;
Karma = -10000;
PlateHelm helm = new PlateHelm();
helm.Hue = 1157;
helm.Identified = true;
AddItem(Immovable(helm));
PlateArms arms = new PlateArms();
arms.Hue = 1157;
arms.Identified = true;
AddItem(Immovable(arms));
PlateLegs legs = new PlateLegs();
legs.Hue = 1157;
legs.Identified = true;
AddItem(Immovable(legs));
PlateGloves gloves = new PlateGloves();
gloves.Hue = 1157;
gloves.Identified = true;
AddItem(Immovable(gloves));
PlateChest chest = new PlateChest();
chest.Hue = 1157;
chest.Identified = true;
AddItem(Immovable(chest));
PlateGorget gorget = new PlateGorget();
gorget.Hue = 1157;
gorget.Identified = true;
AddItem(Immovable(gorget));
Spellbook spellbook = new Spellbook();
spellbook.Hue = 1157;
spellbook.Name = "red book of spells";
AddItem(Immovable(spellbook));
}
示例3: RoyalArchivistSF
public RoyalArchivistSF()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Llewellyn";
Body = 400;
Hue = 33777;
SpecialTitle = "Royal Archivist";
TitleHue = 1926;
Blessed = true;
CantWalk = true;
SpeechHue = YellHue = 2049;
VirtualArmor = 36;
TranscriptionBooks = new Dictionary<PlayerMobile, bool>();
AddItem(new Robe(Utility.RandomYellowHue()));
AddItem(new Sandals(Utility.RandomYellowHue()));
var book = new Spellbook();
book.Name = "Tome of Chaos";
book.Hue = 1194;
book.LootType = LootType.Newbied;
AddItem(Immovable(book));
HairItemID = 8265;
FacialHairItemID = 8254;
HairHue = 2577;
FacialHairHue = 2577;
}
示例4: Altageas
public Altageas()
: base(AIType.AI_SphereMage, FightMode.Closest, 10, 5, 0.2, 0.4)
{
Name = "Altageas";
Body = 0x03ca;
Hue = 0x1;
SetStr(600, 700);
SetDex(350, 450);
SetInt(300, 400);
SetHits(610, 720);
SetStam(350, 450);
SetMana(400);
SetDamage(38, 51);
SetSkill(SkillName.Magery, 120.0);
SetSkill(SkillName.Tactics, 300.0, 400.0);
SetSkill(SkillName.MagicResist, 100.0, 150.0);
SetSkill(SkillName.Parry, 200.0, 250.0);
SetSkill(SkillName.Wrestling, 100.0);
SetSkill(SkillName.EvalInt, 120.0);
Fame = Utility.RandomMinMax(2500, 4000);
Karma = Utility.RandomMinMax(-4000, -6000);
VirtualArmor = 80;
PackGold(650, 1150);
PlateGloves glo = new PlateGloves {Hue = 0x1};
PackItem(glo);
Spellbook book = new Spellbook {Content = ulong.MaxValue, LootType = LootType.Regular};
AddItem(book);
}
示例5: SlayerSelectSpellbookGump
public SlayerSelectSpellbookGump( Spellbook item ) : base( 0, 0 )
{
m_Item = item;
this.Closable=true;
this.Disposable=true;
this.Dragable=true;
this.Resizable=false;
AddPage(0);
AddBackground(131, 90, 185, 292, 9200);
AddAlphaRegion(137, 96, 172, 25);
AddAlphaRegion(137, 130, 172, 247);
AddHtml( 137, 96, 172, 25, @"<BASEFONT COLOR=#FFFFFF><CENTER>Select A Slayer</CENTER></BASEFONT>", (bool)false, (bool)false);
AddButton(145, 140, 4023, 4024, 1, GumpButtonType.Reply, 0);
AddLabel(180, 140, 1152, @"Repond Slayer");
AddButton(145, 170, 4023, 4024, 2, GumpButtonType.Reply, 0);
AddLabel(180, 170, 1152, @"Reptile Slayer");
AddButton(145, 200, 4023, 4024, 3, GumpButtonType.Reply, 0);
AddLabel(180, 200, 1152, @"Demon Slayer");
AddButton(145, 230, 4023, 4024, 4, GumpButtonType.Reply, 0);
AddLabel(180, 230, 1152, @"Elemental Slayer");
AddButton(145, 260, 4023, 4024, 5, GumpButtonType.Reply, 0);
AddLabel(180, 260, 1152, @"Undead Slayer");
AddButton(145, 290, 4023, 4024, 6, GumpButtonType.Reply, 0);
AddLabel(180, 290, 1152, @"Arachnid Slayer");
AddButton(145, 320, 4023, 4024, 7, GumpButtonType.Reply, 0);
AddLabel(180, 320, 1152, @"Fey Slayer");
}
示例6: FrostElfShaman
public FrostElfShaman() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Title = "the Frost Elf";
Hue = 1328;
AddItem( new Robe() );
AddItem( new Spellbook() );
AddItem( new Sandals() );
Female = Utility.RandomBool();
if( Female )
{
Body = 0x191;
Name = NameList.RandomName( "pixie" );
AddItem( new LongHair( Serial.NewItem ) );
}
else
{
Body = 0x190;
Name = NameList.RandomName( "golem controller" );
AddItem( new KrisnaHair( Serial.NewItem ) );
}
SetStr( 126, 150 );
SetDex( 96, 120 );
SetInt( 151, 175 );
SetHits( 150, 200 );
SetDamage( 3, 9 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 30, 40 );
SetResistance( ResistanceType.Fire, 25, 35 );
SetResistance( ResistanceType.Cold, 35, 45 );
SetResistance( ResistanceType.Poison, 5, 15 );
SetResistance( ResistanceType.Energy, 15, 25 );
SetSkill( SkillName.EvalInt, 95.1, 100.0 );
SetSkill( SkillName.Magery, 95.1, 100.0 );
SetSkill( SkillName.Meditation, 95.1, 100.0 );
SetSkill( SkillName.MagicResist, 102.5, 125.0 );
SetSkill( SkillName.Tactics, 65.0, 87.5 );
SetSkill( SkillName.Wrestling, 65.0, 87.5 );
Fame = Utility.RandomMinMax( 2500, 1500 );
Karma = Utility.RandomMinMax( -5000, 2000 );
VirtualArmor = 16;
if (Utility.RandomDouble() <= 0.7)
{
Spellbook book = new Spellbook();
book.Content = ulong.MaxValue;
book.LootType = LootType.Regular;
AddItem(book);
}
}
示例7: DemonScholar
public DemonScholar() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "a demonic scholar";
Body = 400;
BaseSoundID = 412;
Hue = 1175;
SetStr( 416, 505 );
SetDex( 146, 165 );
SetInt( 566, 655 );
SetHits( 250, 303 );
SetDamage( 11, 13 );
SetSkill( SkillName.EvalInt, 90.1, 100.0 );
SetSkill( SkillName.Magery, 90.1, 100.0 );
SetSkill( SkillName.MagicResist, 150.5, 200.0 );
SetSkill( SkillName.Tactics, 50.1, 70.0 );
SetSkill( SkillName.Wrestling, 60.1, 80.0 );
Fame = 18000;
Karma = -18000;
VirtualArmor = 50;
Lantern hands = new Lantern();
hands.Name = "latern of souls";
hands.Hue = 1258;
hands.Movable = false;
AddItem( hands );
Spellbook hands2 = new Spellbook();
hands2.Name = "ancient spellbook";
hands2.Hue = 1158;
hands2.Movable = false;
hands2.Content = ulong.MaxValue;
AddItem( hands2 );
HoodedShroudOfShadows chest = new HoodedShroudOfShadows();
chest.Name = "hooded shroud";
chest.Hue = 1175;
chest.Movable = false;
AddItem( chest );
Sandals feet = new Sandals();
feet.Name = "sandals";
feet.Hue = 1258;
feet.Movable = false;
AddItem( feet );
PackReg( 30 );
if ( Utility.Random( 2500 ) == 0 ) PackItem( new DemonSandals() );
if ( Utility.Random( 2500 ) == 0 ) PackItem( new DemonDoublet() );
if ( Utility.Random( 2500 ) == 0 ) PackItem( new DemonWizardsHat() );
if ( Utility.Random( 2500 ) == 0 ) PackItem( new DemonHalfApron() );
if ( Utility.Random( 2500 ) == 0 ) PackItem( new DemonSkirt() );
}
示例8: FullSpellbook
public Spellbook FullSpellbook()
{
Spellbook book = new Spellbook();
book.Movable = false;
book.LootType = LootType.Blessed;
book.Content =0xFFFFFFFFFFFFFFFF;
return book;
}
示例9: VampireCount
public VampireCount() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Vampire Count";
Body = 0x0190;
Hue = 0x497;
SetStr( 50 );
SetDex( 50 );
SetInt( 50 );
SetHits( 50 );
SetStam( 50 );
SetDamage( 10, 20 );
SetSkill( SkillName.Poisoning, 90.0, 100.0 );
SetSkill( SkillName.Tactics, 100.0 );
SetSkill( SkillName.MagicResist, 65.0, 88.0 );
SetSkill( SkillName.Parry, 75.0, 98.0 );
SetSkill( SkillName.Wrestling, 67.0, 90.0 );
SetSkill( SkillName.DetectHidden, 90.0, 100.0 );
SetSkill( SkillName.Swords, 150.0 );
SetSkill(SkillName.EvalInt, 95.0, 100.0);
Fame = 0;
VirtualArmor = 10;
//Here we add his loot.
//PackGold(1000, 1500);
//PackItem(new VampireHeart());
//PackItem(new VampireBone(10));
HairItemID = 8252;
HairHue = Utility.RandomHairHue();
PlateGloves glo = new PlateGloves();
glo.Hue = 0x1;
PackItem( glo );
Item temp = new Doublet( 0x1 );
temp.Movable = false;
AddItem( temp );
temp = new ThighBoots( 0x1 );
temp.Movable = false;
AddItem( temp );
temp = new FancyShirt( 0x0496 );
temp.Movable = false;
AddItem( temp );
temp = new ShortPants( 0x1 );
temp.Movable = false;
AddItem( temp );
temp = null;
Spellbook book = new Spellbook();
book.Content = ulong.MaxValue;
book.LootType = LootType.Regular;
AddItem(book);
}
示例10: GiveEquipment
public override void GiveEquipment()
{
var spellbook = new Spellbook();
spellbook.Name = "a book of chaos";
spellbook.Hue = 1920;
spellbook.Movable = false;
AddItem(Immovable(spellbook));
base.GiveEquipment();
}
示例11: LysanderGathenwale
public LysanderGathenwale()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Title = "the Cursed";
Hue = 0x8838;
Body = 0x190;
Name = "Lysander Gathenwale";
AddItem( new Boots( 0x599 ) );
AddItem( new Cloak( 0x96F ) );
Spellbook spellbook = new Spellbook();
RingmailGloves gloves = new RingmailGloves();
StuddedChest chest = new StuddedChest();
PlateArms arms = new PlateArms();
spellbook.Hue = 0x599;
gloves.Hue = 0x599;
chest.Hue = 0x96F;
arms.Hue = 0x599;
AddItem( spellbook );
AddItem( gloves );
AddItem( chest );
AddItem( arms );
SetStr( 111, 120 );
SetDex( 71, 80 );
SetInt( 121, 130 );
SetHits( 180, 207 );
SetMana( 227, 265 );
SetDamage( 5, 13 );
SetResistance( ResistanceType.Physical, 35, 45 );
SetResistance( ResistanceType.Fire, 25, 30 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 25, 35 );
SetResistance( ResistanceType.Energy, 25, 35 );
SetSkill( SkillName.UnarmedFighting, 80.1, 90.0 );
SetSkill( SkillName.Tactics, 90.1, 100.0 );
SetSkill( SkillName.MagicResist, 80.1, 90.0 );
SetSkill( SkillName.Magery, 90.1, 100.0 );
SetSkill( SkillName.Invocation, 95.1, 100.0 );
SetSkill( SkillName.Meditation, 90.1, 100.0 );
Fame = 5000;
Karma = -10000;
Item reags = Loot.RandomReagent();
reags.Amount = 30;
PackItem( reags );
}
示例12: LysanderGathenwale
public LysanderGathenwale() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Title = "the Cursed";
Hue = 0x8838;
Body = 0x190;
AddItem( Immovable( new Boots( 0x599 )) );
AddItem( Immovable(new Cloak( 0x96F )) );
Spellbook spellbook = new Spellbook();
spellbook.LootType = LootType.Blessed;
RingmailGloves gloves = new RingmailGloves();
StuddedChest chest = new StuddedChest();
PlateArms arms = new PlateArms();
spellbook.Hue = 0x599;
gloves.Hue = 0x599;
chest.Hue = 0x96F;
arms.Hue = 0x599;
AddItem( Immovable(spellbook) );
AddItem( Immovable( gloves) );
AddItem( Immovable(chest) );
AddItem( Immovable(arms) );
SetStr( 111, 120 );
SetDex( 71, 80 );
SetInt( 121, 130 );
SetHits( 180, 207 );
SetMana( 227, 265 );
SetDamage( 5, 13 );
SetSkill( SkillName.Wrestling, 80.1, 90.0 );
SetSkill( SkillName.Tactics, 90.1, 100.0 );
SetSkill( SkillName.MagicResist, 80.1, 90.0 );
SetSkill( SkillName.Magery, 90.1, 100.0 );
SetSkill( SkillName.EvalInt, 95.1, 100.0 );
SetSkill( SkillName.Meditation, 90.1, 100.0 );
Fame = 5000;
Karma = -10000;
Item reags = Loot.RandomReagent();
reags.Amount = 30;
PackItem( reags );
}
示例13: EvilMageLord
public EvilMageLord() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = NameList.RandomName( "evil mage lord" );
Body = Utility.RandomList( 125, 126 );
PackItem( new Robe( Utility.RandomMetalHue() ) );
PackItem( new WizardsHat( Utility.RandomMetalHue() ) );
SetStr( 81, 105 );
SetDex( 191, 215 );
SetInt( 126, 150 );
SetHits( 49, 63 );
SetDamage( 5, 10 );
SetDamageType( ResistanceType.Physical, 100 );
SetResistance( ResistanceType.Physical, 35, 40 );
SetResistance( ResistanceType.Fire, 30, 40 );
SetResistance( ResistanceType.Cold, 30, 40 );
SetResistance( ResistanceType.Poison, 30, 40 );
SetResistance( ResistanceType.Energy, 30, 40 );
SetSkill( SkillName.EvalInt, 80.2, 100.0 );
SetSkill( SkillName.Magery, 95.1, 100.0 );
SetSkill( SkillName.Meditation, 27.5, 50.0 );
SetSkill( SkillName.MagicResist, 77.5, 100.0 );
SetSkill( SkillName.Tactics, 65.0, 87.5 );
SetSkill( SkillName.Wrestling, 20.3, 80.0 );
Fame = 10500;
Karma = -7000;
VirtualArmor = 16;
PackReg( 23 );
if ( Utility.RandomBool() )
PackItem( new Shoes() );
else
PackItem( new Sandals() );
if (Utility.RandomDouble() <= 0.3)
{
Spellbook book = new Spellbook();
book.Content = ulong.MaxValue;
book.LootType = LootType.Regular;
AddItem(book);
}
}
示例14: Imp
public Imp() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Imp";
Body = 74;
BaseSoundID = 422;
SetStr( 91, 115 );
SetDex( 61, 80 );
SetInt( 86, 98 );
SetHits( 55, 70 );
SetDamage( 10, 14 );
SetDamageType( ResistanceType.Physical, 0 );
SetDamageType( ResistanceType.Fire, 50 );
SetDamageType( ResistanceType.Poison, 50 );
SetResistance( ResistanceType.Physical, 25, 35 );
SetResistance( ResistanceType.Fire, 40, 50 );
SetResistance( ResistanceType.Cold, 20, 30 );
SetResistance( ResistanceType.Poison, 30, 40 );
SetResistance( ResistanceType.Energy, 30, 40 );
SetSkill( SkillName.EvalInt, 20.1, 40.0 );
SetSkill( SkillName.Magery, 85.1, 90.0 );
SetSkill( SkillName.MagicResist, 39.1, 59.0 );
SetSkill( SkillName.Tactics, 42.1, 50.0 );
SetSkill( SkillName.Wrestling, 40.1, 44.0 );
Fame = 2500;
VirtualArmor = 30;
Tamable = true;
ControlSlots = 2;
MinTameSkill = 83.1;
if (Core.ML && Utility.RandomDouble() < 0.09)
PackItem(Engines.Plants.Seed.RandomPeculiarSeed(2));
if (Utility.RandomDouble() <= 0.2)
{
Spellbook book = new Spellbook();
book.Content = ulong.MaxValue;
book.LootType = LootType.Regular;
AddItem(book);
}
}
示例15: Lich
public Lich() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Lich";
Body = 24;
BaseSoundID = 0x3E9;
SetStr( 171, 200 );
SetDex( 126, 145 );
SetInt( 276, 305 );
SetHits( 103, 120 );
SetDamage( 24, 26 );
SetDamageType( ResistanceType.Physical, 10 );
SetDamageType( ResistanceType.Cold, 40 );
SetDamageType( ResistanceType.Energy, 50 );
SetResistance( ResistanceType.Physical, 40, 60 );
SetResistance( ResistanceType.Fire, 20, 30 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 55, 65 );
SetResistance( ResistanceType.Energy, 40, 50 );
//SetSkill(SkillName.Necromancy, 89, 99.1);
//SetSkill(SkillName.SpiritSpeak, 90.0, 99.0);
SetSkill(SkillName.EvalInt, 100.0);
SetSkill( SkillName.Magery, 70.1, 80.0 );
SetSkill( SkillName.Meditation, 85.1, 95.0 );
SetSkill( SkillName.MagicResist, 80.1, 100.0 );
SetSkill( SkillName.Tactics, 70.1, 90.0 );
Fame = 8000;
Karma = -4000;
VirtualArmor = 50;
PackItem( new GnarledStaff() );
PackNecroReg( 17, 24 );
if (Utility.RandomDouble() <= 0.3)
{
Spellbook book = new Spellbook();
book.Content = ulong.MaxValue;
book.LootType = LootType.Regular;
AddItem(book);
}
}