public DungeonDonationBox() { Weight = 1.0; Hue = 1109; Item item = null; Name = "dungeon decoration chest"; PlaceItemIn( 16, 51, (item = new BoneThrone()) ); PlaceItemIn( 16, 51, (item = new BoneThrone()) ); PlaceItemIn( 58, 70, (item = new InscribedTombStone()) ); PlaceItemIn( 58, 70, (item = new InscribedTombStone()) ); PlaceItemIn( 58, 70, (item = new IronMaiden()) ); PlaceItemIn( 44, 57, (new BoneTable()) ); PlaceItemIn( 44, 57, (new BoneTable()) ); BaseContainer cont; PlaceItemIn( 131, 121, (cont = new Bag()) ); cont.Hue = 2413; cont.PlaceItemIn( 131, 75, (item = new OpenCoffinAddonDeed()) ); cont.PlaceItemIn( 131, 75, (item = new OpenCoffinAddonDeed()) ); cont.PlaceItemIn( 140, 51, (item = new StoneCoffinAddonDeed()) ); cont.PlaceItemIn( 140, 51, (item = new StoneCoffinAddonDeed()) ); cont.PlaceItemIn( 58, 83, (item = new ShadowAltarAddonDeed()) ); cont.PlaceItemIn( 58, 83, (item = new ShadowAltarAddonDeed()) ); cont.PlaceItemIn( 56, 50, (item = new BoneCouchAddonDeed()) ); cont.PlaceItemIn( 56, 50, (item = new BoneCouchAddonDeed()) ); }
public bool GiveReward( Mobile to ) { Bag bag = new Bag(); bag.DropItem( new Gold( Utility.RandomMinMax( 500, 1000 ) ) ); if ( Utility.RandomBool() ) { BaseWeapon weapon = Loot.RandomWeapon(); BaseRunicTool.ApplyAttributesTo( weapon, 2, 20, 30 ); bag.DropItem( weapon ); } else { Item item = Loot.RandomArmorOrShieldOrJewelry(); if ( item is BaseArmor ) BaseRunicTool.ApplyAttributesTo( (BaseArmor) item, 2, 20, 30 ); else if ( item is BaseJewel ) BaseRunicTool.ApplyAttributesTo( (BaseJewel) item, 2, 20, 30 ); bag.DropItem( item ); } bag.DropItem( new Obsidian() ); return to.PlaceInBackpack( bag ); }
public ChristmasDonationBox() { Weight = 1.0; //Hue = 38; Item item = null; Name = "christmas gift box"; PlaceItemIn( 35, 30, (item = new RedStocking()) ); PlaceItemIn( 48, 30, (item = new RedStocking()) ); PlaceItemIn( 35, 75, (item = new FreshGinger()) ); PlaceItemIn( 46, 63, (item = new FreshGinger()) ); PlaceItemIn( 80, 26, (item = new GingerbreadCookie()) ); PlaceItemIn( 80, 36, (item = new GingerbreadCookie()) ); PlaceItemIn( 80, 46, (item = new GingerbreadCookie()) ); PlaceItemIn( 80, 56, (item = new GingerbreadCookie()) ); PlaceItemIn( 80, 66, (item = new GingerbreadCookie()) ); PlaceItemIn( 80, 76, (item = new GingerbreadCookie()) ); PlaceItemIn( 146, 31, (item = new RedCandyCane()) ); PlaceItemIn( 146, 41, (item = new RedCandyCane()) ); PlaceItemIn( 146, 51, (item = new RedCandyCane()) ); PlaceItemIn( 146, 61, (item = new RedCandyCane()) ); BaseContainer cont; PlaceItemIn( 123, 55, (cont = new Bag()) ); cont.Hue = 38; cont.PlaceItemIn( 131, 75, (item = new ChristmasHouseAddonDeed()) ); cont.PlaceItemIn( 131, 85, (item = new ChristmasCastleAddonDeed()) ); }
public BagOfMagicJewels( int amount ) { this.Name = "Bag Of Jewels"; this.Hue = DimensionsNewAge.Scripts.HueItemConst.HueMagicColorRandom; Bag bagBracelet = new Bag(); bagBracelet.DropItem(new BraceletAlchemy()); bagBracelet.DropItem(new BraceletBlacksmithing()); bagBracelet.DropItem(new BraceletMining()); bagBracelet.DropItem(new BraceletBowcraft()); bagBracelet.DropItem(new BraceletTaming()); bagBracelet.DropItem(new BraceletLumberjacking()); bagBracelet.DropItem(new BraceletSnooping()); bagBracelet.DropItem(new BraceletTailoring()); bagBracelet.DropItem(new BraceletPoisoning()); bagBracelet.DropItem(new BraceletStealing()); this.DropItem(bagBracelet); Bag bagNecklace = new Bag(); bagNecklace.DropItem(new NecklaceFencing()); bagNecklace.DropItem(new NecklaceMacefighting()); bagNecklace.DropItem(new NecklaceSwordsmanship()); bagNecklace.DropItem(new NecklaceArchery()); bagNecklace.DropItem(new NecklaceTactics()); bagNecklace.DropItem(new NecklaceWrestling()); this.DropItem(bagNecklace); Bag bagRing = new Bag(); bagRing.DropItem(new RingDexterity()); bagRing.DropItem(new RingStrenght()); bagRing.DropItem(new RingInteligence()); bagRing.DropItem(new RingPower()); this.DropItem(bagRing); }
public SurvivalPack() { Weight = 1.0; Hue = 1871; Item item = null; Name = "a survival pack"; PlaceItemIn( 60, 131, (item = new SkillBall( 10 )) ); item.Hue = 1871; item.Name = "a +10 SkillBall - Works on skills 90.0 and below"; PlaceItemIn( 110, 103, (item = new SkillBall( 50 )) ); item.Hue = 1871; item.Name = "a +50 SkillBall - Works on skills 50.0 and below"; PlaceItemIn( 46, 65, (item = new SkillBall( 25 )) ); item.Hue = 1871; item.Name = "a +25 SkillBall - Works on skills 75.0 and below"; BaseContainer cont; PlaceItemIn( 131, 121, (cont = new Bag()) ); cont.Hue = 2413; cont.PlaceItemIn( 29, 39, new SulfurousAsh(5000) ); cont.PlaceItemIn( 29, 64, new Nightshade(5000) ); cont.PlaceItemIn( 29, 89, new SpidersSilk(5000) ); cont.PlaceItemIn( 60, 64, new Garlic(5000) ); cont.PlaceItemIn( 60, 89, new Ginseng(5000) ); cont.PlaceItemIn( 88, 39, new Bloodmoss(5000) ); cont.PlaceItemIn( 88, 64, new BlackPearl(5000) ); cont.PlaceItemIn( 88, 89, new MandrakeRoot(5000) ); }
public Wisp() : base(AIType.AI_Mage, FightMode.Agressor, 10, 1, 0.45, 0.8) { Body = 58; Name = "a wisp"; SetStr( 196, 225 ); SetHits( 196, 225 ); SetDex( 196, 225 ); SetStam( 96, 125 ); SetInt( 196, 225 ); SetMana( 196, 225 ); BaseSoundID = 466; SetSkill( SkillName.Tactics, 80 ); SetSkill( SkillName.MagicResist, 80 ); SetSkill( SkillName.Parry, 80 ); SetSkill( SkillName.Magery, 80 ); SetSkill( SkillName.Wrestling, 80 ); VirtualArmor = 20; SetDamage( 15, 20 ); Container cont = new Bag(); PackItem( cont ); LootPack.FilthyRich.Generate( this, cont ); LootPack.FilthyRich.Generate( this, cont ); LootPack.Rich.Generate( this, cont ); }
public bool GiveReward( Mobile to ) { Bag bag = new Bag(); bag.DropItem( new Gold( Utility.RandomMinMax( 1500, 2000 ) ) ); //Edit by Blady. Default was (500, 1000) if ( Utility.RandomBool() ) { BaseWeapon weapon = Loot.RandomWeapon(); if ( Core.AOS ) { BaseRunicTool.ApplyAttributesTo( weapon, (Utility.RandomMinMax(2,5)), 20, 80 ); //By Blady. Default: (3, 20, 30) } else { weapon.DamageLevel = (WeaponDamageLevel)BaseCreature.RandomMinMaxScaled( 2, 3 ); weapon.AccuracyLevel = (WeaponAccuracyLevel)BaseCreature.RandomMinMaxScaled( 2, 3 ); weapon.DurabilityLevel = (WeaponDurabilityLevel)BaseCreature.RandomMinMaxScaled( 2, 3 ); } bag.DropItem( weapon ); } else { Item item; if ( Core.AOS ) { item = Loot.RandomArmorOrShieldOrJewelry(); if ( item is BaseArmor ) BaseRunicTool.ApplyAttributesTo( (BaseArmor)item, (Utility.RandomMinMax(2,5)), 20, 80 ); //By Blady. Default: (3, 20, 30) else if ( item is BaseJewel ) BaseRunicTool.ApplyAttributesTo( (BaseJewel)item, (Utility.RandomMinMax(2,5)), 20, 80 ); //By Blady. Default: (3, 20, 30) } else { BaseArmor armor = Loot.RandomArmorOrShield(); item = armor; armor.ProtectionLevel = (ArmorProtectionLevel)BaseCreature.RandomMinMaxScaled( 2, 3 ); armor.Durability = (ArmorDurabilityLevel)BaseCreature.RandomMinMaxScaled( 2, 3 ); } bag.DropItem( item ); } bag.DropItem( new Obsidian() ); if ( to.PlaceInBackpack( bag ) ) { return true; } else { bag.Delete(); return false; } }
public JukaMage() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { this.Name = "a juka mage"; this.Body = 765; this.SetStr(201, 300); this.SetDex(71, 90); this.SetInt(451, 500); this.SetHits(121, 180); this.SetDamage(4, 10); this.SetDamageType(ResistanceType.Physical, 100); this.SetResistance(ResistanceType.Physical, 20, 30); this.SetResistance(ResistanceType.Fire, 35, 45); this.SetResistance(ResistanceType.Cold, 30, 40); this.SetResistance(ResistanceType.Poison, 10, 20); this.SetResistance(ResistanceType.Energy, 35, 45); this.SetSkill(SkillName.Anatomy, 80.1, 90.0); this.SetSkill(SkillName.EvalInt, 80.2, 100.0); this.SetSkill(SkillName.Magery, 99.1, 100.0); this.SetSkill(SkillName.Meditation, 80.2, 100.0); this.SetSkill(SkillName.MagicResist, 140.1, 150.0); this.SetSkill(SkillName.Tactics, 80.1, 90.0); this.SetSkill(SkillName.Wrestling, 80.1, 90.0); this.Fame = 15000; this.Karma = -15000; this.VirtualArmor = 16; Container bag = new Bag(); int count = Utility.RandomMinMax(10, 20); for (int i = 0; i < count; ++i) { Item item = Loot.RandomReagent(); if (item == null) continue; if (!bag.TryDropItem(this, item, false)) item.Delete(); } this.PackItem(bag); this.PackItem(new ArcaneGem()); if (Core.ML && Utility.RandomDouble() < .33) this.PackItem(Engines.Plants.Seed.RandomPeculiarSeed(4)); this.m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds(Utility.RandomMinMax(2, 5)); }
public OutlanderMage() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "an outlander mage"; Body = 770; Team = 2; SetStr(201, 300); SetDex(71, 90); SetInt(451, 500); SetHits(121, 180); SetDamage(4, 10); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 20, 30); SetResistance(ResistanceType.Fire, 35, 45); SetResistance(ResistanceType.Cold, 30, 40); SetResistance(ResistanceType.Poison, 10, 20); SetResistance(ResistanceType.Energy, 35, 45); SetSkill(SkillName.Anatomy, 80.1, 90.0); SetSkill(SkillName.EvalInt, 80.2, 100.0); SetSkill(SkillName.Magery, 99.1, 100.0); SetSkill(SkillName.Meditation, 80.2, 100.0); SetSkill(SkillName.MagicResist, 140.1, 150.0); SetSkill(SkillName.Tactics, 80.1, 90.0); SetSkill(SkillName.Wrestling, 80.1, 90.0); Fame = 15000; Karma = -15000; VirtualArmor = 16; Container bag = new Bag(); int count = Utility.RandomMinMax(10, 20); for (int i = 0; i < count; ++i) { Item item = Loot.RandomReagent(); if (item == null) continue; if (!bag.TryDropItem(this, item, false)) item.Delete(); } PackItem(bag); PackItem(new OutlanderHead()); PackItem(new ArcaneGem()); m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds(Utility.RandomMinMax(2, 5)); }
public JukaMage() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "a juka mage"; Body = 765; SetStr( 201, 300 ); SetDex( 71, 90 ); SetInt( 451, 500 ); SetHits( 121, 180 ); SetDamage( 4, 10 ); SetSkill( SkillName.Anatomy, 80.1, 90.0 ); SetSkill( SkillName.EvalInt, 80.2, 100.0 ); SetSkill( SkillName.Magery, 99.1, 100.0 ); SetSkill( SkillName.Meditation, 80.2, 100.0 ); SetSkill( SkillName.MagicResist, 140.1, 150.0 ); SetSkill( SkillName.Tactics, 80.1, 90.0 ); SetSkill( SkillName.Wrestling, 80.1, 90.0 ); Fame = 15000; Karma = -15000; VirtualArmor = 16; Container bag = new Bag(); int count = Utility.RandomMinMax( 10, 20 ); for ( int i = 0; i < count; ++i ) { Item item = Loot.RandomReagent(); if ( item == null ) continue; if ( !bag.TryDropItem( this, item, false ) ) item.Delete(); } PackItem( bag ); PackItem( new ArcaneGem() ); PackGold( 250, 400 ); PackGem(); PackScroll( 0, 6 ); PackScroll( 0, 6 ); PackArmor( 0, 4 ); PackWeapon( 0, 3 ); m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds( Utility.RandomMinMax( 2, 5 ) ); }
public override ArrayList ComputeRewards() { ArrayList list = new ArrayList(); Container cont = new Bag(); int minProp = Level + 1; if (minProp > 3) minProp = 3; //EUtility.AddRandomLoot(cont, (Level + 1) * 3, (int)(Level * 300 + AmountMax / 20.0 * 300), ScaleTypes.PlayerLuck, minProp, 5, 10, 100); cont.DropItem(HuntBodUtility.GetSmallRewardItem(Level)); list.Add(cont); return list; }
public override bool OnBeforeDeath() { BoneMagi rm = new BoneMagi(); rm.Team = this.Team; rm.Map = this.Map; rm.Location = this.Location; Effects.SendLocationEffect( Location,Map, 0x3709, 13, 0x3B2, 0 ); Container bag = new Bag(); switch ( Utility.Random( 9 )) { case 0: bag.DropItem( new Amber() ); break; case 1: bag.DropItem( new Amethyst() ); break; case 2: bag.DropItem( new Citrine() ); break; case 3: bag.DropItem( new Diamond() ); break; case 4: bag.DropItem( new Emerald() ); break; case 5: bag.DropItem( new Ruby() ); break; case 6: bag.DropItem( new Sapphire() ); break; case 7: bag.DropItem( new StarSapphire() ); break; case 8: bag.DropItem( new Tourmaline() ); break; } switch ( Utility.Random( 8 )) { case 0: bag.DropItem( new SpidersSilk( 3 ) ); break; case 1: bag.DropItem( new BlackPearl( 3 ) ); break; case 2: bag.DropItem( new Bloodmoss( 3 ) ); break; case 3: bag.DropItem( new Garlic( 3 ) ); break; case 4: bag.DropItem( new MandrakeRoot( 3 ) ); break; case 5: bag.DropItem( new Nightshade( 3 ) ); break; case 6: bag.DropItem( new SulfurousAsh( 3 ) ); break; case 7: bag.DropItem( new Ginseng( 3 ) ); break; } bag.DropItem( new Gold( 2000, 3500 )); rm.AddItem( bag ); this.Delete(); return false; }
public BagBetaTest() { Hue = 780; Name = "Bag BetaTeste"; Bag bagGold = new Bag(); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); bagGold.DropItem(new Gold(50000)); this.DropItem(bagGold); this.DropItem(new BagOfOres(250)); this.DropItem(new Server.Multis.Deeds.CastleDeed()); }
public BagOfAssassinGear() : base() { DropItem( new ACreedBelt() ); DropItem( new ACreedBoneArms() ); DropItem( new ACreedChainCoif() ); DropItem( new ACreedJinBori() ); DropItem( new ACreedKilt() ); DropItem( new ACreedMempo() ); DropItem( new ACreedShirt() ); DropItem( new ACreedSkirt() ); DropItem( new ACreedStuddedChest() ); DropItem( new ACreedThighBoots() ); DropItem( new ACreedLeafGloves() ); DropItem( new ACreedSword() ); Bag bag = new Bag(); for ( int i = 0; i < 16; i++ ) { bag.DropItem( new Dagger() ); } SmokeBomb smoke = new SmokeBomb(); smoke.Amount = 15; bag.DropItem( smoke ); bag.DropItem( new GreaterHealPotion( 15 ) ); DropItem( bag ); bag = new Bag(); for ( int i = 0; i < 34; i++ ) { bag.DropItem( new UpgradeACreedGarbDeed() ); } DropItem( bag ); }
public StarterPack() : base() { Name = "Welcome bag"; Hue = 196; Item item = new BankCheck(100); DropItem(item); item.X = 53; item.Y = 36; item = new BagOfReagents(50); DropItem(item); item.X = 71; item.Y = 55; Container bag = new Bag(); bag.DropItem(new LeatherCap()); bag.DropItem(new LeatherChest()); bag.DropItem(new LeatherLegs()); bag.DropItem(new LeatherGloves()); bag.DropItem(new LeatherArms()); bag.DropItem(new LeatherGorget()); DropItem(bag); bag.X = 63; bag.Y = 75; /* item = new HalfApron (); * item.LootType = LootType.Blessed; * item.Name = "Launch Day 2013"; * DropItem( item ); * item.X = 72; * item.Y = 92; * * item = new FireworksWand(); * item.Name = "Launch Day 2013"; * DropItem( item ); * item.X = 94; * item.Y = 34;*/ /* if ( TestCenter.Enabled ) * { * // item = new SmallBrickHouseDeed(); * // DropItem( item ); * // item.X = 23; * // item.Y = 53; */ /* item = new Runebook(); * DropItem( item ); * item.X = 93; * item.Y = 92; * * item = new EtherealLlama(); * item.Name = "a beta testers ethereal llama"; * DropItem( item ); * item.X = 94; * item.Y = 34; * } * else * { */ // item = new BankCheck( 1000 ); // DropItem( item ); // item.X = 52; // item.Y = 36; //} }
public override void OnResponse(NetState state, RelayInfo info) { if (state == null || state.Mobile == null) return; m_Result.DataItems = GetUnclaimed(m_Result.DataItems); if (m_Result.Status == ResultStatus.OK && m_Result.DataItems.Count == 0) { m_Result.Status = ResultStatus.NoUndeliveredDonationsFound; } if (info.ButtonID == (int)Buttons.Previous && m_Page > 0) { state.Mobile.SendGump(new ClaimDonationsGump(m_Page - 1, this.X, this.Y, m_Result)); } else if (info.ButtonID == (int)Buttons.Next) { state.Mobile.SendGump(new ClaimDonationsGump(m_Page + 1, this.X, this.Y, m_Result)); } else if (info.ButtonID == (int)Buttons.OK && m_Result.Status == ResultStatus.OK) { state.Mobile.CloseAllGumps(); if (state.Mobile != null && !state.Mobile.Deleted && state.Mobile.NetState != null) { if (state.Mobile.BankBox == null) { state.Mobile.SendMessage("You don't seem to have a bankbox, contact a GM."); } else { ArrayList temp = new ArrayList(); Bag bag = new Bag(); bag.Hue = 33; bag.Name = "a donation claim bag"; foreach (DataItem item in m_Result.DataItems) { //Make sure we check amount for (int i = 0; i < item.Amount; i++) { Item toGive = GetItem(item.ProductID); if (toGive != null) { bag.DropItem(toGive); } else { state.Mobile.SendMessage("An error ocurred claiming an item in order number: {0}. An errorlog has been created, please contact an administrator."); string error = String.Format("An error ocurred trying to fetch item for product number: {0} in order: {1} for {2}({3}).", item.ProductID, item.OrderID, state.Mobile.RawName, (state.Mobile.Account as Account).Username); Log(error); } } // Register claim. We only register each order one time if (!temp.Contains(item.OrderID)) { temp.Add(item.OrderID); ClaimedOrder claim = new ClaimedOrder(item.OrderID, state.Mobile); m_ClaimedOrders.Add(claim); } } state.Mobile.BankBox.DropItem(bag); state.Mobile.SendMessage("Your have claimed your donations. They have been added to your bankbox. Thank you for donating!"); } } } else { //state.Mobile.SendMessage("You could not claim the donations, because you claimed them wile this gump was open"); } }
private void PackUpItems() { if (c_House == null) { return; } Container bag = new Bag(); bag.Name = "Town House Belongings"; foreach (Item item in new ArrayList(c_House.LockDowns)) { item.IsLockedDown = false; item.Movable = true; c_House.LockDowns.Remove(item); bag.DropItem(item); } foreach (SecureInfo info in new ArrayList(c_House.Secures)) { info.Item.IsLockedDown = false; info.Item.IsSecure = false; info.Item.Movable = true; info.Item.SetLastMoved(); c_House.Secures.Remove(info); bag.DropItem(info.Item); } foreach ( Item item in c_Blocks.SelectMany( rect => Map.GetItemsInBounds(rect) .Where( item => !(item is HouseSign) && !(item is BaseDoor) && !(item is BaseMulti) && !(item is BaseAddon) && !(item is AddonComponent) && item.Visible && !item.IsLockedDown && !item.IsSecure && item.Movable && item.Map == c_House.Map && c_House.Region.Contains(item.Location)))) { bag.DropItem(item); } if (bag.Items.Count == 0) { bag.Delete(); return; } c_House.Owner.BankBox.DropItem(bag); }
private void ReadyPlayer(Mobile m) { if (!m_ScoreTable.ContainsKey(m.Serial)) m_ScoreTable.Add(m.Serial, new ScoreKeeper(m)); if (!m_UseSphereRules) { #region DistroCode bool MagicWeapons = MagicWeaponRule == pMagicWeaponRule.Allowed; bool MagicArmor = MagicArmorRule == pMagicArmorRule.Allowed; bool Potions = PotionRule == pPotionRule.Allowed; bool Bandages = BandageRule == pBandaidRule.Allowed; bool Pets = PetRule == pPetRule.Allowed; bool Mounts = MountRule == pMountRule.Allowed; if (!m.Alive) m.Resurrect(); Container bp = m.Backpack; Container bag = new Bag(); bag.Hue = 38; BankBox bank = m.BankBox; Item oncurs = m.Holding; if (oncurs != null) bp.DropItem(oncurs); m.CurePoison(m); m.Hits = m.HitsMax; m.Mana = m.ManaMax; m.Stam = m.StamMax; m.StatMods.Clear(); List<Item> items = new List<Item>(); foreach (Layer layer in PvpCore.EquipmentLayers) { Item item = m.FindItemOnLayer(layer); if (item != null) { if (item is BaseWeapon && !MagicWeapons) { BaseWeapon weapon = (BaseWeapon)item; if (weapon.AccuracyLevel != WeaponAccuracyLevel.Regular) items.Add(weapon); else if (weapon.DamageLevel != WeaponDamageLevel.Regular) items.Add(weapon); else if (weapon.DurabilityLevel != WeaponDurabilityLevel.Regular) items.Add(weapon); } else if (item is BaseArmor && !MagicArmor) { BaseArmor armor = (BaseArmor)item; if (armor.Durability != ArmorDurabilityLevel.Regular) items.Add(armor); else if (armor.ProtectionLevel != ArmorProtectionLevel.Regular) items.Add(armor); } } } if (m.Backpack != null) { foreach (Item item in m.Backpack.Items) { if (item != null) { if (item is BaseWeapon && !MagicWeapons) { BaseWeapon weapon = (BaseWeapon) item; if (weapon.AccuracyLevel != WeaponAccuracyLevel.Regular) items.Add(weapon); else if (weapon.DamageLevel != WeaponDamageLevel.Regular) items.Add(weapon); else if (weapon.DurabilityLevel != WeaponDurabilityLevel.Regular) items.Add(weapon); } else if (item is BaseArmor && !MagicArmor) { BaseArmor armor = (BaseArmor) item; if (armor.Durability != ArmorDurabilityLevel.Regular) items.Add(armor); else if (armor.ProtectionLevel != ArmorProtectionLevel.Regular) items.Add(armor); } else if (item is BasePotion && !Potions) items.Add(item); else if (item is EtherealMount && !Mounts) items.Add(item); else if (item is Bandage && !Bandages) items.Add(item); } } } if (!Mounts) { if (m.Mount != null) { IMount mount = m.Mount; mount.Rider = null; if (mount is BaseMount) { if (mount is BaseCreature) { BaseCreature bc = (BaseCreature)mount; bc.ControlTarget = null; bc.ControlOrder = OrderType.Stay; bc.Internalize(); bc.SetControlMaster(null); bc.SummonMaster = null; bc.IsStabled = true; m.Stabled.Add(bc); MountCollection.Add(m.Serial, bc); m.SendMessage(38, "Your mount has been moved to the your stables"); } } } } if (items.Count > 0) m.SendMessage(38, "You had items that did not meet the requirements for the deathmatch and were thus moved to your bank."); foreach (Item item in items) bag.AddItem(item); if (bag.Items.Count > 0) bank.DropItem(bag); else bag.Delete(); #endregion } if (m_EventSupplier != null) m_EventSupplier.OnMoveOver(m); Contestants.Add(m); SpawnMobile(m); if ( m_GiveHorses ) DMHorse.TryGiveHorse(m); if (m.NetState != null) { m.SendMessage(38, "You have joined a deathmatch"); m.SendMessage(38, "You can check the score with \".DMScore\""); } }
public BagOfLeatherArmor( int amount ) { this.Name = "Bag Of Leather Armor"; this.Hue = DimensionsNewAge.Scripts.HueItemConst.HueMagicColorRandom; Bag bagLeatherCyclop = new Bag(); bagLeatherCyclop.DropItem(new StuddedChestCyclop()); bagLeatherCyclop.DropItem(new StuddedArmsCyclop()); bagLeatherCyclop.DropItem(new LeatherCapCyclop()); bagLeatherCyclop.DropItem(new StuddedGlovesCyclop()); bagLeatherCyclop.DropItem(new StuddedGorgetCyclop()); bagLeatherCyclop.DropItem(new StuddedLegsCyclop()); bagLeatherCyclop.DropItem(new CyclopsHides(5000)); bagLeatherCyclop.DropItem(new CyclopsLeather(5000)); bagLeatherCyclop.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideCyclops; this.DropItem(bagLeatherCyclop); Bag bagLeatherDaemon = new Bag(); bagLeatherDaemon.DropItem(new StuddedChestDaemon()); bagLeatherDaemon.DropItem(new StuddedArmsDaemon()); bagLeatherDaemon.DropItem(new LeatherCapDaemon()); bagLeatherDaemon.DropItem(new StuddedGlovesDaemon()); bagLeatherDaemon.DropItem(new StuddedGorgetDaemon()); bagLeatherDaemon.DropItem(new StuddedLegsDaemon()); bagLeatherDaemon.DropItem(new DaemonHides(5000)); bagLeatherDaemon.DropItem(new DaemonLeather(5000)); bagLeatherDaemon.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideDaemon; this.DropItem(bagLeatherDaemon); Bag bagLeatherDragon = new Bag(); bagLeatherDragon.DropItem(new StuddedChestDragon()); bagLeatherDragon.DropItem(new StuddedArmsDragon()); bagLeatherDragon.DropItem(new LeatherCapDragon()); bagLeatherDragon.DropItem(new StuddedGlovesDragon()); bagLeatherDragon.DropItem(new StuddedGorgetDragon()); bagLeatherDragon.DropItem(new StuddedLegsDragon()); bagLeatherDragon.DropItem(new DragonHides(5000)); bagLeatherDragon.DropItem(new DragonLeather(5000)); bagLeatherDragon.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideDragon; this.DropItem(bagLeatherDragon); Bag bagLeatherDragonGreen = new Bag(); bagLeatherDragonGreen.DropItem(new StuddedChestDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedArmsDragonGreen()); bagLeatherDragonGreen.DropItem(new LeatherCapDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedGlovesDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedGorgetDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedLegsDragonGreen()); bagLeatherDragonGreen.DropItem(new DragonGreenHides(5000)); bagLeatherDragonGreen.DropItem(new DragonGreenLeather(5000)); bagLeatherDragonGreen.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideDragonGreen; this.DropItem(bagLeatherDragonGreen); Bag bagLeatherGargoyle = new Bag(); bagLeatherGargoyle.DropItem(new StuddedChestGargoyle()); bagLeatherGargoyle.DropItem(new StuddedArmsGargoyle()); bagLeatherGargoyle.DropItem(new LeatherCapGargoyle()); bagLeatherGargoyle.DropItem(new StuddedGlovesGargoyle()); bagLeatherGargoyle.DropItem(new StuddedGorgetGargoyle()); bagLeatherGargoyle.DropItem(new StuddedLegsGargoyle()); bagLeatherGargoyle.DropItem(new GargoyleHides(5000)); bagLeatherGargoyle.DropItem(new GargoyleLeather(5000)); bagLeatherGargoyle.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideGargoyle; this.DropItem(bagLeatherGargoyle); Bag bagLeatherTerathan = new Bag(); bagLeatherTerathan.DropItem(new StuddedChestTerathan()); bagLeatherTerathan.DropItem(new StuddedArmsTerathan()); bagLeatherTerathan.DropItem(new LeatherCapTerathan()); bagLeatherTerathan.DropItem(new StuddedGlovesTerathan()); bagLeatherTerathan.DropItem(new StuddedGorgetTerathan()); bagLeatherTerathan.DropItem(new StuddedLegsTerathan()); bagLeatherTerathan.DropItem(new TerathanHides(5000)); bagLeatherTerathan.DropItem(new TerathanLeather(5000)); bagLeatherTerathan.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideTerathan; this.DropItem(bagLeatherTerathan); Bag bagLeatherZZ = new Bag(); bagLeatherZZ.DropItem(new StuddedChestZZ()); bagLeatherZZ.DropItem(new StuddedArmsZZ()); bagLeatherZZ.DropItem(new LeatherCapZZ()); bagLeatherZZ.DropItem(new StuddedGlovesZZ()); bagLeatherZZ.DropItem(new StuddedGorgetZZ()); bagLeatherZZ.DropItem(new StuddedLegsZZ()); bagLeatherZZ.DropItem(new ZZHides(5000)); bagLeatherZZ.DropItem(new ZZLeather(5000)); bagLeatherZZ.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideZZ; this.DropItem(bagLeatherZZ); }
private static void FillBankbox( Mobile m ) { BankBox bank = m.BankBox; if ( bank == null ) return; bank.MaxItems = int.MaxValue; // The new AOS bankboxes don't have powerscrolls, they are automatically 'applied': for ( int i = 0; i < PowerScroll.Skills.Length; ++i ) m.Skills[PowerScroll.Skills[i]].Cap = 120.0; m.StatCap = 250; Container cont; Container cont2; // Begin box of money cont = new WoodenBox(); cont.ItemID = 0xE7D; cont.Hue = 0x489; PlaceItemIn( cont, 17, 52, new BankCheck( 1000000 ) ); PlaceItemIn( cont, 28, 52, new BankCheck( 1000000 ) ); PlaceItemIn( cont, 17, 91, new Factions.Silver( 9000 ) ); PlaceItemIn( cont, 34, 91, new Gold( 60000 ) ); PlaceItemIn( bank, 38, 142, cont ); // End box of money // Begin box of Magery Items cont = new WoodenBox(); cont.ItemID = 0xE7D; cont.Name = "Magery Items"; cont.Hue = 1195; // Begin bag of spell casting stuff cont2 = new Backpack(); cont2.Hue = 0x480; cont2.Name = "Spell Casting Stuff"; PlaceItemIn( cont2, 45, 107, new Spellbook( UInt64.MaxValue ) ); PlaceItemIn( cont2, 64, 107, new NecromancerSpellbook( (UInt64) 0xFFFF ) ); PlaceItemIn( cont2, 83, 107, new BookOfChivalry( (UInt64) 0x3FF ) ); PlaceItemIn( cont2, 102, 107, new BookOfBushido() ); //Default ctor = full PlaceItemIn( cont2, 121, 107, new BookOfNinjitsu() ); //Default ctor = full PlaceItemIn( cont2, 102, 149, new SpellweavingSpellbook( (UInt64) 0xFFFF ) ); PlaceItemIn( cont2, 121, 149, new MysticismSpellbook( (UInt64) 0xFFFF ) ); Runebook runebook = new Runebook( 20 ); runebook.CurCharges = runebook.MaxCharges; PlaceItemIn( cont2, 141, 107, runebook ); Item toHue = new BagOfReagents( 5000 ); toHue.Hue = 0x2D; PlaceItemIn( cont2, 45, 128, toHue ); toHue = new BagOfNecroReagents( 3000 ); toHue.Hue = 0x488; PlaceItemIn( cont2, 64, 128, toHue ); toHue = new BagOfMysticReagents( 3000 ); toHue.Hue = 0x48F; PlaceItemIn( cont2, 141, 128, toHue ); for ( int i = 0; i < 6; ++i ) PlaceItemIn( cont2, 45 + ( i * 10 ), 74, new RecallRune() ); PlaceItemIn( cont, 47, 91, cont2 ); // End bag of spell casting stuff // Begin bag of potion kegs cont2 = new Backpack(); cont2.Name = "Various Potion Kegs"; PlaceItemIn( cont2, 45, 149, MakePotionKeg( PotionEffect.CureGreater, 0x2D ) ); PlaceItemIn( cont2, 69, 149, MakePotionKeg( PotionEffect.HealGreater, 0x499 ) ); PlaceItemIn( cont2, 93, 149, MakePotionKeg( PotionEffect.PoisonDeadly, 0x46 ) ); PlaceItemIn( cont2, 117, 149, MakePotionKeg( PotionEffect.RefreshGreater, 0x21 ) ); PlaceItemIn( cont2, 141, 149, MakePotionKeg( PotionEffect.ExplosionGreater, 0x74 ) ); PlaceItemIn( cont2, 93, 82, new Bottle( 1000 ) ); PlaceItemIn( cont, 78, 91, cont2 ); // End bag of potion kegs GoldRing ring = new GoldRing(); ring.Name = "Ring Of Arcane Tactics"; ring.Attributes.CastRecovery = 3; ring.Attributes.CastSpeed = 1; PlaceItemIn( cont, 109, 90, ring ); GoldBracelet bracelet = new GoldBracelet(); bracelet.Name = "Farmer's Band Of Mastery"; bracelet.Attributes.CastRecovery = 3; bracelet.Attributes.CastSpeed = 1; PlaceItemIn( cont, 139, 95, bracelet ); PlaceItemIn( bank, 63, 142, cont ); // End box of Magery Items // Begin bag of ethereals cont = new Backpack(); cont.Hue = 0x490; cont.Name = "Bag Of Ethy's!"; cont.DropItem( new EtherealHorse() ); cont.DropItem( new EtherealOstard() ); cont.DropItem( new EtherealLlama() ); cont.DropItem( new EtherealKirin() ); cont.DropItem( new EtherealUnicorn() ); cont.DropItem( new EtherealRidgeback() ); cont.DropItem( new EtherealSwampDragon() ); cont.DropItem( new EtherealBeetle() ); PlaceItemIn( bank, 43, 124, cont ); // End bag of ethereals // Begin box of Artifacts cont = new WoodenBox(); cont.ItemID = 0xE7D; cont.Hue = 1170; cont.Name = "Artifacts"; // Begin bag of minor artifacts cont2 = new Bag(); cont2.Hue = 1167; cont2.Name = "Minor Artifacts"; cont2.DropItem( new LunaLance() ); cont2.DropItem( new VioletCourage() ); cont2.DropItem( new CavortingClub() ); cont2.DropItem( new CaptainQuacklebushsCutlass() ); cont2.DropItem( new NightsKiss() ); cont2.DropItem( new ShipModelOfTheHMSCape() ); cont2.DropItem( new AdmiralsHeartyRum() ); cont2.DropItem( new CandelabraOfSouls() ); cont2.DropItem( new IolosLute() ); cont2.DropItem( new GwennosHarp() ); cont2.DropItem( new ArcticDeathDealer() ); cont2.DropItem( new EnchantedTitanLegBone() ); cont2.DropItem( new NoxRangersHeavyCrossbow() ); cont2.DropItem( new BlazeOfDeath() ); cont2.DropItem( new DreadPirateHat() ); cont2.DropItem( new BurglarsBandana() ); cont2.DropItem( new GoldBricks() ); cont2.DropItem( new AlchemistsBauble() ); cont2.DropItem( new PhillipsWoodenSteed() ); cont2.DropItem( new PolarBearMask() ); cont2.DropItem( new BowOfTheJukaKing() ); cont2.DropItem( new GlovesOfThePugilist() ); cont2.DropItem( new OrcishVisage() ); cont2.DropItem( new StaffOfPower() ); cont2.DropItem( new ShieldOfInvulnerability() ); cont2.DropItem( new HeartOfTheLion() ); cont2.DropItem( new ColdBlood() ); cont2.DropItem( new GhostShipAnchor() ); cont2.DropItem( new SeahorseStatuette() ); cont2.DropItem( new WrathOfTheDryad() ); cont2.DropItem( new PixieSwatter() ); PlaceItemIn( cont, 17, 83, cont2 ); // End bag of minor artifacts // Begin Bag of Major Artifacts cont2 = new Bag(); cont2.Hue = 1266; cont2.Name = "Major Artifacts"; cont2.DropItem( new GauntletsOfNobility() ); cont2.DropItem( new MidnightBracers() ); cont2.DropItem( new VoiceOfTheFallenKing() ); cont2.DropItem( new OrnateCrownOfTheHarrower() ); cont2.DropItem( new HelmOfInsight() ); cont2.DropItem( new HolyKnightsBreastplate() ); cont2.DropItem( new ArmorOfFortune() ); cont2.DropItem( new TunicOfFire() ); cont2.DropItem( new LeggingsOfBane() ); cont2.DropItem( new ArcaneShield() ); cont2.DropItem( new Aegis() ); cont2.DropItem( new RingOfTheVile() ); cont2.DropItem( new BraceletOfHealth() ); cont2.DropItem( new RingOfTheElements() ); cont2.DropItem( new OrnamentOfTheMagician() ); cont2.DropItem( new DivineCountenance() ); cont2.DropItem( new JackalsCollar() ); cont2.DropItem( new HuntersHeaddress() ); cont2.DropItem( new HatOfTheMagi() ); cont2.DropItem( new ShadowDancerLeggings() ); cont2.DropItem( new SpiritOfTheTotem() ); cont2.DropItem( new BladeOfInsanity() ); cont2.DropItem( new AxeOfTheHeavens() ); cont2.DropItem( new TheBeserkersMaul() ); cont2.DropItem( new Frostbringer() ); cont2.DropItem( new BreathOfTheDead() ); cont2.DropItem( new TheDragonSlayer() ); cont2.DropItem( new BoneCrusher() ); cont2.DropItem( new StaffOfTheMagi() ); cont2.DropItem( new SerpentsFang() ); cont2.DropItem( new LegacyOfTheDreadLord() ); cont2.DropItem( new TheTaskmaster() ); cont2.DropItem( new TheDryadBow() ); cont2.DropItem( new TitansHammer() ); cont2.DropItem( new InquisitorsResolution() ); cont2.DropItem( new BladeOfTheRighteous() ); cont2.DropItem( new ZyronicClaw() ); PlaceItemIn( cont, 90, 83, cont2 ); // End Bag of Major Artifacts // Begin bag of Tokuno minor artifacts cont2 = new Bag(); cont2.Hue = 1281; cont2.Name = "Tokuno Minor Artifacts"; cont2.DropItem( new PeasantsBokuto() ); cont2.DropItem( new DragonNunchaku() ); cont2.DropItem( new TheDestroyer() ); cont2.DropItem( new HanzosBow() ); cont2.DropItem( new Exiler() ); cont2.DropItem( new PilferedDancerFans() ); cont2.DropItem( new DemonForks() ); cont2.DropItem( new BlackLotusHood() ); cont2.DropItem( new DaimyosHelm() ); cont2.DropItem( new ArmsOfTacticalExcellence() ); cont2.DropItem( new AncientFarmersKasa() ); cont2.DropItem( new GlovesOfTheSun() ); cont2.DropItem( new LegsOfStability() ); cont2.DropItem( new AncientSamuraiDo() ); cont2.DropItem( new PigmentsOfTokuno() ); cont2.DropItem( new FluteOfRenewal() ); cont2.DropItem( new AncientUrn() ); cont2.DropItem( new HonorableSwords() ); cont2.DropItem( new ChestOfHeirlooms() ); cont2.DropItem( new TomeOfEnlightenment() ); PlaceItemIn( cont, 53, 83, cont2 ); // End bag of Tokuno minor artifacts // Begin bag of Tokuno major artifacts cont2 = new Bag(); cont2.Hue = 1281; cont2.Name = "Tokuno Major Artifacts"; cont2.DropItem( new DarkenedSky() ); cont2.DropItem( new KasaOfRajin() ); cont2.DropItem( new RuneBeetleCarapace() ); cont2.DropItem( new Stormgrip() ); cont2.DropItem( new SwordOfStampede() ); cont2.DropItem( new SwordsOfProsperity() ); cont2.DropItem( new TheHorselord() ); cont2.DropItem( new TomeOfLostKnowledge() ); cont2.DropItem( new WindsEdge() ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.ParagonGold, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.VioletCouragePurple, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.InvulnerabilityBlue, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.LunaWhite, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.DryadGreen, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.ShadowDancerBlack, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.BerserkerRed, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.NoxGreen, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.RumRed, 50 ) ); cont2.DropItem( new PigmentsOfTokunoMajor( PigmentsType.FireOrange, 50 ) ); PlaceItemIn( cont, 127, 83, cont2 ); // End bag of Tokuno major artifacts // Begin bag of ML Minor artifacts cont2 = new Bag(); cont2.Hue = 1167; cont2.Name = "Minor Artifacts"; cont2.DropItem( new AegisOfGrace() ); cont2.DropItem( new BladeDance() ); cont2.DropItem( new BloodwoodSpirit() ); cont2.DropItem( new Bonesmasher() ); cont2.DropItem( new Boomstick() ); cont2.DropItem( new BrightsightLenses() ); cont2.DropItem( new FeyLeggings() ); cont2.DropItem( new FleshRipper() ); cont2.DropItem( new HelmOfSwiftness() ); cont2.DropItem( new PadsOfTheCuSidhe() ); cont2.DropItem( new QuiverOfRage() ); cont2.DropItem( new QuiverOfTheElements() ); cont2.DropItem( new RaedsGlory() ); cont2.DropItem( new RighteousAnger() ); cont2.DropItem( new RobeOfTheEclipse() ); cont2.DropItem( new RobeOfTheEquinox() ); cont2.DropItem( new SoulSeeker() ); cont2.DropItem( new TalonBite() ); cont2.DropItem( new TotemOfTheVoid() ); cont2.DropItem( new WildfireBow() ); cont2.DropItem( new Windsong() ); PlaceItemIn( cont, 140, 83, cont2 ); // End bag of ML Minor artifacts PlaceItemIn( bank, 63, 106, cont ); // End box of Artifacts // Begin box of General Resources cont = new WoodenBox(); cont.ItemID = 0xE7D; cont.Hue = 1193; cont.Name = "Genereal Resources"; // Begin bag of raw materials cont2 = new Bag(); cont2.Name = "Raw Materials Bag"; PlaceItemIn( cont2, 92, 60, new BarbedLeather( 5000 ) ); PlaceItemIn( cont2, 92, 68, new HornedLeather( 5000 ) ); PlaceItemIn( cont2, 92, 76, new SpinedLeather( 5000 ) ); PlaceItemIn( cont2, 92, 84, new Leather( 5000 ) ); PlaceItemIn( cont2, 30, 118, new Cloth( 5000 ) ); PlaceItemIn( cont2, 30, 84, new Board( 5000 ) ); PlaceItemIn( cont2, 57, 80, new BlankScroll( 500 ) ); PlaceItemIn( cont2, 57, 80, new Bone( 100 ) ); PlaceItemIn( cont2, 30, 35, new DullCopperIngot( 5000 ) ); PlaceItemIn( cont2, 37, 35, new ShadowIronIngot( 5000 ) ); PlaceItemIn( cont2, 44, 35, new CopperIngot( 5000 ) ); PlaceItemIn( cont2, 51, 35, new BronzeIngot( 5000 ) ); PlaceItemIn( cont2, 58, 35, new GoldIngot( 5000 ) ); PlaceItemIn( cont2, 65, 35, new AgapiteIngot( 5000 ) ); PlaceItemIn( cont2, 72, 35, new VeriteIngot( 5000 ) ); PlaceItemIn( cont2, 79, 35, new ValoriteIngot( 5000 ) ); PlaceItemIn( cont2, 86, 35, new IronIngot( 5000 ) ); PlaceItemIn( cont2, 30, 59, new RedScales( 5000 ) ); PlaceItemIn( cont2, 36, 59, new YellowScales( 5000 ) ); PlaceItemIn( cont2, 42, 59, new BlackScales( 5000 ) ); PlaceItemIn( cont2, 48, 59, new GreenScales( 5000 ) ); PlaceItemIn( cont2, 54, 59, new WhiteScales( 5000 ) ); PlaceItemIn( cont2, 60, 59, new BlueScales( 5000 ) ); PlaceItemIn( cont, 40, 93, cont2 ); // End bag of raw materials // Begin bag of tools cont2 = new Bag(); cont2.Name = "Tool Bag"; cont2.DropItem( new TinkerTools( 30000 ) ); cont2.DropItem( new HousePlacementTool() ); cont2.DropItem( new DovetailSaw( 30000 ) ); cont2.DropItem( new Scissors() ); cont2.DropItem( new MortarPestle( 30000 ) ); cont2.DropItem( new ScribesPen( 30000 ) ); cont2.DropItem( new SmithHammer( 30000 ) ); cont2.DropItem( new TwoHandedAxe() ); cont2.DropItem( new FletcherTools( 30000 ) ); cont2.DropItem( new SewingKit( 30000 ) ); cont2.DropItem( new Clippers( 30000 ) ); PlaceItemIn( cont, 90, 93, cont2 ); // End bag of tools // Begin bag of runic tools cont2 = new Backpack(); cont2.Name = "Runic Tool Bag"; PlaceItemIn( cont2, 54, 74, new RunicHammer( CraftResource.DullCopper, 30000 ) ); PlaceItemIn( cont2, 64, 74, new RunicHammer( CraftResource.ShadowIron, 30000 ) ); PlaceItemIn( cont2, 74, 74, new RunicHammer( CraftResource.Copper, 30000 ) ); PlaceItemIn( cont2, 84, 74, new RunicHammer( CraftResource.Bronze, 30000 ) ); PlaceItemIn( cont2, 94, 74, new RunicHammer( CraftResource.Gold, 30000 ) ); PlaceItemIn( cont2, 104, 74, new RunicHammer( CraftResource.Agapite, 30000 ) ); PlaceItemIn( cont2, 114, 74, new RunicHammer( CraftResource.Verite, 30000 ) ); PlaceItemIn( cont2, 124, 74, new RunicHammer( CraftResource.Valorite, 30000 ) ); PlaceItemIn( cont2, 54, 90, new RunicSewingKit( CraftResource.SpinedLeather, 30000 ) ); PlaceItemIn( cont2, 64, 90, new RunicSewingKit( CraftResource.HornedLeather, 30000 ) ); PlaceItemIn( cont2, 74, 90, new RunicSewingKit( CraftResource.BarbedLeather, 30000 ) ); PlaceItemIn( cont2, 54, 107, new RunicFletchersTools( CraftResource.Oak, 30000 ) ); PlaceItemIn( cont2, 69, 107, new RunicFletchersTools( CraftResource.Ash, 30000 ) ); PlaceItemIn( cont2, 83, 107, new RunicFletchersTools( CraftResource.Yew, 30000 ) ); PlaceItemIn( cont2, 97, 107, new RunicFletchersTools( CraftResource.Heartwood, 30000 ) ); PlaceItemIn( cont2, 93, 90, new RunicDovetailSaw( CraftResource.Oak, 30000 ) ); PlaceItemIn( cont2, 102, 90, new RunicDovetailSaw( CraftResource.Ash, 30000 ) ); PlaceItemIn( cont2, 112, 90, new RunicDovetailSaw( CraftResource.Yew, 30000 ) ); PlaceItemIn( cont2, 122, 90, new RunicDovetailSaw( CraftResource.Heartwood, 30000 ) ); PlaceItemIn( cont, 65, 67, cont2 ); // End bag of runic tools // Begin bag of recipes cont2 = new Bag(); cont2.Name = "Bag of Recipes"; cont2.Hue = 2301; for ( int i = 0; i <= 92; i++ ) cont2.DropItem( new RecipeScroll( i ) ); PlaceItemIn( cont, 115, 93, cont2 ); // End bag of recipes // Begin bag of archery ammo cont2 = new Bag(); cont2.Name = "Bag Of Archery Ammo"; PlaceItemIn( cont2, 48, 76, new Arrow( 5000 ) ); PlaceItemIn( cont2, 72, 76, new Bolt( 5000 ) ); PlaceItemIn( cont, 65, 93, cont2 ); // End bag of archery ammo // Begin bag of Wood cont2 = new Bag(); cont2.Hue = 1321; cont2.Name = "Bag of Wood"; cont2.DropItem( new AshBoard( 500 ) ); cont2.DropItem( new YewBoard( 500 ) ); cont2.DropItem( new OakBoard( 500 ) ); cont2.DropItem( new HeartwoodBoard( 500 ) ); cont2.DropItem( new BloodwoodBoard( 500 ) ); cont2.DropItem( new FrostwoodBoard( 500 ) ); PlaceItemIn( cont, 139, 93, cont2 ); // End bag of Wood // Begin Bag of Imbuing Materials cont2 = new Bag(); cont2.Hue = 0x4B; cont2.Name = "Bag of Imbuing Materials"; foreach ( ImbuingResource resource in Enum.GetValues( typeof( ImbuingResource ) ) ) { try { Type type = ScriptCompiler.FindTypeByFullName( String.Format( "Server.Items.{0}", resource.ToString() ) ); Item item = (Item) Activator.CreateInstance( type ); item.Amount = 1000; cont2.DropItem( item ); } catch { } } PlaceItemIn( cont, 16, 67, cont2 ); // End Bag of Imbuing Materials // Begin Bag of Elven Materials cont2 = new Bag(); cont2.Hue = 1195; cont2.Name = "Bag of Elven Materials"; cont2.DropItem( new BarkFragment( 200 ) ); cont2.DropItem( new Blight( 200 ) ); cont2.DropItem( new BlueDiamond( 200 ) ); cont2.DropItem( new BrilliantAmber( 200 ) ); cont2.DropItem( new CapturedEssence( 200 ) ); cont2.DropItem( new Corruption( 200 ) ); cont2.DropItem( new DarkSapphire( 200 ) ); cont2.DropItem( new DiseasedBark( 200 ) ); cont2.DropItem( new DreadHornMane( 200 ) ); cont2.DropItem( new EcruCitrine( 200 ) ); cont2.DropItem( new EnchantedSwitch( 200 ) ); cont2.DropItem( new EyeOfTheTravesty( 200 ) ); cont2.DropItem( new FireRuby( 200 ) ); cont2.DropItem( new GrizzledBones( 200 ) ); cont2.DropItem( new HollowPrism( 200 ) ); cont2.DropItem( new JeweledFiligree( 200 ) ); cont2.DropItem( new LardOfParoxysmus( 200 ) ); cont2.DropItem( new LuminescentFungi( 200 ) ); cont2.DropItem( new Muculent( 200 ) ); cont2.DropItem( new ParasiticPlant( 200 ) ); cont2.DropItem( new PerfectEmerald( 200 ) ); cont2.DropItem( new PristineDreadHorn( 200 ) ); cont2.DropItem( new Putrefaction( 200 ) ); cont2.DropItem( new RunedPrism( 200 ) ); cont2.DropItem( new Scourge( 200 ) ); cont2.DropItem( new SwitchItem( 200 ) ); cont2.DropItem( new Taint( 200 ) ); cont2.DropItem( new Turquoise( 200 ) ); cont2.DropItem( new WhitePearl( 200 ) ); PlaceItemIn( cont, 40, 67, cont2 ); // End Bag of Elven Materials PlaceItemIn( bank, 88, 142, cont ); // End box of General Resources // Begin box of Armor Set Pieces cont = new WoodenBox(); cont.ItemID = 0xE7D; cont.Hue = 1194; cont.Name = "Armor Set Pieces"; // Begin Bag of Juggernaut Set cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Juggernaut Set"; cont2.DropItem( new MalekisHonor() ); cont2.DropItem( new Evocaricus() ); PlaceItemIn( cont, 17, 63, cont2 ); // End Bag of Juggernaut Set // Begin Bag of Hunter Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Hunter Set Armor"; cont2.DropItem( new HunterGloves() ); cont2.DropItem( new HunterLeggings() ); cont2.DropItem( new HunterSleeves() ); cont2.DropItem( new HunterTunic() ); PlaceItemIn( cont, 40, 63, cont2 ); // End Bag of Hunter Set Armor // Begin Bag of Paladin Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Paladin Set Armor"; cont2.DropItem( new PlateOfHonorArms() ); cont2.DropItem( new PlateOfHonorChest() ); cont2.DropItem( new PlateOfHonorGloves() ); cont2.DropItem( new PlateOfHonorGorget() ); cont2.DropItem( new PlateOfHonorHelm() ); cont2.DropItem( new PlateOfHonorLegs() ); PlaceItemIn( cont, 65, 63, cont2 ); // End Bag of Paladin Set Armor // Begin Bag of Necromancer Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Necromancer Set Armor"; cont2.DropItem( new DeathsEssenceGloves() ); cont2.DropItem( new DeathsEssenceHelm() ); cont2.DropItem( new DeathsEssenceLeggings() ); cont2.DropItem( new DeathsEssenceSleeves() ); cont2.DropItem( new DeathsEssenceTunic() ); PlaceItemIn( cont, 90, 63, cont2 ); // End Bag of Necromancer Set Armor // Begin Bag of Acolyte Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Acolyte Set Armor"; cont2.DropItem( new AcolyteGloves() ); cont2.DropItem( new AcolyteLeggings() ); cont2.DropItem( new AcolyteSleeves() ); cont2.DropItem( new AcolyteTunic() ); PlaceItemIn( cont, 115, 63, cont2 ); // End Bag of Acolyte Set Armor // Begin Bag of Marksman Set cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Marksman Set"; cont2.DropItem( new Feathernock() ); cont2.DropItem( new Swiftflight() ); PlaceItemIn( cont, 139, 63, cont2 ); // End Bag of Marksman Set // Begin Bag of Monstrous Interred Grizzle Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Monstrous Interred Grizzle Set Armor"; cont2.DropItem( new GauntletsOfTheGrizzle() ); cont2.DropItem( new GreavesOfTheGrizzle() ); cont2.DropItem( new SkullHelmOfTheGrizzle() ); cont2.DropItem( new TunicOfTheGrizzle() ); cont2.DropItem( new VambracesOfTheGrizzle() ); PlaceItemIn( cont, 17, 89, cont2 ); // End Bag of Monstrous Interred Grizzle Set Armor // Begin Bag of Warrior Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Warrior Set Armor"; cont2.DropItem( new DarkwoodChest() ); cont2.DropItem( new DarkwoodCrown() ); cont2.DropItem( new DarkwoodGauntlets() ); cont2.DropItem( new DarkwoodGorget() ); cont2.DropItem( new DarkwoodPauldrons() ); cont2.DropItem( new DarkwoodLeggings() ); PlaceItemIn( cont, 40, 89, cont2 ); // End Bag of Warrior Set Armor // Begin Bag of Mage Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Mage Set Armor"; cont2.DropItem( new LeafweaveGloves() ); cont2.DropItem( new LeafweaveLeggings() ); cont2.DropItem( new LeafweaveSleeves() ); cont2.DropItem( new LeafweaveTunic() ); PlaceItemIn( cont, 65, 89, cont2 ); // End Bag of Mage Set Armor // Begin Bag of Assassin Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Assassin Set Armor"; cont2.DropItem( new AssassinGloves() ); cont2.DropItem( new AssassinLeggings() ); cont2.DropItem( new AssassinSleeves() ); cont2.DropItem( new AssassinTunic() ); PlaceItemIn( cont, 90, 89, cont2 ); // End Bag of Assassin Set Armor // Begin Bag of Myrmidon Set Armor cont2 = new Bag(); cont2.Hue = 1177; cont2.Name = "Myrmidon Set Armor"; cont2.DropItem( new MyrmidonArms() ); cont2.DropItem( new MyrmidonChest() ); cont2.DropItem( new MyrmidonGloves() ); cont2.DropItem( new MyrmidonGorget() ); cont2.DropItem( new MyrmidonHelm() ); cont2.DropItem( new MyrmidonLegs() ); PlaceItemIn( cont, 115, 89, cont2 ); // End Bag of Myrmidon Set Armor PlaceItemIn( bank, 113, 142, cont ); // End box of Armor Set Pieces PlaceItemIn( bank, 118, 111, new ChargerOfTheFallen() ); }
public BagOfPlate(int amount) { this.Name = "Bag Of Plates"; this.Hue = DimensionsNewAge.Scripts.HueItemConst.HueMagicColorRandom; Bag bagPlateRusty = new Bag(); bagPlateRusty.DropItem(new PlateChestRusty()); bagPlateRusty.DropItem(new PlateArmsRusty()); bagPlateRusty.DropItem(new PlateLegsRusty()); bagPlateRusty.DropItem(new PlateCloseHelmRusty()); bagPlateRusty.DropItem(new PlateGorgetRusty()); bagPlateRusty.DropItem(new PlateGlovesRusty()); bagPlateRusty.DropItem(new SwordRusty()); bagPlateRusty.DropItem(new WarMaceRusty()); bagPlateRusty.DropItem(new KryssRusty()); bagPlateRusty.DropItem(new WarMaceRusty()); bagPlateRusty.DropItem(new HeaterShieldRusty()); bagPlateRusty.DropItem(new BowRusty()); bagPlateRusty.Hue = DimensionsNewAge.Scripts.HueOreConst.HueRusty; this.DropItem(bagPlateRusty); Bag bagPlateOldCopper = new Bag(); bagPlateOldCopper.DropItem(new PlateChestOldCopper()); bagPlateOldCopper.DropItem(new PlateArmsOldCopper()); bagPlateOldCopper.DropItem(new PlateLegsOldCopper()); bagPlateOldCopper.DropItem(new PlateCloseHelmOldCopper()); bagPlateOldCopper.DropItem(new PlateGorgetOldCopper()); bagPlateOldCopper.DropItem(new PlateGlovesOldCopper()); bagPlateOldCopper.DropItem(new SwordOldCopper()); bagPlateOldCopper.DropItem(new WarMaceOldCopper()); bagPlateOldCopper.DropItem(new KryssOldCopper()); bagPlateOldCopper.DropItem(new WarMaceOldCopper()); bagPlateOldCopper.DropItem(new HeaterShieldOldCopper()); bagPlateOldCopper.DropItem(new BowOldCopper()); bagPlateOldCopper.Hue = DimensionsNewAge.Scripts.HueOreConst.HueOldCopper; this.DropItem(bagPlateOldCopper); Bag bagPlateDullCopper = new Bag(); bagPlateDullCopper.DropItem(new PlateChestDullCopper()); bagPlateDullCopper.DropItem(new PlateArmsDullCopper()); bagPlateDullCopper.DropItem(new PlateLegsDullCopper()); bagPlateDullCopper.DropItem(new PlateCloseHelmDullCopper()); bagPlateDullCopper.DropItem(new PlateGorgetDullCopper()); bagPlateDullCopper.DropItem(new PlateGlovesDullCopper()); bagPlateDullCopper.DropItem(new SwordDullCopper()); bagPlateDullCopper.DropItem(new WarMaceDullCopper()); bagPlateDullCopper.DropItem(new KryssDullCopper()); bagPlateDullCopper.DropItem(new WarMaceDullCopper()); bagPlateDullCopper.DropItem(new HeaterShieldDullCopper()); bagPlateDullCopper.DropItem(new BowDullCopper()); bagPlateDullCopper.Hue = DimensionsNewAge.Scripts.HueOreConst.HueDullCopper; this.DropItem(bagPlateDullCopper); Bag bagPlateRuby = new Bag(); bagPlateRuby.DropItem(new PlateChestRuby()); bagPlateRuby.DropItem(new PlateArmsRuby()); bagPlateRuby.DropItem(new PlateLegsRuby()); bagPlateRuby.DropItem(new PlateCloseHelmRuby()); bagPlateRuby.DropItem(new PlateGorgetRuby()); bagPlateRuby.DropItem(new PlateGlovesRuby()); bagPlateRuby.DropItem(new SwordRuby()); bagPlateRuby.DropItem(new WarMaceRuby()); bagPlateRuby.DropItem(new KryssRuby()); bagPlateRuby.DropItem(new WarMaceRuby()); bagPlateRuby.DropItem(new HeaterShieldRuby()); bagPlateRuby.DropItem(new BowRuby()); bagPlateRuby.Hue = DimensionsNewAge.Scripts.HueOreConst.HueRuby; this.DropItem(bagPlateRuby); Bag bagPlateCopper = new Bag(); bagPlateCopper.DropItem(new PlateChestCopper()); bagPlateCopper.DropItem(new PlateArmsCopper()); bagPlateCopper.DropItem(new PlateLegsCopper()); bagPlateCopper.DropItem(new PlateCloseHelmCopper()); bagPlateCopper.DropItem(new PlateGorgetCopper()); bagPlateCopper.DropItem(new PlateGlovesCopper()); bagPlateCopper.DropItem(new SwordCopper()); bagPlateCopper.DropItem(new WarMaceCopper()); bagPlateCopper.DropItem(new KryssCopper()); bagPlateCopper.DropItem(new WarMaceCopper()); bagPlateCopper.DropItem(new HeaterShieldCopper()); bagPlateCopper.DropItem(new BowCopper()); bagPlateCopper.Hue = DimensionsNewAge.Scripts.HueOreConst.HueCopper; this.DropItem(bagPlateCopper); Bag bagPlateBronze = new Bag(); bagPlateBronze.DropItem(new PlateChestBronze()); bagPlateBronze.DropItem(new PlateArmsBronze()); bagPlateBronze.DropItem(new PlateLegsBronze()); bagPlateBronze.DropItem(new PlateCloseHelmBronze()); bagPlateBronze.DropItem(new PlateGorgetBronze()); bagPlateBronze.DropItem(new PlateGlovesBronze()); bagPlateBronze.DropItem(new SwordBronze()); bagPlateBronze.DropItem(new WarMaceBronze()); bagPlateBronze.DropItem(new KryssBronze()); bagPlateBronze.DropItem(new WarMaceBronze()); bagPlateBronze.DropItem(new HeaterShieldBronze()); bagPlateBronze.DropItem(new BowBronze()); bagPlateBronze.Hue = DimensionsNewAge.Scripts.HueOreConst.HueBronze; this.DropItem(bagPlateBronze); Bag bagPlateShadowIron = new Bag(); bagPlateShadowIron.DropItem(new PlateChestShadow()); bagPlateShadowIron.DropItem(new PlateArmsShadow()); bagPlateShadowIron.DropItem(new PlateLegsShadow()); bagPlateShadowIron.DropItem(new PlateCloseHelmShadow()); bagPlateShadowIron.DropItem(new PlateGorgetShadow()); bagPlateShadowIron.DropItem(new PlateGlovesShadow()); bagPlateShadowIron.DropItem(new SwordShadow()); bagPlateShadowIron.DropItem(new WarMaceShadow()); bagPlateShadowIron.DropItem(new KryssShadow()); bagPlateShadowIron.DropItem(new WarMaceShadow()); bagPlateShadowIron.DropItem(new HeaterShieldShadow()); bagPlateShadowIron.DropItem(new BowShadow()); bagPlateShadowIron.Hue = DimensionsNewAge.Scripts.HueOreConst.HueShadow; this.DropItem(bagPlateShadowIron); Bag bagPlateSilver = new Bag(); bagPlateSilver.DropItem(new PlateChestSilver()); bagPlateSilver.DropItem(new PlateArmsSilver()); bagPlateSilver.DropItem(new PlateLegsSilver()); bagPlateSilver.DropItem(new PlateCloseHelmSilver()); bagPlateSilver.DropItem(new PlateGorgetSilver()); bagPlateSilver.DropItem(new PlateGlovesSilver()); bagPlateSilver.DropItem(new SwordSilver()); bagPlateSilver.DropItem(new WarMaceSilver()); bagPlateSilver.DropItem(new KryssSilver()); bagPlateSilver.DropItem(new WarMaceSilver()); bagPlateSilver.DropItem(new HeaterShieldSilver()); bagPlateSilver.DropItem(new BowSilver()); bagPlateSilver.Hue = DimensionsNewAge.Scripts.HueOreConst.HueSilver; this.DropItem(bagPlateSilver); Bag bagPlateMercury = new Bag(); bagPlateMercury.DropItem(new PlateChestMercury()); bagPlateMercury.DropItem(new PlateArmsMercury()); bagPlateMercury.DropItem(new PlateLegsMercury()); bagPlateMercury.DropItem(new PlateCloseHelmMercury()); bagPlateMercury.DropItem(new PlateGorgetMercury()); bagPlateMercury.DropItem(new PlateGlovesMercury()); bagPlateMercury.DropItem(new SwordMercury()); bagPlateMercury.DropItem(new WarMaceMercury()); bagPlateMercury.DropItem(new KryssMercury()); bagPlateMercury.DropItem(new WarMaceMercury()); bagPlateMercury.DropItem(new HeaterShieldMercury()); bagPlateMercury.DropItem(new BowMercury()); bagPlateMercury.Hue = DimensionsNewAge.Scripts.HueOreConst.HueMercury; this.DropItem(bagPlateMercury); Bag bagPlateRose = new Bag(); bagPlateRose.DropItem(new PlateChestRose()); bagPlateRose.DropItem(new PlateArmsRose()); bagPlateRose.DropItem(new PlateLegsRose()); bagPlateRose.DropItem(new PlateCloseHelmRose()); bagPlateRose.DropItem(new PlateGorgetRose()); bagPlateRose.DropItem(new PlateGlovesRose()); bagPlateRose.DropItem(new SwordRose()); bagPlateRose.DropItem(new WarMaceRose()); bagPlateRose.DropItem(new KryssRose()); bagPlateRose.DropItem(new WarMaceRose()); bagPlateRose.DropItem(new HeaterShieldRose()); bagPlateRose.DropItem(new BowRose()); bagPlateRose.Hue = DimensionsNewAge.Scripts.HueOreConst.HueRose; this.DropItem(bagPlateRose); Bag bagPlateGold = new Bag(); bagPlateGold.DropItem(new PlateChestGold()); bagPlateGold.DropItem(new PlateArmsGold()); bagPlateGold.DropItem(new PlateLegsGold()); bagPlateGold.DropItem(new PlateCloseHelmGold()); bagPlateGold.DropItem(new PlateGorgetGold()); bagPlateGold.DropItem(new PlateGlovesGold()); bagPlateGold.DropItem(new SwordGold()); bagPlateGold.DropItem(new WarMaceGold()); bagPlateGold.DropItem(new KryssGold()); bagPlateGold.DropItem(new WarMaceGold()); bagPlateGold.DropItem(new HeaterShieldGold()); bagPlateGold.DropItem(new BowGold()); bagPlateGold.Hue = DimensionsNewAge.Scripts.HueOreConst.HueGold; this.DropItem(bagPlateGold); Bag bagPlateAgapite = new Bag(); bagPlateAgapite.DropItem(new PlateChestAgapite()); bagPlateAgapite.DropItem(new PlateArmsAgapite()); bagPlateAgapite.DropItem(new PlateLegsAgapite()); bagPlateAgapite.DropItem(new PlateCloseHelmAgapite()); bagPlateAgapite.DropItem(new PlateGorgetAgapite()); bagPlateAgapite.DropItem(new PlateGlovesAgapite()); bagPlateAgapite.DropItem(new SwordAgapite()); bagPlateAgapite.DropItem(new WarMaceAgapite()); bagPlateAgapite.DropItem(new KryssAgapite()); bagPlateAgapite.DropItem(new WarMaceAgapite()); bagPlateAgapite.DropItem(new HeaterShieldAgapite()); bagPlateAgapite.DropItem(new BowAgapite()); bagPlateAgapite.Hue = DimensionsNewAge.Scripts.HueOreConst.HueAgapite; this.DropItem(bagPlateAgapite); Bag bagPlateVerite = new Bag(); bagPlateVerite.DropItem(new PlateChestVerite()); bagPlateVerite.DropItem(new PlateArmsVerite()); bagPlateVerite.DropItem(new PlateLegsVerite()); bagPlateVerite.DropItem(new PlateCloseHelmVerite()); bagPlateVerite.DropItem(new PlateGorgetVerite()); bagPlateVerite.DropItem(new PlateGlovesVerite()); bagPlateVerite.DropItem(new SwordVerite()); bagPlateVerite.DropItem(new WarMaceVerite()); bagPlateVerite.DropItem(new KryssVerite()); bagPlateVerite.DropItem(new WarMaceVerite()); bagPlateVerite.DropItem(new HeaterShieldVerite()); bagPlateVerite.DropItem(new BowVerite()); bagPlateVerite.Hue = DimensionsNewAge.Scripts.HueOreConst.HueVerite; this.DropItem(bagPlateVerite); Bag bagPlatePlutonio = new Bag(); bagPlatePlutonio.DropItem(new PlateChestPlutonio()); bagPlatePlutonio.DropItem(new PlateArmsPlutonio()); bagPlatePlutonio.DropItem(new PlateLegsPlutonio()); bagPlatePlutonio.DropItem(new PlateCloseHelmPlutonio()); bagPlatePlutonio.DropItem(new PlateGorgetPlutonio()); bagPlatePlutonio.DropItem(new PlateGlovesPlutonio()); bagPlatePlutonio.DropItem(new SwordPlutonio()); bagPlatePlutonio.DropItem(new WarMacePlutonio()); bagPlatePlutonio.DropItem(new KryssPlutonio()); bagPlatePlutonio.DropItem(new WarMacePlutonio()); bagPlatePlutonio.DropItem(new HeaterShieldPlutonio()); bagPlatePlutonio.DropItem(new BowPlutonio()); bagPlatePlutonio.Hue = DimensionsNewAge.Scripts.HueOreConst.HuePlutonio; this.DropItem(bagPlatePlutonio); Bag bagPlateBloodRock = new Bag(); bagPlateBloodRock.DropItem(new PlateChestBloodRock()); bagPlateBloodRock.DropItem(new PlateArmsBloodRock()); bagPlateBloodRock.DropItem(new PlateLegsBloodRock()); bagPlateBloodRock.DropItem(new PlateCloseHelmBloodRock()); bagPlateBloodRock.DropItem(new PlateGorgetBloodRock()); bagPlateBloodRock.DropItem(new PlateGlovesBloodRock()); bagPlateBloodRock.DropItem(new SwordBloodRock()); bagPlateBloodRock.DropItem(new WarMaceBloodRock()); bagPlateBloodRock.DropItem(new KryssBloodRock()); bagPlateBloodRock.DropItem(new WarMaceBloodRock()); bagPlateBloodRock.DropItem(new HeaterShieldBloodRock()); bagPlateBloodRock.DropItem(new BowBloodRock()); bagPlateBloodRock.Hue = DimensionsNewAge.Scripts.HueOreConst.HueBloodRock; this.DropItem(bagPlateBloodRock); Bag bagPlateValorite = new Bag(); bagPlateValorite.DropItem(new PlateChestValorite()); bagPlateValorite.DropItem(new PlateArmsValorite()); bagPlateValorite.DropItem(new PlateLegsValorite()); bagPlateValorite.DropItem(new PlateCloseHelmValorite()); bagPlateValorite.DropItem(new PlateGorgetValorite()); bagPlateValorite.DropItem(new PlateGlovesValorite()); bagPlateValorite.DropItem(new SwordValorite()); bagPlateValorite.DropItem(new WarMaceValorite()); bagPlateValorite.DropItem(new KryssValorite()); bagPlateValorite.DropItem(new WarMaceValorite()); bagPlateValorite.DropItem(new HeaterShieldValorite()); bagPlateValorite.DropItem(new BowValorite()); bagPlateValorite.Hue = DimensionsNewAge.Scripts.HueOreConst.HueValorite; this.DropItem(bagPlateValorite); Bag bagPlateBlackRock = new Bag(); bagPlateBlackRock.DropItem(new PlateChestBlackRock()); bagPlateBlackRock.DropItem(new PlateArmsBlackRock()); bagPlateBlackRock.DropItem(new PlateLegsBlackRock()); bagPlateBlackRock.DropItem(new PlateCloseHelmBlackRock()); bagPlateBlackRock.DropItem(new PlateGorgetBlackRock()); bagPlateBlackRock.DropItem(new PlateGlovesBlackRock()); bagPlateBlackRock.DropItem(new SwordBlackRock()); bagPlateBlackRock.DropItem(new WarMaceBlackRock()); bagPlateBlackRock.DropItem(new KryssBlackRock()); bagPlateBlackRock.DropItem(new WarMaceBlackRock()); bagPlateBlackRock.DropItem(new HeaterShieldBlackRock()); bagPlateBlackRock.DropItem(new BowBlackRock()); bagPlateBlackRock.Hue = DimensionsNewAge.Scripts.HueOreConst.HueBlackRock; this.DropItem(bagPlateBlackRock); Bag bagPlateMytheril = new Bag(); bagPlateMytheril.DropItem(new PlateChestMytheril()); bagPlateMytheril.DropItem(new PlateArmsMytheril()); bagPlateMytheril.DropItem(new PlateLegsMytheril()); bagPlateMytheril.DropItem(new PlateCloseHelmMytheril()); bagPlateMytheril.DropItem(new PlateGorgetMytheril()); bagPlateMytheril.DropItem(new PlateGlovesMytheril()); bagPlateMytheril.DropItem(new SwordMytheril()); bagPlateMytheril.DropItem(new WarMaceMytheril()); bagPlateMytheril.DropItem(new KryssMytheril()); bagPlateMytheril.DropItem(new WarMaceMytheril()); bagPlateMytheril.DropItem(new HeaterShieldMytheril()); bagPlateMytheril.DropItem(new BowMytheril()); bagPlateMytheril.Hue = DimensionsNewAge.Scripts.HueOreConst.HueMytheril; this.DropItem(bagPlateMytheril); Bag bagPlateAqua = new Bag(); bagPlateAqua.DropItem(new PlateChestAqua()); bagPlateAqua.DropItem(new PlateArmsAqua()); bagPlateAqua.DropItem(new PlateLegsAqua()); bagPlateAqua.DropItem(new PlateCloseHelmAqua()); bagPlateAqua.DropItem(new PlateGorgetAqua()); bagPlateAqua.DropItem(new PlateGlovesAqua()); bagPlateAqua.DropItem(new SwordAqua()); bagPlateAqua.DropItem(new WarMaceAqua()); bagPlateAqua.DropItem(new KryssAqua()); bagPlateAqua.DropItem(new WarMaceAqua()); bagPlateAqua.DropItem(new HeaterShieldAqua()); bagPlateAqua.DropItem(new BowAqua()); bagPlateAqua.Hue = DimensionsNewAge.Scripts.HueOreConst.HueAqua; this.DropItem(bagPlateAqua); }
public Bag PackBagofRegs( int amount ) { Bag bag = new Bag(); PackItem( bag ); bag.DropItem( new BlackPearl ( amount ) ); bag.DropItem( new Bloodmoss ( amount ) ); bag.DropItem( new Garlic ( amount ) ); bag.DropItem( new Ginseng ( amount ) ); bag.DropItem( new MandrakeRoot ( amount ) ); bag.DropItem( new Nightshade ( amount ) ); bag.DropItem( new SulfurousAsh ( amount ) ); bag.DropItem( new SpidersSilk ( amount ) ); return bag; }
private static void AddPowerScrolls( BankBox bank ) { Bag bag = new Bag(); for ( int i = 0; i < PowerScroll.Skills.Count; ++i ) bag.DropItem( new PowerScroll( PowerScroll.Skills[i], 120.0 ) ); bag.DropItem( new StatCapScroll( 250 ) ); bank.DropItem( bag ); }
public StarterBagWarriorGargoyle() { Container cont; this.Name = "Starter Bag - Warrior"; cont = new Bag(); cont.Name = "PowerScroll Bag"; PlaceItemIn(cont, 30, 35, new PowerScroll(SkillName.Fencing, 105)); PlaceItemIn(cont, 60, 35, new PowerScroll(SkillName.Swords, 105)); PlaceItemIn(cont, 90, 35, new PowerScroll(SkillName.Macing, 105)); PlaceItemIn(cont, 30, 68, new PowerScroll(SkillName.Archery, 105)); PlaceItemIn(cont, 45, 68, new PowerScroll(SkillName.Parry, 105)); PlaceItemIn(cont, 75, 68, new PowerScroll(SkillName.Chivalry, 105)); PlaceItemIn(cont, 90, 68, new PowerScroll(SkillName.Tactics, 105)); PlaceItemIn(cont, 30, 118, new PowerScroll(SkillName.Anatomy, 105)); PlaceItemIn(cont, 60, 118, new PowerScroll(SkillName.Healing, 105)); PlaceItemIn(this, 0, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { cont.Items[i].LootType = LootType.Blessed; } cont = new Bag(); cont.Name = "Gear Bag"; // Armor PlaceItemIn(cont, 30, 35, new GargishPlateChest()); PlaceItemIn(cont, 90, 35, new GargishPlateArms()); PlaceItemIn(cont, 30, 68, new GargishPlateKilt()); PlaceItemIn(cont, 45, 68, new GargishPlateWingArmor()); PlaceItemIn(cont, 45, 68, new GargishRobe()); // Jewelry PlaceItemIn(cont, 90, 68, new GargishNecklace()); PlaceItemIn(cont, 30, 118, new GargishEarrings()); PlaceItemIn(cont, 60, 118, new GargishRing()); PlaceItemIn(cont, 90, 100, new GargishBracelet()); PlaceItemIn(this, 50, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { BaseArmor armor = cont.Items[i] as BaseArmor; BaseJewel jewel = cont.Items[i] as BaseJewel; BaseClothing clothes = cont.Items[i] as BaseClothing; if (jewel != null) { jewel.Attributes.LowerRegCost = 12; jewel.Attributes.AttackChance = 5; jewel.Attributes.DefendChance = 5; jewel.LootType = LootType.Blessed; jewel.Hue = 1161; jewel.Insured = false; jewel.TimesImbued = 50; } else if (armor != null) { armor.Attributes.LowerRegCost = 12; armor.ArmorAttributes.MageArmor = 1; armor.LootType = LootType.Blessed; armor.Hue = 1157; armor.Insured = false; armor.TimesImbued = 50; armor.StrRequirement = 0; armor.Weight = 0; } else if (clothes != null) { clothes.Attributes.LowerRegCost = 12; clothes.LootType = LootType.Blessed; clothes.TimesImbued = 50; } } cont = new Bag(); cont.Name = "Weapon Bag"; // Weapons PlaceItemIn(cont, 30, 35, new Cyclone()); PlaceItemIn(cont, 45, 68, new GargishKryss()); PlaceItemIn(cont, 75, 68, new GargishBattleAxe()); PlaceItemIn(cont, 90, 68, new GargishGnarledStaff()); PlaceItemIn(cont, 30, 118, new BookOfChivalry((UInt64)0x3FF)); PlaceItemIn(cont, 60, 118, new BookOfNinjitsu()); PlaceItemIn(this, 100, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { BaseThrown thrown = cont.Items[i] as BaseThrown; BaseMeleeWeapon melee = cont.Items[i] as BaseMeleeWeapon; if (thrown != null) { thrown.Attributes.WeaponSpeed = 35; thrown.Attributes.RegenHits = 20; thrown.TimesImbued = 50; thrown.DurabilityLevel = WeaponDurabilityLevel.Regular; thrown.Hue = 1161; thrown.LootType = LootType.Blessed; thrown.TimesImbued = 50; } else if (melee != null) { melee.Attributes.WeaponSpeed = 35; melee.Attributes.RegenHits = 20; melee.TimesImbued = 50; melee.DurabilityLevel = WeaponDurabilityLevel.Regular; melee.Hue = 1161; melee.LootType = LootType.Blessed; melee.TimesImbued = 50; } } }
public void makeready(Mobile who) { PlayerMobile c = (PlayerMobile)who; if (!who.Alive) { who.Resurrect(); } Container bp = c.Backpack; Container bankbag = new Bag(); bankbag.Hue = 63; BankBox bank = c.BankBox; Item oncurs = c.Holding; if (oncurs != null) { bp.DropItem(oncurs); } c.SendMessage("You have 10 seconds until the duel begins"); c.SendMessage(63, "After one of you dies, both of you will be teleported out"); c.Criminal = true; c.CurePoison(c); c.Blessed = true; c.Frozen = true; c.Hits = c.HitsMax; c.Mana = c.ManaMax; c.Stam = c.StamMax; c.StatMods.Clear(); if (bp != null) { Item toDisarm = c.FindItemOnLayer(Layer.OneHanded); if (toDisarm == null || !toDisarm.Movable) { toDisarm = c.FindItemOnLayer(Layer.TwoHanded); } if (toDisarm != null) { bp.DropItem(toDisarm); } if (c.Mount != null) { IMount mount = c.Mount; mount.Rider = null; if (mount is BaseMount) { BaseMount oldMount = (BaseMount)mount; oldMount.Map = Map.Internal; c.TempMount = oldMount; } } while ((BasePotion)bp.FindItemByType(typeof(BasePotion)) != null) { BasePotion potion = (BasePotion)bp.FindItemByType(typeof(BasePotion)); bankbag.DropItem(potion); } while ((EtherealMount)bp.FindItemByType(typeof(EtherealMount)) != null) { EtherealMount mount = (EtherealMount)bp.FindItemByType(typeof(EtherealMount)); bankbag.DropItem(mount); } /*Item[] weps = bp.FindItemsByType( typeof( BaseWeapon ) ); * for ( int i = 0; i < weps.Length; ++i ) * { * Item item = (Item)weps[i]; * BaseWeapon weapon = item as BaseWeapon; * if( weapon.DamageLevel > WeaponDamageLevel.Regular ) * bankbag.DropItem( item ); * }*/ if (bankbag.Items.Count > 0) { bank.DropItem(bankbag); } else { bankbag.Delete(); } } }
public BagOfLeatherArmor(int amount) { this.Name = "Bag Of Leather Armor"; this.Hue = DimensionsNewAge.Scripts.HueItemConst.HueMagicColorRandom; Bag bagLeatherCyclop = new Bag(); bagLeatherCyclop.DropItem(new StuddedChestCyclop()); bagLeatherCyclop.DropItem(new StuddedArmsCyclop()); bagLeatherCyclop.DropItem(new LeatherCapCyclop()); bagLeatherCyclop.DropItem(new StuddedGlovesCyclop()); bagLeatherCyclop.DropItem(new StuddedGorgetCyclop()); bagLeatherCyclop.DropItem(new StuddedLegsCyclop()); bagLeatherCyclop.DropItem(new CyclopsHides(5000)); bagLeatherCyclop.DropItem(new CyclopsLeather(5000)); bagLeatherCyclop.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideCyclops; this.DropItem(bagLeatherCyclop); Bag bagLeatherDaemon = new Bag(); bagLeatherDaemon.DropItem(new StuddedChestDaemon()); bagLeatherDaemon.DropItem(new StuddedArmsDaemon()); bagLeatherDaemon.DropItem(new LeatherCapDaemon()); bagLeatherDaemon.DropItem(new StuddedGlovesDaemon()); bagLeatherDaemon.DropItem(new StuddedGorgetDaemon()); bagLeatherDaemon.DropItem(new StuddedLegsDaemon()); bagLeatherDaemon.DropItem(new DaemonHides(5000)); bagLeatherDaemon.DropItem(new DaemonLeather(5000)); bagLeatherDaemon.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideDaemon; this.DropItem(bagLeatherDaemon); Bag bagLeatherDragon = new Bag(); bagLeatherDragon.DropItem(new StuddedChestDragon()); bagLeatherDragon.DropItem(new StuddedArmsDragon()); bagLeatherDragon.DropItem(new LeatherCapDragon()); bagLeatherDragon.DropItem(new StuddedGlovesDragon()); bagLeatherDragon.DropItem(new StuddedGorgetDragon()); bagLeatherDragon.DropItem(new StuddedLegsDragon()); bagLeatherDragon.DropItem(new DragonHides(5000)); bagLeatherDragon.DropItem(new DragonLeather(5000)); bagLeatherDragon.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideDragon; this.DropItem(bagLeatherDragon); Bag bagLeatherDragonGreen = new Bag(); bagLeatherDragonGreen.DropItem(new StuddedChestDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedArmsDragonGreen()); bagLeatherDragonGreen.DropItem(new LeatherCapDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedGlovesDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedGorgetDragonGreen()); bagLeatherDragonGreen.DropItem(new StuddedLegsDragonGreen()); bagLeatherDragonGreen.DropItem(new DragonGreenHides(5000)); bagLeatherDragonGreen.DropItem(new DragonGreenLeather(5000)); bagLeatherDragonGreen.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideDragonGreen; this.DropItem(bagLeatherDragonGreen); Bag bagLeatherGargoyle = new Bag(); bagLeatherGargoyle.DropItem(new StuddedChestGargoyle()); bagLeatherGargoyle.DropItem(new StuddedArmsGargoyle()); bagLeatherGargoyle.DropItem(new LeatherCapGargoyle()); bagLeatherGargoyle.DropItem(new StuddedGlovesGargoyle()); bagLeatherGargoyle.DropItem(new StuddedGorgetGargoyle()); bagLeatherGargoyle.DropItem(new StuddedLegsGargoyle()); bagLeatherGargoyle.DropItem(new GargoyleHides(5000)); bagLeatherGargoyle.DropItem(new GargoyleLeather(5000)); bagLeatherGargoyle.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideGargoyle; this.DropItem(bagLeatherGargoyle); Bag bagLeatherTerathan = new Bag(); bagLeatherTerathan.DropItem(new StuddedChestTerathan()); bagLeatherTerathan.DropItem(new StuddedArmsTerathan()); bagLeatherTerathan.DropItem(new LeatherCapTerathan()); bagLeatherTerathan.DropItem(new StuddedGlovesTerathan()); bagLeatherTerathan.DropItem(new StuddedGorgetTerathan()); bagLeatherTerathan.DropItem(new StuddedLegsTerathan()); bagLeatherTerathan.DropItem(new TerathanHides(5000)); bagLeatherTerathan.DropItem(new TerathanLeather(5000)); bagLeatherTerathan.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideTerathan; this.DropItem(bagLeatherTerathan); Bag bagLeatherZZ = new Bag(); bagLeatherZZ.DropItem(new StuddedChestZZ()); bagLeatherZZ.DropItem(new StuddedArmsZZ()); bagLeatherZZ.DropItem(new LeatherCapZZ()); bagLeatherZZ.DropItem(new StuddedGlovesZZ()); bagLeatherZZ.DropItem(new StuddedGorgetZZ()); bagLeatherZZ.DropItem(new StuddedLegsZZ()); bagLeatherZZ.DropItem(new ZZHides(5000)); bagLeatherZZ.DropItem(new ZZLeather(5000)); bagLeatherZZ.Hue = DimensionsNewAge.Scripts.HueHideConst.HueHideZZ; this.DropItem(bagLeatherZZ); }
public StarterBagMage() { Container cont; this.Name = "Starter Bag - Mage"; cont = new Bag(); cont.Name = "PowerScrolls Bag"; // Power Scrolls PlaceItemIn(cont, 30, 35, new PowerScroll(SkillName.Meditation, 105)); PlaceItemIn(cont, 60, 35, new PowerScroll(SkillName.Magery, 105)); PlaceItemIn(cont, 90, 35, new PowerScroll(SkillName.EvalInt, 105)); PlaceItemIn(cont, 30, 68, new PowerScroll(SkillName.Necromancy, 105)); PlaceItemIn(cont, 45, 68, new PowerScroll(SkillName.SpiritSpeak, 105)); PlaceItemIn(this, 0, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { cont.Items[i].LootType = LootType.Blessed; } cont = new Bag(); cont.Name = "Gear Bag"; // Armor PlaceItemIn(cont, 30, 35, new LeatherArms()); PlaceItemIn(cont, 60, 35, new LeatherGloves()); PlaceItemIn(cont, 90, 35, new LeatherCap()); PlaceItemIn(cont, 30, 68, new LeatherChest()); PlaceItemIn(cont, 45, 68, new LeatherLegs()); // Jewelry PlaceItemIn(cont, 75, 68, new GoldNecklace()); PlaceItemIn(cont, 90, 68, new GoldEarrings()); PlaceItemIn(cont, 30, 118, new GoldBracelet()); PlaceItemIn(cont, 60, 118, new GoldRing()); PlaceItemIn(this, 50, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { BaseArmor armor = cont.Items[i] as BaseArmor; BaseJewel jewel = cont.Items[i] as BaseJewel; if (armor != null) { armor.Attributes.LowerRegCost = 12; armor.LootType = LootType.Newbied; armor.Hue = 1154; armor.Insured = false; armor.TimesImbued = 50; armor.LootType = LootType.Blessed; armor.Weight = 0; } else if (jewel != null) { jewel.Attributes.LowerRegCost = 12; jewel.Attributes.RegenMana = 1; jewel.LootType = LootType.Newbied; jewel.Hue = 1152; jewel.Insured = false; jewel.TimesImbued = 50; jewel.LootType = LootType.Blessed; } } cont = new Bag(); cont.Name = "Book Bag"; PlaceItemIn(cont, 30, 35, new Spellbook()); PlaceItemIn(cont, 60, 35, new NecromancerSpellbook()); Runebook runebook = new Runebook(5); runebook.CurCharges = runebook.MaxCharges; PlaceItemIn(cont, 90, 35, runebook); for (int i = 0; i < 3; ++i) { PlaceItemIn(cont, 45 + (i * 10), 75, new RecallRune()); } PlaceItemIn(this, 100, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { Spellbook spellBook = cont.Items[i] as Spellbook; if (spellBook != null) { spellBook.SkillBonuses.SetValues(0, SkillName.Meditation, 100); spellBook.Attributes.CastSpeed = 1; spellBook.Hue = 1152; } } }
public override bool OnBeforeDeath() { SkeletalKnight rm = new SkeletalKnight(); rm.Team = this.Team; rm.MoveToWorld( this.Location, this.Map ); Effects.SendLocationEffect( Location,Map, 0x3709, 13, 0x3B2, 0 ); Container bag = new Bag(); switch ( Utility.Random( 9 )) { case 0: bag.DropItem( new Amber() ); break; case 1: bag.DropItem( new Amethyst() ); break; case 2: bag.DropItem( new Citrine() ); break; case 3: bag.DropItem( new Diamond() ); break; case 4: bag.DropItem( new Emerald() ); break; case 5: bag.DropItem( new Ruby() ); break; case 6: bag.DropItem( new Sapphire() ); break; case 7: bag.DropItem( new StarSapphire() ); break; case 8: bag.DropItem( new Tourmaline() ); break; } switch ( Utility.Random( 8 )) { case 0: bag.DropItem( new SpidersSilk( 3 ) ); break; case 1: bag.DropItem( new BlackPearl( 3 ) ); break; case 2: bag.DropItem( new Bloodmoss( 3 ) ); break; case 3: bag.DropItem( new Garlic( 3 ) ); break; case 4: bag.DropItem( new MandrakeRoot( 3 ) ); break; case 5: bag.DropItem( new Nightshade( 3 ) ); break; case 6: bag.DropItem( new SulfurousAsh( 3 ) ); break; case 7: bag.DropItem( new Ginseng( 3 ) ); break; } bag.DropItem( new Gold( 1000, 1500 )); rm.AddItem( bag ); // TODO: need to drop thie 3 MID loot here too // Category 3 MID //PackMagicItem( 1, 2, 0.10 ); //PackMagicItem( 1, 2, 0.05 ); this.Delete(); return false; }
private static void FillBankbox( Mobile m ) { if ( Core.AOS ) { FillBankAOS( m ); return; } BankBox bank = m.BankBox; bank.DropItem( new BankCheck( 1000000 ) ); // Full spellbook Spellbook book = new Spellbook(); book.Content = ulong.MaxValue; bank.DropItem( book ); Bag bag = new Bag(); for ( int i = 0; i < 5; ++i ) bag.DropItem( new Moonstone( MoonstoneType.Felucca ) ); // Felucca moonstones bank.DropItem( bag ); bag = new Bag(); for ( int i = 0; i < 5; ++i ) bag.DropItem( new Moonstone( MoonstoneType.Trammel ) ); // Trammel moonstones bank.DropItem( bag ); // Treasure maps bank.DropItem( new TreasureMap( 1, Map.Trammel ) ); bank.DropItem( new TreasureMap( 2, Map.Trammel ) ); bank.DropItem( new TreasureMap( 3, Map.Trammel ) ); bank.DropItem( new TreasureMap( 4, Map.Trammel ) ); bank.DropItem( new TreasureMap( 5, Map.Trammel ) ); // Bag containing 50 of each reagent bank.DropItem( new BagOfReagents( 50 ) ); // Craft tools bank.DropItem( MakeNewbie( new Scissors() ) ); bank.DropItem( MakeNewbie( new SewingKit( 1000 ) ) ); bank.DropItem( MakeNewbie( new SmithHammer( 1000 ) ) ); bank.DropItem( MakeNewbie( new FletcherTools( 1000 ) ) ); bank.DropItem( MakeNewbie( new DovetailSaw( 1000 ) ) ); bank.DropItem( MakeNewbie( new MortarPestle( 1000 ) ) ); bank.DropItem( MakeNewbie( new ScribesPen( 1000 ) ) ); bank.DropItem( MakeNewbie( new TinkerTools( 1000 ) ) ); // A few dye tubs bank.DropItem( new Dyes() ); bank.DropItem( new DyeTub() ); bank.DropItem( new DyeTub() ); bank.DropItem( new BlackDyeTub() ); DyeTub darkRedTub = new DyeTub(); darkRedTub.DyedHue = 0x485; darkRedTub.Redyable = false; bank.DropItem( darkRedTub ); // Some food bank.DropItem( MakeNewbie( new Apple( 1000 ) ) ); // Resources bank.DropItem( MakeNewbie( new Feather( 1000 ) ) ); bank.DropItem( MakeNewbie( new BoltOfCloth( 1000 ) ) ); bank.DropItem( MakeNewbie( new BlankScroll( 1000 ) ) ); bank.DropItem( MakeNewbie( new Hides( 1000 ) ) ); bank.DropItem( MakeNewbie( new Bandage( 1000 ) ) ); bank.DropItem( MakeNewbie( new Bottle( 1000 ) ) ); bank.DropItem( MakeNewbie( new Log( 1000 ) ) ); bank.DropItem( MakeNewbie( new IronIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new DullCopperIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new ShadowIronIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new CopperIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new BronzeIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new GoldIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new AgapiteIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new VeriteIngot( 5000 ) ) ); bank.DropItem( MakeNewbie( new ValoriteIngot( 5000 ) ) ); // Reagents bank.DropItem( MakeNewbie( new BlackPearl( 1000 ) ) ); bank.DropItem( MakeNewbie( new Bloodmoss( 1000 ) ) ); bank.DropItem( MakeNewbie( new Garlic( 1000 ) ) ); bank.DropItem( MakeNewbie( new Ginseng( 1000 ) ) ); bank.DropItem( MakeNewbie( new MandrakeRoot( 1000 ) ) ); bank.DropItem( MakeNewbie( new Nightshade( 1000 ) ) ); bank.DropItem( MakeNewbie( new SulfurousAsh( 1000 ) ) ); bank.DropItem( MakeNewbie( new SpidersSilk( 1000 ) ) ); // Some extra starting gold bank.DropItem( MakeNewbie( new Gold( 9000 ) ) ); // 5 blank recall runes for ( int i = 0; i < 5; ++i ) bank.DropItem( MakeNewbie( new RecallRune() ) ); AddPowerScrolls( bank ); }
protected override void OnTarget(Mobile from, object targeted) { if (from == null || targeted == null || (targeted is Item && ((Item)targeted).Deleted) || (targeted is Mobile && ((Mobile)targeted).Deleted)) { return; } if (targeted is PlayerMobile) { from.SendMessage("That's not the way to increase the number of players!"); return; } List <Item> itemList = new List <Item>(); List <Mobile> mobileList = new List <Mobile>(); Dictionary <int, int> serialMapping = new Dictionary <int, int>(); try { Dupe(from, targeted, DupeCommand.MAX_RECURSIONS, itemList, mobileList, serialMapping); // Duping messed up the parents; we need to fix this now foreach (Item item in itemList.ToArray()) { // Items need to be copied to avoid EnumerationExceptions foreach (object child in item.Items.ToArray()) { item.AddItem((Item)child); } } foreach (Mobile mobile in mobileList.ToArray()) { // Items need to be copied to avoid EnumerationExceptions foreach (object child in mobile.Items.ToArray()) { mobile.AddItem((Item)child); } } // If more than one Item has been duped they will be placed inside a colored bag. Container bag = null; if (itemList.Count > 1) { bag = new Server.Items.Bag(); bag.Name = "Duped on " + DateTime.Today.ToString("dd.MM.yyyy"); bag.Hue = 6; } // All Items will be placed inside the bag/backpack and all mobiles will be // moved to the position of the GM // (except for those on the internal map) int internalMapCount = 0; foreach (Item item in itemList) { if (item.Map == Map.Internal) { internalMapCount++; continue; } if ((item.Parent == null || (!itemList.Contains(item.Parent as Item) && !mobileList.Contains(item.Parent as Mobile)))) // Lies on the floor or in any container that is not part of this duplication process { item.Parent = null; // Remove any reference to the former parent if (bag == null) { from.AddToBackpack(item); } else { if (bag.Items.Count <= 0) { // The first non-internal item to be placed adds the bag to the callers backpack from.AddToBackpack(bag); } bag.AddItem(item); from.SendMessage(item.GetType().ToString()); } } item.UpdateTotals(); item.InvalidateProperties(); } foreach (Mobile mobile in mobileList) { if (mobile.Map == Map.Internal) { internalMapCount++; continue; } mobile.MoveToWorld(from.Location, from.Map); mobile.UpdateResistances(); mobile.UpdateTotals(); mobile.InvalidateProperties(); } // Sending the success message. from.SendMessage("{0} Items and {1} Mobiles have been successfully duplicated.", itemList.Count, mobileList.Count); if (internalMapCount > 0) { from.SendMessage("{0} of which are on the internal map.", internalMapCount); } #region InterfaceGump ArrayList completeList = new ArrayList(); completeList.AddRange(mobileList); completeList.AddRange(itemList); from.SendGump(new InterfaceGump(from, new string[] { "Entity" }, completeList, 0, null)); #endregion #region CommandLogging // Implementing command logging StringBuilder sb = new StringBuilder(); sb.AppendFormat("{0} {1} duping ", from.AccessLevel, CommandLogging.Format(from)); sb.AppendFormat("at {0} in {1}: ", from.Location, from.Map); int serial = (targeted is Item ? ((Item)targeted).Serial : ((Mobile)targeted).Serial); sb.AppendFormat("{0} Items and {1} Mobiles via target 0x{2:X}", itemList.Count, mobileList.Count, serial); CommandLogging.WriteLine(from, sb.ToString()); sb = new StringBuilder(); StringBuilder sbm = new StringBuilder(); sb.Append("Serials been duped:"); sbm.Append("Serials:"); foreach (KeyValuePair <int, int> kvp in serialMapping) { sb.AppendFormat(" 0x{0:X};", kvp.Key); sbm.AppendFormat(" 0x{0:X};", kvp.Value); } CommandLogging.WriteLine(from, sb.ToString()); CommandLogging.WriteLine(from, sbm.ToString()); #endregion } catch (DupeException ex) { from.SendMessage(ex.Message); DeleteAll(itemList, mobileList); } }
public void OnOptionSelected(Mobile from, int choice) { var bag = new Bag { Hue = 1286 }; bool chance = Utility.RandomDouble() < .1; Item item; switch (choice) { default: bag.Delete(); break; case 1: { item = new CopperWings(); if (chance) { item.Hue = 2951; } bag.DropItem(item); from.AddToBackpack(bag); Delete(); break; } case 2: { item = new CopperPortrait1(); if (chance) { item.Hue = 2951; } bag.DropItem(item); item = new CopperPortrait2(); if (chance) { item.Hue = 2951; } bag.DropItem(item); from.AddToBackpack(bag); Delete(); break; } case 3: { item = new CopperShipReliefAddonDeed(); if (chance) { item.Hue = 2951; } bag.DropItem(item); from.AddToBackpack(bag); Delete(); break; } case 4: item = new CopperSunflower(); if (chance) { item.Hue = 2951; } bag.DropItem(item); from.AddToBackpack(bag); Delete(); break; } }
public override bool OnDragDrop(Mobile from, Item dropped) { Mobile m = from; PlayerMobile mobile = m as PlayerMobile; if ( mobile != null) { if (dropped is Gold && dropped.Amount == 100) { mobile.AddToBackpack ( new QuestScroll(1) ); this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Me devolva este Scroll quando terminar...para receber sua recompensa..", mobile.NetState ); return true; } else if (dropped is Gold && dropped.Amount == 200) { mobile.AddToBackpack ( new QuestScroll(2) ); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Me devolva este Scroll quando terminar...para receber sua recompensa..", mobile.NetState); return true; } else if (dropped is Gold && dropped.Amount == 300) { mobile.AddToBackpack ( new QuestScroll(3) ); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Me devolva este Scroll quando terminar...para receber sua recompensa..", mobile.NetState); return true; } else if (dropped is Gold && dropped.Amount == 400) { mobile.AddToBackpack ( new QuestScroll(4) ); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Me devolva este Scroll quando terminar...para receber sua recompensa..", mobile.NetState); return true; } else if (dropped is Gold && dropped.Amount == 500) { mobile.AddToBackpack ( new QuestScroll(5) ); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Me devolva este Scroll quando terminar...para receber sua recompensa..", mobile.NetState); return true; } else if (dropped is Gold && dropped.Amount == 600) { mobile.AddToBackpack ( new QuestScroll(6) ); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Me devolva este Scroll quando terminar...para receber sua recompensa..", mobile.NetState); return true; } else if(dropped is Gold) { this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Nao tenho nada para voce por esta quantia de gold.", mobile.NetState ); return false; } else if( dropped is QuestScroll ) { QuestScroll m_Quest = (QuestScroll)dropped; if(m_Quest.NNeed > m_Quest.NGot) { mobile.AddToBackpack ( dropped ); this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Voce nao completou essa quest.", mobile.NetState ); return false; } string sMessage = ""; if (m_Quest.NType == 1) { sMessage = "Vejo que voce voltou vitorioso. Aqui esta sua recompensa!"; } else { sMessage = "Ahh... voce encontrou " + m_Quest.NItemName + "! Aqui esta sua recompensa!"; } Bag bagReward = new Bag(); // Skill Reward int randomSkillType = 1; if (Utility.RandomDouble() >= 0.8) randomSkillType = (int)SkillRewardItemType.Tammer; else randomSkillType = Utility.Random(1, 3); int randomSkillAmount = 1; randomSkillAmount = m_Quest.NLevel; if (randomSkillAmount > 5) randomSkillAmount = 5; bagReward.DropItem(new SkillRewardItem(1, randomSkillType, randomSkillAmount)); //mobile.AddToBackpack(new SkillRewardItem(1, randomSkillType, randomSkillAmount)); // Skill Reward if ( Utility.RandomMinMax( 1, 4 ) == 1 ) { bagReward.DropItem(new Gold(m_Quest.NLevel * 500)); //mobile.AddToBackpack ( new Gold( m_Quest.NLevel * 500 ) ); } else { bagReward.DropItem(new Gold(m_Quest.NLevel * 400)); //mobile.AddToBackpack ( new Gold( m_Quest.NLevel * 400 ) ); Item item; if ( Core.AOS ) item = Loot.RandomArmorOrShieldOrWeaponOrJewelry(); else item = Loot.RandomArmorOrShieldOrWeapon(); bagReward.DropItem(item); //mobile.AddToBackpack(item); //if ( item is BaseWeapon ) //{ // BaseWeapon weapon = (BaseWeapon)item; // if ( Core.AOS ) // { // int attributeCount; // int min, max; // GetRandomAOSStats( out attributeCount, out min, out max, m_Quest.NLevel ); // BaseRunicTool.ApplyAttributesTo( weapon, attributeCount, min, max ); // } // else // { // weapon.DamageLevel = (WeaponDamageLevel)Utility.Random( 6 ); // weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random( 6 ); // weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random( 6 ); // } // mobile.AddToBackpack ( item ); //} //else if ( item is BaseArmor ) //{ // BaseArmor armor = (BaseArmor)item; // if ( Core.AOS ) // { // int attributeCount; // int min, max; // GetRandomAOSStats( out attributeCount, out min, out max, m_Quest.NLevel ); // BaseRunicTool.ApplyAttributesTo( armor, attributeCount, min, max ); // } // else // { // armor.ProtectionLevel = (ArmorProtectionLevel)Utility.Random( 6 ); // armor.Durability = (ArmorDurabilityLevel)Utility.Random( 6 ); // } // mobile.AddToBackpack ( item ); //} //else if( item is BaseHat ) //{ // BaseHat hat = (BaseHat)item; // if( Core.AOS ) // { // int attributeCount; // int min, max; // GetRandomAOSStats( out attributeCount, out min, out max, m_Quest.NLevel ); // BaseRunicTool.ApplyAttributesTo( hat, attributeCount, min, max ); // } // mobile.AddToBackpack ( item ); //} //else if( item is BaseJewel ) //{ // int attributeCount; // int min, max; // GetRandomAOSStats( out attributeCount, out min, out max, m_Quest.NLevel ); // BaseRunicTool.ApplyAttributesTo( (BaseJewel)item, attributeCount, min, max ); // mobile.AddToBackpack ( item ); //} } mobile.AddToBackpack(bagReward); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, sMessage, mobile.NetState); dropped.Delete(); return true; } else { mobile.AddToBackpack ( dropped ); this.PrivateOverheadMessage(MessageType.Regular, 1153, false, "I have no need for this...", mobile.NetState); return true; } } return false; }
protected void PackUpItems() { if ( c_House == null ) return; Container bag = new Bag(); bag.Name = "Town House Belongings"; foreach( Item item in new ArrayList( c_House.LockDowns ) ) { item.IsLockedDown = false; item.Movable = true; c_House.LockDowns.Remove( item ); bag.DropItem( item ); } foreach( SecureInfo info in new ArrayList( c_House.Secures ) ) { info.Item.IsLockedDown = false; info.Item.IsSecure = false; info.Item.Movable = true; info.Item.SetLastMoved(); c_House.Secures.Remove( info ); bag.DropItem( info.Item ); } foreach( Item item in World.Items.Values ) { if ( item is HouseSign || item is BaseDoor || item is BaseMulti || item is BaseAddon || item is AddonComponent || !item.Visible || item.IsLockedDown || item.IsSecure || !item.Movable || item.Map != c_House.Map || !c_House.Region.Contains( item.Location ) ) continue; bag.DropItem( item ); } if ( bag.Items.Count == 0 ) { bag.Delete(); return; } c_House.Owner.BankBox.DropItem( bag ); }
public static Container GetNewContainer() { Bag bag = new Bag(); bag.Hue = QuestSystem.RandomBrightHue(); return bag; }
public StarterPack() : base() { Name = "Welcome bag"; Hue = 196; Item item = new BankCheck(100); DropItem( item ); item.X = 53; item.Y = 36; item = new BagOfReagents( 50 ); DropItem( item ); item.X = 71; item.Y = 55; Container bag = new Bag(); bag.DropItem( new LeatherCap() ); bag.DropItem( new LeatherChest() ); bag.DropItem( new LeatherLegs() ); bag.DropItem( new LeatherGloves() ); bag.DropItem( new LeatherArms() ); bag.DropItem( new LeatherGorget() ); DropItem( bag ); bag.X = 63; bag.Y = 75; /* item = new HalfApron (); item.LootType = LootType.Blessed; item.Name = "Launch Day 2013"; DropItem( item ); item.X = 72; item.Y = 92; item = new FireworksWand(); item.Name = "Launch Day 2013"; DropItem( item ); item.X = 94; item.Y = 34;*/ /* if ( TestCenter.Enabled ) { // item = new SmallBrickHouseDeed(); // DropItem( item ); // item.X = 23; // item.Y = 53; */ /* item = new Runebook(); DropItem( item ); item.X = 93; item.Y = 92; item = new EtherealLlama(); item.Name = "a beta testers ethereal llama"; DropItem( item ); item.X = 94; item.Y = 34; } else { */ // item = new BankCheck( 1000 ); // DropItem( item ); // item.X = 52; // item.Y = 36; //} }
private static void FillBankAOS( Mobile m ) { BankBox bank = m.BankBox; // The new AOS bankboxes don't have powerscrolls, they are automatically 'applied': for ( int i = 0; i < PowerScroll.Skills.Count; ++i ) m.Skills[PowerScroll.Skills[ i ]].Cap = 120.0; m.StatCap = 250; Container cont; // Begin box of money cont = new WoodenBox(); cont.ItemID = 0xE7D; cont.Hue = 0x489; PlaceItemIn( cont, 16, 51, new BankCheck( 500000 ) ); PlaceItemIn( cont, 28, 51, new BankCheck( 250000 ) ); PlaceItemIn( cont, 40, 51, new BankCheck( 100000 ) ); PlaceItemIn( cont, 52, 51, new BankCheck( 100000 ) ); PlaceItemIn( cont, 64, 51, new BankCheck( 50000 ) ); PlaceItemIn( cont, 16, 115, new Factions.Silver( 9000 ) ); PlaceItemIn( cont, 34, 115, new Gold( 60000 ) ); PlaceItemIn( bank, 18, 169, cont ); // End box of money // Begin bag of potion kegs cont = new Backpack(); cont.Name = "Various Potion Kegs"; PlaceItemIn( cont, 45, 149, MakePotionKeg( PotionEffect.CureGreater, 0x2D ) ); PlaceItemIn( cont, 69, 149, MakePotionKeg( PotionEffect.HealGreater, 0x499 ) ); PlaceItemIn( cont, 93, 149, MakePotionKeg( PotionEffect.PoisonDeadly, 0x46 ) ); PlaceItemIn( cont, 117, 149, MakePotionKeg( PotionEffect.RefreshTotal, 0x21 ) ); PlaceItemIn( cont, 141, 149, MakePotionKeg( PotionEffect.ExplosionGreater, 0x74 ) ); PlaceItemIn( cont, 93, 82, new Bottle( 1000 ) ); PlaceItemIn( bank, 53, 169, cont ); // End bag of potion kegs // Begin bag of tools cont = new Bag(); cont.Name = "Tool Bag"; PlaceItemIn( cont, 30, 35, new TinkerTools( 1000 ) ); PlaceItemIn( cont, 60, 35, new HousePlacementTool() ); PlaceItemIn( cont, 90, 35, new DovetailSaw( 1000 ) ); PlaceItemIn( cont, 30, 68, new Scissors() ); PlaceItemIn( cont, 45, 68, new MortarPestle( 1000 ) ); PlaceItemIn( cont, 75, 68, new ScribesPen( 1000 ) ); PlaceItemIn( cont, 90, 68, new SmithHammer( 1000 ) ); PlaceItemIn( cont, 30, 118, new TwoHandedAxe() ); PlaceItemIn( cont, 60, 118, new FletcherTools( 1000 ) ); PlaceItemIn( cont, 90, 118, new SewingKit( 1000 ) ); PlaceItemIn( cont, 36, 51, new RunicHammer( CraftResource.DullCopper, 1000 ) ); PlaceItemIn( cont, 42, 51, new RunicHammer( CraftResource.ShadowIron, 1000 ) ); PlaceItemIn( cont, 48, 51, new RunicHammer( CraftResource.Copper, 1000 ) ); PlaceItemIn( cont, 54, 51, new RunicHammer( CraftResource.Bronze, 1000 ) ); PlaceItemIn( cont, 61, 51, new RunicHammer( CraftResource.Gold, 1000 ) ); PlaceItemIn( cont, 67, 51, new RunicHammer( CraftResource.Agapite, 1000 ) ); PlaceItemIn( cont, 73, 51, new RunicHammer( CraftResource.Verite, 1000 ) ); PlaceItemIn( cont, 79, 51, new RunicHammer( CraftResource.Valorite, 1000 ) ); PlaceItemIn( cont, 36, 55, new RunicSewingKit( CraftResource.SpinedLeather, 1000 ) ); PlaceItemIn( cont, 42, 55, new RunicSewingKit( CraftResource.HornedLeather, 1000 ) ); PlaceItemIn( cont, 48, 55, new RunicSewingKit( CraftResource.BarbedLeather, 1000 ) ); PlaceItemIn( bank, 118, 169, cont ); // End bag of tools // Begin bag of archery ammo cont = new Bag(); cont.Name = "Bag Of Archery Ammo"; PlaceItemIn( cont, 48, 76, new Arrow( 5000 ) ); PlaceItemIn( cont, 72, 76, new Bolt( 5000 ) ); PlaceItemIn( bank, 118, 124, cont ); // End bag of archery ammo // Begin bag of treasure maps cont = new Bag(); cont.Name = "Bag Of Treasure Maps"; PlaceItemIn( cont, 30, 35, new TreasureMap( 1, Map.Trammel ) ); PlaceItemIn( cont, 45, 35, new TreasureMap( 2, Map.Trammel ) ); PlaceItemIn( cont, 60, 35, new TreasureMap( 3, Map.Trammel ) ); PlaceItemIn( cont, 75, 35, new TreasureMap( 4, Map.Trammel ) ); PlaceItemIn( cont, 90, 35, new TreasureMap( 5, Map.Trammel ) ); PlaceItemIn( cont, 90, 35, new TreasureMap( 6, Map.Trammel ) ); PlaceItemIn( cont, 30, 50, new TreasureMap( 1, Map.Trammel ) ); PlaceItemIn( cont, 45, 50, new TreasureMap( 2, Map.Trammel ) ); PlaceItemIn( cont, 60, 50, new TreasureMap( 3, Map.Trammel ) ); PlaceItemIn( cont, 75, 50, new TreasureMap( 4, Map.Trammel ) ); PlaceItemIn( cont, 90, 50, new TreasureMap( 5, Map.Trammel ) ); PlaceItemIn( cont, 90, 50, new TreasureMap( 6, Map.Trammel ) ); PlaceItemIn( cont, 55, 100, new Lockpick( 30 ) ); PlaceItemIn( cont, 60, 100, new Pickaxe() ); PlaceItemIn( bank, 98, 124, cont ); // End bag of treasure maps // Begin bag of raw materials cont = new Bag(); cont.Hue = 0x835; cont.Name = "Raw Materials Bag"; PlaceItemIn( cont, 92, 60, new BarbedLeather( 5000 ) ); PlaceItemIn( cont, 92, 68, new HornedLeather( 5000 ) ); PlaceItemIn( cont, 92, 76, new SpinedLeather( 5000 ) ); PlaceItemIn( cont, 92, 84, new Leather( 5000 ) ); PlaceItemIn( cont, 30, 118, new Cloth( 5000 ) ); PlaceItemIn( cont, 30, 84, new Board( 5000 ) ); PlaceItemIn( cont, 57, 80, new BlankScroll( 500 ) ); PlaceItemIn( cont, 30, 35, new DullCopperIngot( 5000 ) ); PlaceItemIn( cont, 37, 35, new ShadowIronIngot( 5000 ) ); PlaceItemIn( cont, 44, 35, new CopperIngot( 5000 ) ); PlaceItemIn( cont, 51, 35, new BronzeIngot( 5000 ) ); PlaceItemIn( cont, 58, 35, new GoldIngot( 5000 ) ); PlaceItemIn( cont, 65, 35, new AgapiteIngot( 5000 ) ); PlaceItemIn( cont, 72, 35, new VeriteIngot( 5000 ) ); PlaceItemIn( cont, 79, 35, new ValoriteIngot( 5000 ) ); PlaceItemIn( cont, 86, 35, new IronIngot( 5000 ) ); PlaceItemIn( cont, 30, 59, new RedScales( 5000 ) ); PlaceItemIn( cont, 36, 59, new YellowScales( 5000 ) ); PlaceItemIn( cont, 42, 59, new BlackScales( 5000 ) ); PlaceItemIn( cont, 48, 59, new GreenScales( 5000 ) ); PlaceItemIn( cont, 54, 59, new WhiteScales( 5000 ) ); PlaceItemIn( cont, 60, 59, new BlueScales( 5000 ) ); PlaceItemIn( bank, 98, 169, cont ); // End bag of raw materials // Begin bag of spell casting stuff cont = new Backpack(); cont.Hue = 0x480; cont.Name = "Spell Casting Stuff"; PlaceItemIn( cont, 45, 105, new Spellbook( UInt64.MaxValue ) ); PlaceItemIn( cont, 65, 105, new NecromancerSpellbook( (UInt64)0xFFFF ) ); PlaceItemIn( cont, 85, 105, new BookOfChivalry( (UInt64)0x3FF ) ); PlaceItemIn( cont, 105, 105, new BookOfBushido() ); //Default ctor = full PlaceItemIn( cont, 125, 105, new BookOfNinjitsu() ); //Default ctor = full Runebook runebook = new Runebook( 10 ); runebook.CurCharges = runebook.MaxCharges; PlaceItemIn( cont, 145, 105, runebook ); Item toHue = new BagOfReagents( 150 ); toHue.Hue = 0x2D; PlaceItemIn( cont, 45, 150, toHue ); toHue = new BagOfNecroReagents( 150 ); toHue.Hue = 0x488; PlaceItemIn( cont, 65, 150, toHue ); PlaceItemIn( cont, 140, 150, new BagOfAllReagents( 500 ) ); for ( int i = 0; i < 9; ++i ) PlaceItemIn( cont, 45 + (i * 10), 75, new RecallRune() ); PlaceItemIn( cont, 141, 74, new FireHorn() ); PlaceItemIn( bank, 78, 169, cont ); // End bag of spell casting stuff // Begin bag of ethereals cont = new Backpack(); cont.Hue = 0x490; cont.Name = "Bag Of Ethy's!"; PlaceItemIn( cont, 45, 66, new EtherealHorse() ); PlaceItemIn( cont, 69, 82, new EtherealOstard() ); PlaceItemIn( cont, 93, 99, new EtherealLlama() ); PlaceItemIn( cont, 117, 115, new EtherealKirin() ); PlaceItemIn( cont, 45, 132, new EtherealUnicorn() ); PlaceItemIn( cont, 69, 66, new EtherealRidgeback() ); PlaceItemIn( cont, 93, 82, new EtherealSwampDragon() ); PlaceItemIn( cont, 117, 99, new EtherealBeetle() ); PlaceItemIn( bank, 38, 124, cont ); // End bag of ethereals // Begin first bag of artifacts cont = new Backpack(); cont.Hue = 0x48F; cont.Name = "Bag of Artifacts"; PlaceItemIn( cont, 45, 66, new TitansHammer() ); PlaceItemIn( cont, 69, 82, new InquisitorsResolution() ); PlaceItemIn( cont, 93, 99, new BladeOfTheRighteous() ); PlaceItemIn( cont, 117, 115, new ZyronicClaw() ); PlaceItemIn( bank, 58, 124, cont ); // End first bag of artifacts // Begin second bag of artifacts cont = new Backpack(); cont.Hue = 0x48F; cont.Name = "Bag of Artifacts"; PlaceItemIn( cont, 45, 66, new GauntletsOfNobility() ); PlaceItemIn( cont, 69, 82, new MidnightBracers() ); PlaceItemIn( cont, 93, 99, new VoiceOfTheFallenKing() ); PlaceItemIn( cont, 117, 115, new OrnateCrownOfTheHarrower() ); PlaceItemIn( cont, 45, 132, new HelmOfInsight() ); PlaceItemIn( cont, 69, 66, new HolyKnightsBreastplate() ); PlaceItemIn( cont, 93, 82, new ArmorOfFortune() ); PlaceItemIn( cont, 117, 99, new TunicOfFire() ); PlaceItemIn( cont, 45, 115, new LeggingsOfBane() ); PlaceItemIn( cont, 69, 132, new ArcaneShield() ); PlaceItemIn( cont, 93, 66, new Aegis() ); PlaceItemIn( cont, 117, 82, new RingOfTheVile() ); PlaceItemIn( cont, 45, 99, new BraceletOfHealth() ); PlaceItemIn( cont, 69, 115, new RingOfTheElements() ); PlaceItemIn( cont, 93, 132, new OrnamentOfTheMagician() ); PlaceItemIn( cont, 117, 66, new DivineCountenance() ); PlaceItemIn( cont, 45, 82, new JackalsCollar() ); PlaceItemIn( cont, 69, 99, new HuntersHeaddress() ); PlaceItemIn( cont, 93, 115, new HatOfTheMagi() ); PlaceItemIn( cont, 117, 132, new ShadowDancerLeggings() ); PlaceItemIn( cont, 45, 66, new SpiritOfTheTotem() ); PlaceItemIn( cont, 69, 82, new BladeOfInsanity() ); PlaceItemIn( cont, 93, 99, new AxeOfTheHeavens() ); PlaceItemIn( cont, 117, 115, new TheBeserkersMaul() ); PlaceItemIn( cont, 45, 132, new Frostbringer() ); PlaceItemIn( cont, 69, 66, new BreathOfTheDead() ); PlaceItemIn( cont, 93, 82, new TheDragonSlayer() ); PlaceItemIn( cont, 117, 99, new BoneCrusher() ); PlaceItemIn( cont, 45, 115, new StaffOfTheMagi() ); PlaceItemIn( cont, 69, 132, new SerpentsFang() ); PlaceItemIn( cont, 93, 66, new LegacyOfTheDreadLord() ); PlaceItemIn( cont, 117, 82, new TheTaskmaster() ); PlaceItemIn( cont, 45, 99, new TheDryadBow() ); PlaceItemIn( bank, 78, 124, cont ); // End second bag of artifacts // Begin bag of minor artifacts cont = new Backpack(); cont.Hue = 0x48F; cont.Name = "Bag of Minor Artifacts"; PlaceItemIn( cont, 45, 66, new LunaLance() ); PlaceItemIn( cont, 69, 82, new VioletCourage() ); PlaceItemIn( cont, 93, 99, new CavortingClub() ); PlaceItemIn( cont, 117, 115, new CaptainQuacklebushsCutlass() ); PlaceItemIn( cont, 45, 132, new NightsKiss() ); PlaceItemIn( cont, 69, 66, new ShipModelOfTheHMSCape() ); PlaceItemIn( cont, 93, 82, new AdmiralsHeartyRum() ); PlaceItemIn( cont, 117, 99, new CandelabraOfSouls() ); PlaceItemIn( cont, 45, 115, new IolosLute() ); PlaceItemIn( cont, 69, 132, new GwennosHarp() ); PlaceItemIn( cont, 93, 66, new ArcticDeathDealer() ); PlaceItemIn( cont, 117, 82, new EnchantedTitanLegBone() ); PlaceItemIn( cont, 45, 99, new NoxRangersHeavyCrossbow() ); PlaceItemIn( cont, 69, 115, new BlazeOfDeath() ); PlaceItemIn( cont, 93, 132, new DreadPirateHat() ); PlaceItemIn( cont, 117, 66, new BurglarsBandana() ); PlaceItemIn( cont, 45, 82, new GoldBricks() ); PlaceItemIn( cont, 69, 99, new AlchemistsBauble() ); PlaceItemIn( cont, 93, 115, new PhillipsWoodenSteed() ); PlaceItemIn( cont, 117, 132, new PolarBearMask() ); PlaceItemIn( cont, 45, 66, new BowOfTheJukaKing() ); PlaceItemIn( cont, 69, 82, new GlovesOfThePugilist() ); PlaceItemIn( cont, 93, 99, new OrcishVisage() ); PlaceItemIn( cont, 117, 115, new StaffOfPower() ); PlaceItemIn( cont, 45, 132, new ShieldOfInvulnerability() ); PlaceItemIn( cont, 69, 66, new HeartOfTheLion() ); PlaceItemIn( cont, 93, 82, new ColdBlood() ); PlaceItemIn( cont, 117, 99, new GhostShipAnchor() ); PlaceItemIn( cont, 45, 115, new SeahorseStatuette() ); PlaceItemIn( cont, 69, 132, new WrathOfTheDryad() ); PlaceItemIn( cont, 93, 66, new PixieSwatter() ); for( int i = 0; i < 10; i++ ) PlaceItemIn( cont, 117, 128, new MessageInABottle( Utility.RandomBool() ? Map.Trammel : Map.Felucca, 4 ) ); PlaceItemIn( bank, 18, 124, cont ); if( Core.SE ) { cont = new Bag(); cont.Hue = 0x501; cont.Name = "Tokuno Minor Artifacts"; PlaceItemIn( cont, 42, 70, new Exiler() ); PlaceItemIn( cont, 38, 53, new HanzosBow() ); PlaceItemIn( cont, 45, 40, new TheDestroyer() ); PlaceItemIn( cont, 92, 80, new DragonNunchaku() ); PlaceItemIn( cont, 42, 56, new PeasantsBokuto() ); PlaceItemIn( cont, 44, 71, new TomeOfEnlightenment() ); PlaceItemIn( cont, 35, 35, new ChestOfHeirlooms() ); PlaceItemIn( cont, 29, 0, new HonorableSwords() ); PlaceItemIn( cont, 49, 85, new AncientUrn() ); PlaceItemIn( cont, 51, 58, new FluteOfRenewal() ); PlaceItemIn( cont, 70, 51, new PigmentsOfTokuno() ); PlaceItemIn( cont, 40, 79, new AncientSamuraiDo() ); PlaceItemIn( cont, 51, 61, new LegsOfStability() ); PlaceItemIn( cont, 88, 78, new GlovesOfTheSun() ); PlaceItemIn( cont, 55, 62, new AncientFarmersKasa() ); PlaceItemIn( cont, 55, 83, new ArmsOfTacticalExcellence() ); PlaceItemIn( cont, 50, 85, new DaimyosHelm() ); PlaceItemIn( cont, 52, 78, new BlackLotusHood() ); PlaceItemIn( cont, 52, 79, new DemonForks() ); PlaceItemIn( cont, 33, 49, new PilferedDancerFans() ); PlaceItemIn( bank, 58, 124, cont ); } if( Core.SE ) //This bag came only after SE. { cont = new Bag(); cont.Name = "Bag of Bows"; PlaceItemIn( cont, 31, 84, new Bow() ); PlaceItemIn( cont, 78, 74, new CompositeBow() ); PlaceItemIn( cont, 53, 71, new Crossbow() ); PlaceItemIn( cont, 56, 39, new HeavyCrossbow() ); PlaceItemIn( cont, 82, 72, new RepeatingCrossbow() ); PlaceItemIn( cont, 49, 45, new Yumi() ); for( int i = 0; i < cont.Items.Count; i++ ) { BaseRanged bow = cont.Items[i] as BaseRanged; if( bow != null ) { bow.Attributes.WeaponSpeed = 35; bow.Attributes.WeaponDamage = 35; } } PlaceItemIn( bank, 108, 135, cont ); } }
public Bag PackBagofRecallRegs( int amount ) { Bag bag = new Bag(); PackItem( bag ); bag.DropItem( new BlackPearl ( amount ) ); bag.DropItem( new Bloodmoss ( amount ) ); bag.DropItem( new MandrakeRoot ( amount ) ); return bag; }
public MeerCaptain() : base( AIType.AI_Archer, FightMode.Evil, 10, 1, 0.2, 0.4 ) { Body = 773; SetStr( 96, 110 ); SetDex( 186, 200 ); SetInt( 96, 110 ); SetHits( 58, 66 ); SetDamage( 5, 15 ); SetSkill( SkillName.Archery, 90.1, 100.0 ); SetSkill( SkillName.MagicResist, 91.0, 100.0 ); SetSkill( SkillName.Swords, 90.1, 100.0 ); SetSkill( SkillName.Tactics, 91.0, 100.0 ); SetSkill( SkillName.Wrestling, 80.9, 89.9 ); Fame = 2000; Karma = 5000; VirtualArmor = 28; Container pack = new Backpack(); pack.DropItem( new Bolt( Utility.RandomMinMax( 10, 20 ) ) ); pack.DropItem( new Bolt( Utility.RandomMinMax( 10, 20 ) ) ); switch ( Utility.Random( 6 ) ) { case 0: pack.DropItem( new Broadsword() ); break; case 1: pack.DropItem( new Cutlass() ); break; case 2: pack.DropItem( new Katana() ); break; case 3: pack.DropItem( new Longsword() ); break; case 4: pack.DropItem( new Scimitar() ); break; case 5: pack.DropItem( new VikingSword() ); break; } Container bag = new Bag(); int count = Utility.RandomMinMax( 10, 20 ); for ( int i = 0; i < count; ++i ) { Item item = Loot.RandomReagent(); if ( item == null ) continue; if ( !bag.TryDropItem( this, item, false ) ) item.Delete(); } pack.DropItem( bag ); AddItem( new Crossbow() ); PackItem( pack ); m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds( Utility.RandomMinMax( 2, 5 ) ); }
public StarterBagWarrior() { Container cont; this.Name = "Starter Bag - Warrior"; cont = new Bag(); cont.Name = "PowerScroll Bag"; PlaceItemIn(cont, 30, 35, new PowerScroll(SkillName.Fencing, 105)); PlaceItemIn(cont, 60, 35, new PowerScroll(SkillName.Swords, 105)); PlaceItemIn(cont, 90, 35, new PowerScroll(SkillName.Macing, 105)); PlaceItemIn(cont, 30, 68, new PowerScroll(SkillName.Archery, 105)); PlaceItemIn(cont, 45, 68, new PowerScroll(SkillName.Parry, 105)); PlaceItemIn(cont, 75, 68, new PowerScroll(SkillName.Chivalry, 105)); PlaceItemIn(cont, 90, 68, new PowerScroll(SkillName.Tactics, 105)); PlaceItemIn(cont, 30, 118, new PowerScroll(SkillName.Anatomy, 105)); PlaceItemIn(cont, 60, 118, new PowerScroll(SkillName.Healing, 105)); PlaceItemIn(this, 0, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { cont.Items[i].LootType = LootType.Blessed; } cont = new Bag(); cont.Name = "Gear Bag"; // Armor PlaceItemIn(cont, 30, 35, new PlateChest()); PlaceItemIn(cont, 60, 35, new PlateGorget()); PlaceItemIn(cont, 90, 35, new PlateArms()); PlaceItemIn(cont, 30, 68, new PlateHelm()); PlaceItemIn(cont, 45, 68, new PlateGloves()); PlaceItemIn(cont, 75, 68, new PlateLegs()); // Jewelry PlaceItemIn(cont, 90, 68, new GoldEarrings()); PlaceItemIn(cont, 30, 118, new GoldBracelet()); PlaceItemIn(cont, 60, 118, new GoldRing()); PlaceItemIn(this, 50, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { BaseArmor armor = cont.Items[i] as BaseArmor; BaseJewel jewel = cont.Items[i] as BaseJewel; if (jewel != null) { jewel.Attributes.LowerRegCost = 12; jewel.Attributes.AttackChance = 5; jewel.Attributes.DefendChance = 5; jewel.LootType = LootType.Blessed; jewel.Hue = 1161; jewel.Insured = false; jewel.TimesImbued = 50; } else if (armor != null) { armor.Attributes.LowerRegCost = 12; armor.ArmorAttributes.MageArmor = 1; armor.LootType = LootType.Blessed; armor.Hue = 1157; armor.Insured = false; armor.TimesImbued = 50; armor.StrRequirement = 0; armor.Weight = 0; } } cont = new Bag(); cont.Name = "Weapon Bag"; // Weapons PlaceItemIn(cont, 30, 35, new CompositeBow()); PlaceItemIn(cont, 60, 35, new Arrow(500)); PlaceItemIn(cont, 90, 35, new RepeatingCrossbow()); PlaceItemIn(cont, 30, 68, new Bolt(500)); PlaceItemIn(cont, 45, 68, new ShortSpear()); PlaceItemIn(cont, 75, 68, new Hatchet()); PlaceItemIn(cont, 90, 68, new QuarterStaff()); PlaceItemIn(cont, 30, 118, new BookOfChivalry((UInt64)0x3FF)); PlaceItemIn(cont, 60, 118, new BookOfNinjitsu()); PlaceItemIn(this, 100, 0, cont); for (int i = 0; i < cont.Items.Count; i++) { BaseRanged bow = cont.Items[i] as BaseRanged; BaseMeleeWeapon melee = cont.Items[i] as BaseMeleeWeapon; if (bow != null) { bow.Attributes.WeaponSpeed = 35; bow.Attributes.RegenHits = 20; bow.TimesImbued = 50; bow.DurabilityLevel = WeaponDurabilityLevel.Regular; bow.Hue = 1161; bow.LootType = LootType.Blessed; bow.TimesImbued = 50; } else if (melee != null) { melee.Attributes.WeaponSpeed = 35; melee.Attributes.RegenHits = 20; melee.TimesImbued = 50; melee.DurabilityLevel = WeaponDurabilityLevel.Regular; melee.Hue = 1161; melee.LootType = LootType.Blessed; melee.TimesImbued = 50; } } }