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 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 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 override bool OnBeforeDeath() { BoneMagi rm = new BoneMagi(); 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( 25 )) { 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 ); 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 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 void OnResponse( NetState state, RelayInfo info ) { PlayerMobile pm = m_Mobile as PlayerMobile; if ( info.ButtonID == 1 && !m_House.Deleted && pm != null ) { if ( m_House.IsOwner( m_Mobile ) ) { if ( m_House.FindGuildstone() != null ) { m_Mobile.SendLocalizedMessage( 501389 ); // You cannot redeed a house with a guildstone inside. return; } /*else if ( m_House.PlayerVendors.Count > 0 ) { m_Mobile.SendLocalizedMessage( 503236 ); // You need to collect your vendor's belongings before moving. return; }*/ else if ( m_House.HasRentedVendors && m_House.VendorInventories.Count > 0 ) { m_Mobile.SendLocalizedMessage( 1062679 ); // You cannot do that while you still have contract vendors or unclaimed contract vendor inventory in your house. return; } else if ( m_House.HasRentedVendors ) { m_Mobile.SendLocalizedMessage( 1062680 ); // You cannot do that that while you still have contract vendors in your house. return; } else if ( m_House.VendorInventories.Count > 0 ) { m_Mobile.SendLocalizedMessage( 1062681 ); // You cannot do that that while you still have unclaimed contract vendor inventory in your house. return; } Item toGive = null; if ( m_House.IsAosRules ) { if (m_House.Price > 0) { Bag bag = new Bag(); bag.DropItem(new BankCheck(m_House.Price)); Item deed = m_House.GetDeed(); if (deed != null) // deed == null <=> No deed exists for the house type { bag.DropItem(deed); toGive = bag as Item; } else bag.Delete(); } else toGive = m_House.GetDeed(); } else { toGive = m_House.GetDeed(); if ( toGive == null && m_House.Price > 0 ) toGive = new BankCheck( m_House.Price ); } if ( toGive != null ) { BankBox box = m_Mobile.BankBox; if ( box != null && box.TryDropItem( m_Mobile, toGive, false ) ) { if (toGive is BankCheck) m_Mobile.SendLocalizedMessage(1060397, ((BankCheck)toGive).Worth.ToString()); // ~1_AMOUNT~ gold has been deposited into your bank box. else if (toGive is HouseDeed) m_Mobile.SendMessage("The house deed has been placed in your bank box."); else if (toGive is Container) m_Mobile.SendMessage("The house deed and a check containing the house value have been placed in your bank box."); if ( pm.HasDonated ) { m_House.KillVendors( true ); HouseDecayingCrate crate = m_House.MoveAllDecayingToCrate(); if ( crate.Items.Count == 0 ) crate.Delete(); else m_Mobile.BankBox.DropItem( crate ); } m_Mobile.CloseGump( typeof( ConfirmCommitGump ) ); m_House.RemoveKeys( m_Mobile ); m_House.Delete(); } else { toGive.Delete(); m_Mobile.SendLocalizedMessage( 500390 ); // Your bank box is full. } } else m_Mobile.SendMessage( "Unable to refund house. Please contact a Developer." ); } else m_Mobile.SendLocalizedMessage( 501320 ); // Only the house owner may do this. } }
public override void OnDoubleClick(Mobile from) { if (IsChildOf(from.BankBox)) { if (from.AccessLevel == AccessLevel.Player && Owner != from) { from.SendAsciiMessage("This is not your item, only the owner can claim this."); return; } Backpack bp = new Backpack { Hue = 1170, Name = "Gift bag"}; //PvP Bag pvpBag = new Bag {Hue = 1, Name = "Gift bag"}; pvpBag.DropItem(new FlamestrikeScroll {Amount = 200, Name = "Flame Strike (gift)"}); pvpBag.DropItem(new ManaPotion { Amount = 500, Name = "Mana Potion (gift)" }); pvpBag.DropItem(new GreaterHealPotion { Amount = 500, Name = "greater heal potion (gift)" }); pvpBag.DropItem(new KillRemoveBall {Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); //Armor Bag armorBag = new Bag { Hue = 1218, Name = "Gift bag" }; armorBag.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)"}); armorBag.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); Bag armorBag2 = new Bag { Hue = 1218, Name = "Gift bag" }; armorBag2.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag2.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag2.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag2.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag2.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag2.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag2.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); Bag armorBag3 = new Bag { Hue = 1218, Name = "Gift bag" }; armorBag3.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag3.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag3.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag3.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag3.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag3.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag3.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); //Add to backpack bp.DropItem(new Robe{Hue = 1, Name = "robe (gift)"}); bp.DropItem(new BankCheck(80000) {Name = "(gift)" }); bp.DropItem(new ExceptionalWeaponCrystal()); bp.DropItem(new ExceptionalWeaponCrystal()); bp.DropItem(pvpBag); bp.DropItem(armorBag); bp.DropItem(armorBag2); bp.DropItem(armorBag3); //Add to bank from.BankBox.DropItem(bp); from.SendAsciiMessage("Your items have been placed in a backpack in your bank box"); Delete(); } else { from.SendAsciiMessage("That must be in your bank box for you to use it."); } }
public override void OnDoubleClick(Mobile from) { if (IsChildOf(from.BankBox)) { if (from.AccessLevel == AccessLevel.Player && Owner != from) { from.SendAsciiMessage("This is not your item, only the owner can claim this."); return; } Backpack bp = new Backpack { Hue = 1170, Name = "Gift bag" }; Bag pvmBag = new Bag { Hue = 1, Name = "Gift bag" }; pvmBag.DropItem(new BladeSpiritsScroll { Amount = 200, Name = "Blade spirit (gift)" }); pvmBag.DropItem(new EnergyVortexScroll { Amount = 100, Name = "Energy vortex (gift)" }); pvmBag.DropItem(new ManaPotion { Amount = 100, Name = "Mana Potion (gift)" }); pvmBag.DropItem(new Arrow { Amount = 10000, Name = "arrow (gift)" }); pvmBag.DropItem(new Bloodmoss { Amount = 400, Name = "Blood Mooss (gift)" }); pvmBag.DropItem(new MandrakeRoot { Amount = 400, Name = "Mandrake Root (gift)" }); pvmBag.DropItem(new Ginseng { Amount = 400, Name = "Ginseng (gift)" }); pvmBag.DropItem(new BlackPearl { Amount = 400, Name = "Black Pearl (gift)" }); pvmBag.DropItem(new SpidersSilk { Amount = 400, Name = "Spiders' Silk (gift)" }); pvmBag.DropItem(new SulfurousAsh { Amount = 400, Name = "Sulfurous Ash (gift)" }); pvmBag.DropItem(new Nightshade { Amount = 400, Name = "Nightshade (gift)" }); pvmBag.DropItem(new Garlic { Amount = 400, Name = "Garlic (gift)" }); //Armor Bag armorBag = new Bag { Hue = 1218 }; armorBag.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); //Mount Horse horse = new Horse { ItemID = 16034, BodyValue = 120, Name = "Mustang", ControlMaster = from, Controlled = true, MinTameSkill = 100.0, Hue = Utility.Random(4, 900) }; //Add to backpack bp.DropItem(new ShrinkItem(horse)); bp.DropItem(new Robe { Hue = 1963, Name = "robe (gift)" }); bp.DropItem(new BankCheck(125000) { Name = "(gift)" }); bp.DropItem(pvmBag); bp.DropItem(armorBag); bp.DropItem(new ExceptionalWeaponCrystal()); //Add to bank from.BankBox.DropItem(bp); Delete(); } else { from.SendAsciiMessage("That must be in your bank box for you to use it."); } }
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); }
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 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; }
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 OnTalk( PlayerMobile player, bool contextMenu ) { Direction = this.GetDirectionTo( player ); QuestSystem qs = player.Quest; if ( qs is HaochisTrialsQuest ) { HaochisTrialsQuest htq = qs as HaochisTrialsQuest; if ( qs.IsObjectiveInProgress( typeof( SpeakToDaimyoHaochiObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( SpeakToDaimyoHaochiObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new DaimyoHaochiBeginConversation() ); qs.AddObjective( new FollowGreenPathObjective() ); } if ( qs.IsObjectiveInProgress( typeof( KillRoninsOrSoulsObjective ) ) ) { bool ronins = false; if ( htq.KilledRonins > htq.KilledSouls ) { ronins = true; } if ( ronins ) { qs.AddConversation( new ContinueSlayingRoninsConversation() ); } else if ( htq.KilledSouls > 0 ) { qs.AddConversation( new ContinueSlayingSoulsConversation() ); } } if ( qs.IsObjectiveInProgress( typeof( FirstTrialCompleteObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( FirstTrialCompleteObjective ) ); if ( obj != null ) { obj.Complete(); } if ( htq.KilledRonins == 3 ) { qs.AddConversation( new ThanksForRoninsConversation() ); } if ( htq.KilledSouls == 3 ) { qs.AddConversation( new ThanksForSoulsConversation() ); } player.AddToBackpack( new LeatherDo() ); qs.AddObjective( new FollowYellowPathObjective() ); } if ( qs.IsObjectiveInProgress( typeof( SecondTrialCompleteObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( SecondTrialCompleteObjective ) ); if ( obj != null ) { obj.Complete(); } if ( htq.Opponent == OpponentType.FierceDragon ) { qs.AddConversation( new DragonConversation() ); } if ( htq.Opponent == OpponentType.DeadlyImp ) { qs.AddConversation( new ImpConversation() ); } player.AddToBackpack( new LeatherSuneate() ); qs.AddObjective( new FollowBluePathObjective() ); } if ( qs.IsObjectiveInProgress( typeof( ThirdTrialCompleteObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( ThirdTrialCompleteObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new HaochiSmilesConversation() ); player.AddToBackpack( new LeatherHiroSode() ); qs.AddObjective( new FollowRedPathObjective() ); } if ( qs.IsObjectiveInProgress( typeof( MadeChoiceObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( MadeChoiceObjective ) ); if ( obj != null ) { obj.Complete(); } if ( htq.Choice == ChoiceType.Gold ) { qs.AddConversation( new RespectForGoldConversation() ); } if ( htq.Choice == ChoiceType.Cats ) { qs.AddConversation( new RespectForCatsConversation() ); } Bag bag = new Bag(); bag.Hue = 0x660; bag.DropItem( new LeatherHiroSode() ); bag.DropItem( new JinBaori() ); player.AddToBackpack( bag ); qs.AddObjective( new RetrieveKatanaObjective() ); } if ( qs.IsObjectiveInProgress( typeof( GiveSwordDaimyoObjective ) ) ) { List<Item> list = player.Backpack.Items; DaimyoHaochisKatana katana = null; for ( int i = 0; i < list.Count; i++ ) { if ( list[i] is DaimyoHaochisKatana ) { katana = list[i] as DaimyoHaochisKatana; break; } } if ( katana == null ) { qs.AddConversation( new WithoutSwordConversation() ); } else { katana.Delete(); QuestObjective obj = qs.FindObjective( typeof( GiveSwordDaimyoObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new ThanksForSwordConversation() ); qs.AddObjective( new LightCandleObjective() ); } } if ( qs.IsObjectiveInProgress( typeof( CandleCompleteObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( CandleCompleteObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new WellDoneConversation() ); qs.AddObjective( new KillNinjaObjective() ); } if ( qs.IsObjectiveInProgress( typeof( ExecutionsCompleteObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( ExecutionsCompleteObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new FirewellConversation() ); BaseWeapon weapon = new Daisho(); BaseRunicTool.ApplyAttributesTo( weapon, Utility.Random( 1, 3 ), 10, 30 ); player.AddToBackpack( weapon ); BaseArmor armor = new LeatherDo(); BaseRunicTool.ApplyAttributesTo( armor, Utility.Random( 1, 3 ), 10, 20 ); player.AddToBackpack( armor ); qs.Complete(); } } }
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 void ParticipantGift( Mobile from ) { if ( m_GiftList.Count == 0 ) { return; } else { Bag bag = new Bag(); bag.Name = "Participation Reward"; bag.Hue = 33; for( int i = 0; i < m_GiftList.Count; i++ ) { Item item = m_GiftList[i]; bag.DropItem( item ); } from.Backpack.DropItem( bag ); } }
private static void CreateItens(bool pImportItensToPlayer) { Bag bagItens = new Bag(); bagItens.Name = "Itens de " + sphereCharName; bagItens.Hue = 1153; Bag bagGold = new Bag(); Bag bagOres = new Bag(); Bag bagIngots = new Bag(); Bag bagArmor = new Bag(); Bag bagWeapon = new Bag(); Bag bagMount = new Bag(); Bag bagOther = new Bag(); Bag bagPotion = new Bag(); Bag bagRegs = new Bag(); Bag bagCloth = new Bag(); Bag bagContainer = new Bag(); Bag bagMaps = new Bag(); Bag bagPlateOutras = new Bag(); bagPlateOutras.Hue = DimensionsNewAge.Scripts.HueOreConst.HueIron; bagArmor.DropItem(bagPlateOutras); Bag bagPlateRusty = new Bag(); bagPlateRusty.Hue = DimensionsNewAge.Scripts.HueOreConst.HueRusty; bagArmor.DropItem(bagPlateRusty); Bag bagPlateOldCopper = new Bag(); bagArmor.DropItem(bagPlateOldCopper); bagPlateOldCopper.Hue = DimensionsNewAge.Scripts.HueOreConst.HueOldCopper; Bag bagPlateDullCopper = new Bag(); bagArmor.DropItem(bagPlateDullCopper); bagPlateDullCopper.Hue = DimensionsNewAge.Scripts.HueOreConst.HueDullCopper; Bag bagPlateRuby = new Bag(); bagPlateRuby.Hue = DimensionsNewAge.Scripts.HueOreConst.HueRuby; bagArmor.DropItem(bagPlateRuby); Bag bagPlateCopper = new Bag(); bagPlateCopper.Hue = DimensionsNewAge.Scripts.HueOreConst.HueCopper; bagArmor.DropItem(bagPlateCopper); Bag bagPlateBronze = new Bag(); bagPlateBronze.Hue = DimensionsNewAge.Scripts.HueOreConst.HueBronze; bagArmor.DropItem(bagPlateBronze); Bag bagPlateShadowIron = new Bag(); bagPlateShadowIron.Hue = DimensionsNewAge.Scripts.HueOreConst.HueShadow; bagArmor.DropItem(bagPlateShadowIron); Bag bagPlateSilver = new Bag(); bagPlateSilver.Hue = DimensionsNewAge.Scripts.HueOreConst.HueSilver; bagArmor.DropItem(bagPlateSilver); Bag bagPlateMercury = new Bag(); bagPlateMercury.Hue = DimensionsNewAge.Scripts.HueOreConst.HueMercury; bagArmor.DropItem(bagPlateMercury); Bag bagPlateRose = new Bag(); bagPlateRose.Hue = DimensionsNewAge.Scripts.HueOreConst.HueRose; bagArmor.DropItem(bagPlateRose); Bag bagPlateGold = new Bag(); bagPlateGold.Hue = DimensionsNewAge.Scripts.HueOreConst.HueGold; bagArmor.DropItem(bagPlateGold); Bag bagPlateAgapite = new Bag(); bagPlateAgapite.Hue = DimensionsNewAge.Scripts.HueOreConst.HueAgapite; bagArmor.DropItem(bagPlateAgapite); Bag bagPlateVerite = new Bag(); bagPlateVerite.Hue = DimensionsNewAge.Scripts.HueOreConst.HueVerite; bagArmor.DropItem(bagPlateVerite); Bag bagPlatePlutonio = new Bag(); bagPlatePlutonio.Hue = DimensionsNewAge.Scripts.HueOreConst.HuePlutonio; bagArmor.DropItem(bagPlatePlutonio); Bag bagPlateBloodRock = new Bag(); bagPlateBloodRock.Hue = DimensionsNewAge.Scripts.HueOreConst.HueBloodRock; bagArmor.DropItem(bagPlateBloodRock); Bag bagPlateValorite = new Bag(); bagPlateValorite.Hue = DimensionsNewAge.Scripts.HueOreConst.HueValorite; bagArmor.DropItem(bagPlateValorite); Bag bagPlateBlackRock = new Bag(); bagPlateBlackRock.Hue = DimensionsNewAge.Scripts.HueOreConst.HueBlackRock; bagArmor.DropItem(bagPlateBlackRock); Bag bagPlateMytheril = new Bag(); bagPlateMytheril.Hue = DimensionsNewAge.Scripts.HueOreConst.HueAqua; bagArmor.DropItem(bagPlateMytheril); Bag bagPlateAqua = new Bag(); bagPlateAqua.Hue = DimensionsNewAge.Scripts.HueOreConst.HueAqua; bagArmor.DropItem(bagPlateAqua); bagItens.DropItem(bagOres); bagItens.DropItem(bagIngots); bagItens.DropItem(bagArmor); bagItens.DropItem(bagWeapon); bagItens.DropItem(bagMount); bagItens.DropItem(bagOther); bagItens.DropItem(bagGold); bagItens.DropItem(bagPotion); bagItens.DropItem(bagRegs); bagItens.DropItem(bagCloth); bagItens.DropItem(bagContainer); bagItens.DropItem(bagMaps); Spellbook book = new Spellbook(); book.Content = ulong.MaxValue; bagItens.DropItem(book); bagItens.DropItem(new Runebook()); bagItens.DropItem(new Runebook()); if (pImportItensToPlayer) { foreach (Mobile mobile in World.Mobiles.Values) { if (mobile is PlayerMobile && mobile.Account.Username == runuoAccName && mobile.Name == runuoCharName) { mobile.BankBox.DropItem(bagItens); break; } } } else { caller.Backpack.DropItem(bagItens); } foreach (SphereItemClass sphereItem in sphereItensListToAcc) { try { object item; if (sphereItem.itemType == typeof(TreasureMap)) item = new TreasureMap(new Random().Next(1, 3), Map.Felucca); else item = RewardUtil.CreateRewardInstance(sphereItem.itemType); if (item is Item) { if (((Item)item).Stackable) { ((Item)item).Amount = sphereItem.qtAmount; } } if (item is BaseOre) { bagOres.DropItem((Item)item); } else if (item is Gold) { bagGold.DropItem((Item)item); } else if (item is BaseIngot) { bagIngots.DropItem((Item)item); } else if (item is BaseWeapon) { bagWeapon.DropItem((Item)item); } else if (item is BaseReagent) { bagRegs.DropItem((Item)item); } else if (item is LockableContainer) { bagContainer.DropItem((Item)item); } else if (item is TreasureMap) { bagMaps.DropItem((Item)item); } else if (item is BaseArmor) { bagPlateOutras.DropItem((Item)item); if (item is PlateChestRusty || item is PlateArmsRusty || item is PlateLegsRusty || item is PlateCloseHelmRusty || item is PlateGorgetRusty || item is PlateGlovesRusty || item is SwordRusty || item is WarMaceRusty || item is KryssRusty || item is WarMaceRusty || item is HeaterShieldRusty || item is BowRusty) { bagPlateRusty.DropItem((Item)item); } if (item is PlateChestOldCopper || item is PlateArmsOldCopper || item is PlateLegsOldCopper || item is PlateCloseHelmOldCopper || item is PlateGorgetOldCopper || item is PlateGlovesOldCopper || item is SwordOldCopper || item is WarMaceOldCopper || item is KryssOldCopper || item is WarMaceOldCopper || item is HeaterShieldOldCopper || item is BowOldCopper) { bagPlateOldCopper.DropItem((Item)item); } if (item is PlateChestDullCopper || item is PlateArmsDullCopper || item is PlateLegsDullCopper || item is PlateCloseHelmDullCopper || item is PlateGorgetDullCopper || item is PlateGlovesDullCopper || item is SwordDullCopper || item is WarMaceDullCopper || item is KryssDullCopper || item is WarMaceDullCopper || item is HeaterShieldDullCopper || item is BowDullCopper) { bagPlateDullCopper.DropItem((Item)item); } if (item is PlateChestRuby || item is PlateArmsRuby || item is PlateLegsRuby || item is PlateCloseHelmRuby || item is PlateGorgetRuby || item is PlateGlovesRuby || item is SwordRuby || item is WarMaceRuby || item is KryssRuby || item is WarMaceRuby || item is HeaterShieldRuby || item is BowRuby) { bagPlateRuby.DropItem((Item)item); } if (item is PlateChestCopper || item is PlateArmsCopper || item is PlateLegsCopper || item is PlateCloseHelmCopper || item is PlateGorgetCopper || item is PlateGlovesCopper || item is SwordCopper || item is WarMaceCopper || item is KryssCopper || item is WarMaceCopper || item is HeaterShieldCopper || item is BowCopper) { bagPlateCopper.DropItem((Item)item); } if (item is PlateChestBronze || item is PlateArmsBronze || item is PlateLegsBronze || item is PlateCloseHelmBronze || item is PlateGorgetBronze || item is PlateGlovesBronze || item is SwordBronze || item is WarMaceBronze || item is KryssBronze || item is WarMaceBronze || item is HeaterShieldBronze || item is BowBronze) { bagPlateBronze.DropItem((Item)item); } if (item is PlateChestShadow || item is PlateArmsShadow || item is PlateLegsShadow || item is PlateCloseHelmShadow || item is PlateGorgetShadow || item is PlateGlovesShadow || item is SwordShadow || item is WarMaceShadow || item is KryssShadow || item is WarMaceShadow || item is HeaterShieldShadow || item is BowShadow) { bagPlateShadowIron.DropItem((Item)item); } if (item is PlateChestSilver || item is PlateArmsSilver || item is PlateLegsSilver || item is PlateCloseHelmSilver || item is PlateGorgetSilver || item is PlateGlovesSilver || item is SwordSilver || item is WarMaceSilver || item is KryssSilver || item is WarMaceSilver || item is HeaterShieldSilver || item is BowSilver) { bagPlateSilver.DropItem((Item)item); } if (item is PlateChestMercury || item is PlateArmsMercury || item is PlateLegsMercury || item is PlateCloseHelmMercury || item is PlateGorgetMercury || item is PlateGlovesMercury || item is SwordMercury || item is WarMaceMercury || item is KryssMercury || item is WarMaceMercury || item is HeaterShieldMercury || item is BowMercury) { bagPlateMercury.DropItem((Item)item); } if (item is PlateChestRose || item is PlateArmsRose || item is PlateLegsRose || item is PlateCloseHelmRose || item is PlateGorgetRose || item is PlateGlovesRose || item is SwordRose || item is WarMaceRose || item is KryssRose || item is WarMaceRose || item is HeaterShieldRose || item is BowRose) { bagPlateRose.DropItem((Item)item); } if (item is PlateChestGold || item is PlateArmsGold || item is PlateLegsGold || item is PlateCloseHelmGold || item is PlateGorgetGold || item is PlateGlovesGold || item is SwordGold || item is WarMaceGold || item is KryssGold || item is WarMaceGold || item is HeaterShieldGold || item is BowGold) { bagPlateGold.DropItem((Item)item); } if (item is PlateChestAgapite || item is PlateArmsAgapite || item is PlateLegsAgapite || item is PlateCloseHelmAgapite || item is PlateGorgetAgapite || item is PlateGlovesAgapite || item is SwordAgapite || item is WarMaceAgapite || item is KryssAgapite || item is WarMaceAgapite || item is HeaterShieldAgapite || item is BowAgapite) { bagPlateAgapite.DropItem((Item)item); } if (item is PlateChestVerite || item is PlateArmsVerite || item is PlateLegsVerite || item is PlateCloseHelmVerite || item is PlateGorgetVerite || item is PlateGlovesVerite || item is SwordVerite || item is WarMaceVerite || item is KryssVerite || item is WarMaceVerite || item is HeaterShieldVerite || item is BowVerite) { bagPlateVerite.DropItem((Item)item); } if (item is PlateChestPlutonio || item is PlateArmsPlutonio || item is PlateLegsPlutonio || item is PlateCloseHelmPlutonio || item is PlateGorgetPlutonio || item is PlateGlovesPlutonio || item is SwordPlutonio || item is WarMacePlutonio || item is KryssPlutonio || item is WarMacePlutonio || item is HeaterShieldPlutonio || item is BowPlutonio) { bagPlatePlutonio.DropItem((Item)item); } if (item is PlateChestBloodRock || item is PlateArmsBloodRock || item is PlateLegsBloodRock || item is PlateCloseHelmBloodRock || item is PlateGorgetBloodRock || item is PlateGlovesBloodRock || item is SwordBloodRock || item is WarMaceBloodRock || item is KryssBloodRock || item is WarMaceBloodRock || item is HeaterShieldBloodRock || item is BowBloodRock) { bagPlateBloodRock.DropItem((Item)item); } if (item is PlateChestValorite || item is PlateArmsValorite || item is PlateLegsValorite || item is PlateCloseHelmValorite || item is PlateGorgetValorite || item is PlateGlovesValorite || item is SwordValorite || item is WarMaceValorite || item is KryssValorite || item is WarMaceValorite || item is HeaterShieldValorite || item is BowValorite) { bagPlateValorite.DropItem((Item)item); } if (item is PlateChestBlackRock || item is PlateArmsBlackRock || item is PlateLegsBlackRock || item is PlateCloseHelmBlackRock || item is PlateGorgetBlackRock || item is PlateGlovesBlackRock || item is SwordBlackRock || item is WarMaceBlackRock || item is KryssBlackRock || item is WarMaceBlackRock || item is HeaterShieldBlackRock || item is BowBlackRock) { bagPlateBlackRock.DropItem((Item)item); } if (item is PlateChestMytheril || item is PlateArmsMytheril || item is PlateLegsMytheril || item is PlateCloseHelmMytheril || item is PlateGorgetMytheril || item is PlateGlovesMytheril || item is SwordMytheril || item is WarMaceMytheril || item is KryssMytheril || item is WarMaceMytheril || item is HeaterShieldMytheril || item is BowMytheril) { bagPlateMytheril.DropItem((Item)item); } if (item is PlateChestAqua || item is PlateArmsAqua || item is PlateLegsAqua || item is PlateCloseHelmAqua || item is PlateGorgetAqua || item is PlateGlovesAqua || item is SwordAqua || item is WarMaceAqua || item is KryssAqua || item is WarMaceAqua || item is HeaterShieldAqua || item is BowAqua) { bagPlateAqua.DropItem((Item)item); } } else if (item is BaseClothing) { bagCloth.DropItem((Item)item); } else if (item is BasePotion) { //for (int i = 0; i <= sphereItem.qtAmount - 1; i++) //{ // object itemPotion = RewardUtil.CreateRewardInstance(sphereItem.itemType); // bagPotion.DropItem((Item)itemPotion); //} bagPotion.DropItem((Item)item); } else if (item is BaseCreature) { if (sphereItem.Hue != 1) { ((BaseCreature)item).Hue = sphereItem.Hue; } ShrinkItem shrunkenPet = new ShrinkItem((BaseCreature)item); bagMount.DropItem(shrunkenPet); } else { bagOther.DropItem((Item)item); } if (item is Server.Mobiles.Horse && sphereItem.Hue != 1) { ((Server.Mobiles.Horse)item).Hue = DimensionsNewAge.Scripts.HueItemConst.GetNewHueBySphereHue(sphereItem.Hue); ((Server.Mobiles.Horse)item).Name = "Wild Horse"; } if (item is Server.Items.MagicDyeTub && sphereItem.Hue != 1) ((Server.Items.MagicDyeTub)item).DyedHue = DimensionsNewAge.Scripts.HueItemConst.GetNewHueBySphereHue(sphereItem.Hue); if (item is Server.Items.BaseClothing && sphereItem.Hue != 1) ((Server.Items.BaseClothing)item).Hue = DimensionsNewAge.Scripts.HueItemConst.GetNewHueBySphereHue(sphereItem.Hue); } catch (Exception ex) { Logger.LogSphereImport(string.Format("CreateItens ERRO " + ex.Message), sphereCharName); } } if (bagOres.Items.Count == 0) bagOres.Delete(); if (bagIngots.Items.Count == 0) bagIngots.Delete(); if (bagArmor.Items.Count == 0) bagArmor.Delete(); if (bagWeapon.Items.Count == 0) bagWeapon.Delete(); if (bagMount.Items.Count == 0) bagMount.Delete(); if (bagOther.Items.Count == 0) bagOther.Delete(); if (bagGold.Items.Count == 0) bagGold.Delete(); if (bagPotion.Items.Count == 0) bagPotion.Delete(); if (bagRegs.Items.Count == 0) bagRegs.Delete(); if (bagCloth.Items.Count == 0) bagCloth.Delete(); if (bagContainer.Items.Count == 0) bagContainer.Delete(); if (bagMaps.Items.Count == 0) bagMaps.Delete(); if (bagPlateOutras.Items.Count == 0) bagPlateOutras.Delete(); if (bagPlateRusty.Items.Count == 0) bagPlateRusty.Delete(); if (bagPlateOldCopper.Items.Count == 0) bagPlateOldCopper.Delete(); if (bagPlateDullCopper.Items.Count == 0) bagPlateDullCopper.Delete(); if (bagPlateRuby.Items.Count == 0) bagPlateRuby.Delete(); if (bagPlateCopper.Items.Count == 0) bagPlateCopper.Delete(); if (bagPlateBronze.Items.Count == 0) bagPlateBronze.Delete(); if (bagPlateShadowIron.Items.Count == 0) bagPlateShadowIron.Delete(); if (bagPlateSilver.Items.Count == 0) bagPlateSilver.Delete(); if (bagPlateMercury.Items.Count == 0) bagPlateMercury.Delete(); if (bagPlateRose.Items.Count == 0) bagPlateRose.Delete(); if (bagPlateGold.Items.Count == 0) bagPlateGold.Delete(); if (bagPlateAgapite.Items.Count == 0) bagPlateAgapite.Delete(); if (bagPlateVerite.Items.Count == 0) bagPlateVerite.Delete(); if (bagPlatePlutonio.Items.Count == 0) bagPlatePlutonio.Delete(); if (bagPlateBloodRock.Items.Count == 0) bagPlateBloodRock.Delete(); if (bagPlateValorite.Items.Count == 0) bagPlateValorite.Delete(); if (bagPlateBlackRock.Items.Count == 0) bagPlateBlackRock.Delete(); if (bagPlateMytheril.Items.Count == 0) bagPlateMytheril.Delete(); if (bagPlateAqua.Items.Count == 0) bagPlateAqua.Delete(); }
public override bool OnBeforeDeath() { BoneMagi rm = new BoneMagi(); 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; } if (0.12 > Utility.RandomDouble()) { Item iob = Loot.RandomIOB(); bag.DropItem( iob ); } bag.DropItem( new Gold( 1000, 1500 )); if (IOBRegions.GetIOBStronghold(this) == IOBAlignment) { // 30% boost to gold PackGold( base.GetGold()/3 ); } // Category 4 MID rm.PackMagicItem(2, 3, 0.10); rm.PackMagicItem(2, 3, 0.05); rm.PackMagicItem(2, 3, 0.02); rm.PackMagicEquipment(2, 3, 0.60, 0.60); rm.PackMagicEquipment(2, 3, 0.25, 0.25); rm.AddItem( bag ); this.Delete(); return false; }
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 override void OnDoubleClick(Mobile from) { if (IsChildOf(from.BankBox)) { if (from.AccessLevel == AccessLevel.Player && Owner != from) { from.SendAsciiMessage("This is not your item, only the owner can claim this."); return; } Backpack bp = new Backpack { Hue = 1170, Name = "Gift bag" }; //PvP Bag pvpBag = new Bag { Hue = 1, Name = "Gift bag" }; pvpBag.DropItem(new FlamestrikeScroll { Amount = 200, Name = "Flame Strike (gift)" }); pvpBag.DropItem(new ManaPotion { Amount = 500, Name = "Mana Potion (gift)" }); pvpBag.DropItem(new GreaterHealPotion { Amount = 500, Name = "greater heal potion (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); pvpBag.DropItem(new KillRemoveBall { Name = "Kill remove ball (gift)" }); //Armor Bag armorBag = new Bag { Hue = 1218, Name = "Gift bag" }; armorBag.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); Bag armorBag2 = new Bag { Hue = 1218, Name = "Gift bag" }; armorBag2.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag2.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag2.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag2.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag2.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag2.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag2.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); Bag armorBag3 = new Bag { Hue = 1218, Name = "Gift bag" }; armorBag3.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag3.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag3.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag3.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag3.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag3.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag3.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); //Add to backpack bp.DropItem(new Robe { Hue = 1, Name = "robe (gift)" }); bp.DropItem(new BankCheck(80000) { Name = "(gift)" }); bp.DropItem(new ExceptionalWeaponCrystal()); bp.DropItem(new ExceptionalWeaponCrystal()); bp.DropItem(pvpBag); bp.DropItem(armorBag); bp.DropItem(armorBag2); bp.DropItem(armorBag3); //Add to bank from.BankBox.DropItem(bp); from.SendAsciiMessage("Your items have been placed in a backpack in your bank box"); Delete(); } else { from.SendAsciiMessage("That must be in your bank box for you to use it."); } }
public override void OnDoubleClick(Mobile from) { if (!from.InLOS(this.GetWorldLocation())) { from.SendLocalizedMessage(502800); // You can't see that. return; } if (from.GetDistanceToSqrt(this.GetWorldLocation()) > 4) { from.SendLocalizedMessage(500446); // That is too far away. return; } from.SendMessage("You have been given some supplies based on your skills."); //4 pouches for (int i = 0; i < 4; ++i) { Pouch p = new Pouch(); p.TrapType = TrapType.MagicTrap; p.TrapPower = 1; p.Hue = 0x25; PackItem(from, p); } if (from.Skills[SkillName.Magery].Value >= 50.0) { GiveLeatherArmor(from); } else { GiveBoneArmor(from); } if (from.Skills[SkillName.Magery].Value >= 50.0) { PackItem(from, new BagOfReagents()); } if (from.Skills[SkillName.Healing].Value >= 50.0) { PackItem(from, new Bandage(100)); } if (from.Skills[SkillName.Fencing].Value >= 50.0) { PackItem(from, new ShortSpear()); if (from.Skills[SkillName.Parry].Value >= 50.0) { GiveItem(from, new Kryss()); GiveItem(from, new MetalKiteShield()); } else { GiveItem(from, new Spear()); } } if (from.Skills[SkillName.Swords].Value >= 50.0) { if (from.Skills[SkillName.Parry].Value >= 50.0) { GiveItem(from, new MetalKiteShield()); } GiveItem(from, new Katana()); GiveItem(from, new Halberd()); } if (from.Skills[SkillName.Macing].Value >= 50.0) { if (from.Skills[SkillName.Parry].Value >= 50.0) { GiveItem(from, new MetalKiteShield()); } GiveItem(from, new WarAxe()); GiveItem(from, new WarHammer()); } if (from.Skills[SkillName.Archery].Value >= 50.0) { GiveItem(from, new HeavyCrossbow()); GiveItem(from, new Crossbow()); GiveItem(from, new Bow()); PackItem(from, new Bolt(100)); PackItem(from, new Arrow(100)); } if (from.Skills[SkillName.Poisoning].Value >= 50.0) { for (int i = 0; i < 5; i++) { PackItem(from, new GreaterPoisonPotion()); } } PlayerMobile pm = (PlayerMobile)(from); Container bag = new Bag(); Container backpack = pm.Backpack; for (int i = 0; i < 20; i++) { GreaterCurePotion cure = new GreaterCurePotion(); bag.DropItem(cure); } for (int i = 0; i < 20; i++) { GreaterHealPotion heal = new GreaterHealPotion(); bag.DropItem(heal); } for (int i = 0; i < 20; i++) { TotalRefreshPotion refresh = new TotalRefreshPotion(); bag.DropItem(refresh); } backpack.DropItem(bag); }
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 override bool OnBeforeDeath() { BoneMagi rm = new BoneMagi(); 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 ); LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 32; AddItem( gloves ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x3A8; helm.LootType = LootType.Blessed; AddItem( helm ); Cloak cloak = new Cloak(); cloak.Hue = 32; AddItem( cloak ); Kilt kilt = new Kilt(); kilt.Hue = 32; AddItem( kilt ); Sandals sandals = new Sandals(); sandals.Hue = 32; AddItem( sandals ); this.Delete(); return false; }
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 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"); } }
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; }
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 ); }
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 void OnOptionSelected(Mobile from, int choice) { var bag = new Bag(); 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 List<Item> ComputeRewards(bool full) { List<Item> list = new List<Item>(); double psChance = 0; int iPSMin = 0; int iPSMax = 0; int itemAmount = (Level + 1) * this.Entries.Length; switch (Level) { default: case 0: // Easy psChance = 0.03; iPSMin = 5; iPSMax = 5; break; case 1: // Medium psChance = 0.05; iPSMin = 5; iPSMax = 5; break; case 2: // Hard psChance = 0.10; iPSMin = 5; iPSMax = 5; break; case 3: // Very Hard psChance = 0.20; iPSMin = 10; iPSMax = 10; break; } psChance += this.AmountMax / 200.0; psChance += this.Entries.Length / 60.0; Container cont = new Bag(); int minProp = Level + 3; if (minProp > 5) minProp = 5; LootPackEntry.AddRandomLoot(cont, (Level + 1) * 3, (int)(Level * 300 + AmountMax / 20.0 * 150 + Entries.Length / 6.0 * 150), minProp, 5, 50, 100); cont.DropItem(HuntBodUtility.GetLargeRewardItem(Level)); if (psChance >= Utility.RandomDouble() && iPSMin > 0 && iPSMax > 0) cont.DropItem(PowerScroll.CreateRandomNoCraft(iPSMin, iPSMax)); list.Add(cont); return list; }
public ForeverWelcomeBag() : base() { Name = "Forever Welcome Bag"; Hue = 196; Item item = new MiniatureHorse(); DropItem(item); item.X = 30; item.Y = 76; 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 FireworksWand(); item.Name = "Launch Day 2013"; DropItem(item); item.X = 94; item.Y = 34; /*item = new BankCheck( 1000 ); * DropItem( item ); * item.X = 52; * item.Y = 36;*/ item = new HalfApron(); item.Name = "Launch Day 2013"; //item.loottype = Blessed; DropItem(item); item.X = 23; item.Y = 53; /* if ( 1.00 > Utility.RandomDouble() )// 2 percent - multipy number x 100 to get percent * * switch (Utility.Random(5)) * { * * case 0: * PackItem = new Skirt(); * Name = "Launch Day 2013"; * * case 1: * Item = new Boots(); * Name = "Launch Day 2013"; * DropItem( item ); * item.X = 23; * item.Y = 53; * * case 2: * Item = new StrawHat(); * Name = "Launch Day 2013"; * DropItem( item ); * item.X = 23; * item.Y = 53; * * case 3: * Item = new Bandana(); * Name = "Launch Day 2013"; * DropItem( item ); * item.X = 23; * item.Y = 53; * * case 4:*/ }
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; }
// /* // public static void GiveRewardTo( PlayerMobile player ) // { // player.PlaceInBackpack( new RewardBag() ); // //Item reward = new PowderOfTemperament(); // //player.PlaceInBackpack( reward ); // /* // //if( Utility.RandomDouble() < 0.95 ) // //{ // player.PlaceInBackpack( new RewardBag() ); // //player.PlaceInBackpack( new BallOfSummoning() ); // //player.PlaceInBackpack( new MidasTouch() ); // //PackItem( new BallOfSummoning() ); // //} // */ // Map map = player.Map; // DemonKnight daemon = new DemonKnight(); // // daemon.MoveToWorld( player.Location, map ); // }*/ public static void GiveRewardTo( PlayerMobile player ) { Map map = player.Map; Bag rewardBag = new Bag(); rewardBag.Hue = Utility.RandomDyedHue(); LootPackEntry.AddRandomLoot(rewardBag, 5, 600, 5, 5, 50, 100); rewardBag.DropItem(new BankCheck( 5000 )); if (0.08 > Utility.RandomDouble()) rewardBag.DropItem(new TreasureMap(6, Map.Felucca)); else rewardBag.DropItem(new TreasureMap(Utility.RandomMinMax(3, 5), Map.Felucca)); //Add arty if (0.1 > Utility.RandomDouble()) { int rnd = Utility.Random(4); switch (rnd) { case 0: rewardBag.DropItem(new YetisPads()); break; //Yetis pads case 1: rewardBag.DropItem(new Necronomicon()); break; case 2: rewardBag.DropItem(new Behemoth()); break; case 3: rewardBag.DropItem(new DragonClenchingClaws()); break; //case 4: rewardBag.DropItem(CreatePaladinArmor(typeof(PlateGorget), "Platemail Gorget", Utility.Random(5))); break; } if (0.80 > Utility.RandomDouble()) { rewardBag.DropItem(new MidasTouch()); } } else if (0.80 > Utility.RandomDouble()) { rewardBag.DropItem(new MidasTouch()); } //player.PlaceInBackpack( rewardBag ); //if(!player.KarmaLocked) //player.Karma = Math.Min(15000, player.Karma + 1500); //player.SendMessage( "Reward bag has been placed in your backpack." ); if (player.PlaceInBackpack(rewardBag)) { //obj.Complete(); player.SendMessage( "Reward bag has been placed in your backpack." ); if (!player.KarmaLocked) player.Karma = Math.Min(15000, player.Karma + 1500); } else { if (!player.KarmaLocked) player.Karma = Math.Min(15000, player.Karma + 1500); player.SendMessage( "Your backpack if full, reward is on the ground." ); rewardBag.MoveToWorld( player.Location, map ); } }
public override void OnTalk( PlayerMobile player, bool contextMenu ) { Direction = this.GetDirectionTo( player ); QuestSystem qs = player.Quest; if ( qs is EminosUndertakingQuest ) { if ( qs.IsObjectiveInProgress( typeof( FindDaimyoEminoObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( FindDaimyoEminoObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new DaimyoEminoBeginConversation() ); qs.AddObjective( new FindEliteNinjaZoelObjective() ); } if ( qs.IsObjectiveInProgress( typeof( TakeGreenTeleporterObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( TakeGreenTeleporterObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new EminoSecondConversation() ); player.AddToBackpack( new NoteForZoel() ); player.AddToBackpack( new LeatherNinjaPants() ); player.AddToBackpack( new LeatherNinjaMitts() ); qs.AddObjective( new BringNoteToZoelObjective() ); } if ( qs.IsObjectiveInProgress( typeof( GoBackBlueTeleporterObjective ) ) ) { QuestObjective obj = qs.FindObjective( typeof( GoBackBlueTeleporterObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new FrownsConversation() ); Bag bag = new Bag(); bag.Hue = 0x660; bag.DropItem( new LeatherNinjaJacket() ); bag.DropItem( new LeatherNinjaHood() ); for ( int i = 0; i < 10; i++ ) { bag.DropItem( new LesserHealPotion() ); } player.AddToBackpack( bag ); qs.AddObjective( new TakeWhiteTeleporterObjective() ); } if ( qs.IsObjectiveInProgress( typeof( KillHenchmensObjective ) ) ) { qs.AddConversation( new ContinueKillHenchmensConversation() ); } if ( qs.IsObjectiveInProgress( typeof( ReturnToDaimyoObjective ) ) ) { List<Item> list = player.Backpack.Items; DaimyoEminosKatana katana = null; for ( int i = 0; i < list.Count; i++ ) { if ( list[i] is DaimyoEminosKatana ) { katana = list[i] as DaimyoEminosKatana; break; } } if ( katana == null ) { qs.AddConversation( new TakeSwordAgainConversation() ); } else { katana.Delete(); QuestObjective obj = qs.FindObjective( typeof( ReturnToDaimyoObjective ) ); if ( obj != null ) { obj.Complete(); } qs.AddConversation( new GiftsConversation() ); Kama kama = new Kama(); BaseRunicTool.ApplyAttributesTo( kama, 1, 10, 30 ); player.AddToBackpack( kama ); qs.Complete(); } } } }
public override void OnDoubleClick(Mobile from) { if (IsChildOf(from.BankBox)) { if (from.AccessLevel == AccessLevel.Player && Owner != from) { from.SendAsciiMessage("This is not your item, only the owner can claim this."); return; } Backpack bp = new Backpack { Hue = 1170, Name = "Gift bag" }; Bag pvmBag = new Bag {Hue = 1, Name = "Gift bag"}; pvmBag.DropItem(new BladeSpiritsScroll{Amount = 200, Name = "Blade spirit (gift)"}); pvmBag.DropItem(new EnergyVortexScroll{Amount = 100, Name = "Energy vortex (gift)"}); pvmBag.DropItem(new ManaPotion{Amount = 100, Name = "Mana Potion (gift)"}); pvmBag.DropItem(new Arrow{Amount = 10000, Name = "arrow (gift)"}); pvmBag.DropItem(new Bloodmoss{Amount = 400, Name = "Blood Mooss (gift)"}); pvmBag.DropItem(new MandrakeRoot { Amount = 400, Name = "Mandrake Root (gift)" }); pvmBag.DropItem(new Ginseng{Amount = 400, Name = "Ginseng (gift)"}); pvmBag.DropItem(new BlackPearl { Amount = 400, Name = "Black Pearl (gift)" }); pvmBag.DropItem(new SpidersSilk { Amount = 400, Name = "Spiders' Silk (gift)" }); pvmBag.DropItem(new SulfurousAsh { Amount = 400, Name = "Sulfurous Ash (gift)" }); pvmBag.DropItem(new Nightshade { Amount = 400, Name = "Nightshade (gift)" }); pvmBag.DropItem(new Garlic { Amount = 400, Name = "Garlic (gift)" }); //Armor Bag armorBag = new Bag { Hue = 1218 }; armorBag.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" }); armorBag.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" }); armorBag.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" }); armorBag.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" }); armorBag.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" }); armorBag.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" }); armorBag.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" }); //Mount Horse horse = new Horse { ItemID = 16034, BodyValue = 120, Name = "Mustang", ControlMaster = from, Controlled = true, MinTameSkill = 100.0, Hue = Utility.Random(4, 900) }; //Add to backpack bp.DropItem(new ShrinkItem(horse)); bp.DropItem(new Robe { Hue = 1963, Name = "robe (gift)"}); bp.DropItem(new BankCheck(125000) {Name = "(gift)"}); bp.DropItem(pvmBag); bp.DropItem(armorBag); bp.DropItem(new ExceptionalWeaponCrystal()); //Add to bank from.BankBox.DropItem(bp); Delete(); } else { from.SendAsciiMessage("That must be in your bank box for you to use it."); } }
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 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); }