public ToxicElemental () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "a toxic elemental"; Body = 13; Hue = 0x4001; BaseSoundID = 263; SetStr( 126, 152 ); SetDex( 166, 185 ); SetInt( 102, 121 ); SetSkill( SkillName.Wrestling, 66, 82 ); SetSkill( SkillName.Tactics, 62, 78 ); SetSkill( SkillName.MagicResist, 63, 74 ); SetSkill( SkillName.Magery, 67, 78 ); ControlSlots = 2; VirtualArmor = 40; SetFameLevel( 3 ); SetKarmaLevel( 3 ); Katana kat = new Katana(); kat.Movable = false; kat.Crafter = this; kat.Quality = WeaponQuality.Exceptional; AddItem( kat ); PackGold( 75, 200 ); PackMagicItems( 0, 3 ); PackMagicItems( 0, 4 ); }
public KeeperofthePowerScrolls() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = " Keeper of the PowerScrolls"; Body = 400; BaseSoundID = 0x4FB; Hue = 1072; SetStr( 300 ); SetDex( 300); SetInt( 300); SetHits( 600, 700 ); SetDamage( 30, 35 ); SetDamageType( ResistanceType.Physical, 60 ); SetDamageType( ResistanceType.Fire, 60 ); SetDamageType( ResistanceType.Cold, 60 ); SetDamageType( ResistanceType.Poison, 60 ); SetDamageType( ResistanceType.Energy, 60 ); SetResistance( ResistanceType.Physical, 50 ); SetResistance( ResistanceType.Fire, 45 ); SetResistance( ResistanceType.Cold, 45 ); SetResistance( ResistanceType.Poison, 45 ); SetResistance( ResistanceType.Energy, 50 ); SetSkill( SkillName.EvalInt, 125.1, 130.0 ); SetSkill( SkillName.Magery, 125.1, 130.0 ); SetSkill( SkillName.Meditation, 125.1, 130.0 ); SetSkill( SkillName.MagicResist, 140.5, 170.0 ); SetSkill( SkillName.Tactics, 125.1, 130.0 ); SetSkill( SkillName.Wrestling, 125.1, 130.0 ); Fame = 20000; Karma = -20000; VirtualArmor = 60; AddItem( new HoodedShroudOfShadows()); Katana weapon = new Katana(); weapon.Hue = 1153; weapon.Movable = false; AddItem(weapon); Tamable = false; PackGem(); PackGem(); PackPotion(); PackGold( 3000, 5000 ); PackScroll( 2, 8 ); PackMagicItems( 3, 5, 0.95, 0.95 ); PackMagicItems( 4, 5, 0.80, 0.65 ); PackMagicItems( 4, 5, 0.80, 0.65 ); PackSlayer(); }
public MilitiaFighter() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { InitStats( 40, 30, 5 ); Title = "the Militia Fighter"; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); Female = false; Body = 0x190; Name = NameList.RandomName( "male" ); Utility.AssignRandomHair( this ); Utility.AssignRandomFacialHair( this, HairHue ); AddItem( new ThighBoots( 0x1BB ) ); AddItem( new LeatherChest() ); AddItem( new LeatherArms() ); AddItem( new LeatherLegs() ); AddItem( new LeatherCap() ); AddItem( new LeatherGloves() ); AddItem( new LeatherGorget() ); Item weapon; switch ( Utility.Random( 6 ) ) { case 0: weapon = new Broadsword(); break; case 1: weapon = new Cutlass(); break; case 2: weapon = new Katana(); break; case 3: weapon = new Longsword(); break; case 4: weapon = new Scimitar(); break; default: weapon = new VikingSword(); break; } weapon.Movable = false; AddItem( weapon ); Item shield = new BronzeShield(); shield.Movable = false; AddItem( shield ); SetSkill( SkillName.Swords, 20.0 ); }
public MilitiaFighter() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { InitStats( 40, 30, 5 ); Title = "the Militia Fighter"; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); Female = false; Body = 0x190; Name = NameList.RandomName( "male" ); Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2049, 0x204A ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); Item beard = new Item( Utility.RandomList( 0x203E, 0x203F, 0x2040, 0x2041, 0x204B, 0x204C, 0x204D ) ); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem( beard ); AddItem( new ThighBoots( 0x1BB ) ); AddItem( new LeatherChest() ); AddItem( new LeatherArms() ); AddItem( new LeatherLegs() ); AddItem( new LeatherCap() ); AddItem( new LeatherGloves() ); AddItem( new LeatherGorget() ); Item weapon; switch ( Utility.Random( 6 ) ) { case 0: weapon = new Broadsword(); break; case 1: weapon = new Cutlass(); break; case 2: weapon = new Katana(); break; case 3: weapon = new Longsword(); break; case 4: weapon = new Scimitar(); break; default: weapon = new VikingSword(); break; } weapon.Movable = false; AddItem( weapon ); Item shield = new BronzeShield(); shield.Movable = false; AddItem( shield ); SetSkill( SkillName.Swords, 20.0 ); }
public Sensei() : base( AIType.AI_Melee,FightMode.Aggressor, 10, 1, 0.2, 0.4 ) { Name = "Sensei"; Body = 400; SetStr( 491, 610 ); SetDex( 276, 295 ); SetInt( 331, 350 ); SetHits( 1042, 1068 ); SetMana( 600 ); SetDamage( 21, 31 ); SetDamageType( ResistanceType.Physical, 85 ); SetResistance( ResistanceType.Physical, 55, 65 ); SetResistance( ResistanceType.Fire, 30, 50 ); SetResistance( ResistanceType.Cold, 50, 65 ); SetResistance( ResistanceType.Poison, 25, 45 ); SetResistance( ResistanceType.Energy, 40, 65 ); SetSkill( SkillName.MagicResist, 130.6, 145.0 ); SetSkill( SkillName.Tactics, 130.1, 140.0 ); SetSkill( SkillName.Wrestling, 130.1, 155.0 ); SetSkill( SkillName.Swords, 130.1, 155.0 ); SetSkill( SkillName.Parry, 130.1, 155.0 ); SetSkill( SkillName.Wrestling, 130.1, 155.0 ); SetSkill( SkillName.EvalInt, 130.1, 155.0 ); SetSkill( SkillName.Anatomy, 130.1, 155.0 ); SetSkill( SkillName.Focus, 130.1, 155.0 ); Fame = 40000; Karma = -10000; VirtualArmor = 40; AddItem( new Hakama( 1109 ) ); AddItem( new HakamaShita( 1109 ) ); AddItem( new SamuraiTabi() ); AddItem( new Bandana( 1109 ) ); Katana weapon = new Katana(); weapon.Movable = true; weapon.LootType = LootType.Blessed; weapon.Skill = SkillName.Swords; AddItem( weapon ); m_students = new ArrayList(); Timer m_timer = new SenseiFamilyTimer( this ); m_timer.Start(); }
private void AddItems(Container pack) { pack.DropItem(new BagOfReagents()); pack.DropItem(new Spellbook(ulong.MaxValue)); BaseWeapon weaps = new Halberd(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); weaps = new Katana(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); weaps = new ShortSpear(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); weaps = new WarMace(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); pack.DropItem(new GreaterPoisonPotion()); pack.DropItem(new GreaterPoisonPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterCurePotion()); pack.DropItem(new GreaterCurePotion()); pack.DropItem(new GreaterCurePotion()); pack.DropItem(new TotalRefreshPotion()); pack.DropItem(new TotalRefreshPotion()); pack.DropItem(new GreaterExplosionPotion()); pack.DropItem(new GreaterExplosionPotion()); pack.DropItem(new GreaterExplosionPotion()); pack.DropItem(new Bandage(20)); for (int i = 0; i < 3; i++) { TrapableContainer cont = new Pouch(); cont.TrapType = TrapType.MagicTrap; cont.TrapPower = 1; cont.TrapLevel = 0; pack.DropItem(cont); } }
public override void OnResponse( NetState state, RelayInfo info ) //Function for GumpButtonType.Reply Buttons { Mobile from = state.Mobile; PlayerMobile pm = from as PlayerMobile; PlayerModule module = pm.PlayerModule; m_cost = 50;//MOD COST OF WEAPON HERE!! Item wep = from.FindItemOnLayer( Layer.FirstValid ); Item weps = from.FindItemOnLayer( Layer.TwoHanded ); Container pack = from.Backpack; if ( wep !=null ) pack.TryDropItem( from, wep, false ); if ( weps !=null ) pack.TryDropItem( from, weps, false ); switch ( info.ButtonID ) { case 0: //Cancel { from.SendMessage( "You decide against spending your skill points." ); //from.SendGump( new LevelGump( from ) ); break; } case 1: //Katana { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Katana kat = new Katana(); ( ( Item )kat ).Name = "Katana [Level Item]"; kat.Identified = true;//Prevents others from being used in the upgrading! kat.LootType = LootType.Blessed; from.EquipItem( kat ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 2: //Broad Sword { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Broadsword bs = new Broadsword(); bs.Identified = true; bs.Name = "Broadsword"; bs.LootType = LootType.Blessed; from.EquipItem( bs ); from.SendMessage( 102, "You chose a Broadsword" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 3: //Scimitar { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Scimitar sc = new Scimitar(); sc.Identified = true; sc.Name = "Scimitar"; sc.LootType = LootType.Blessed; from.EquipItem( sc ); from.SendMessage( 102, "You chose a Scimitar" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 4: //Viking sword { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; VikingSword vs = new VikingSword(); vs.Identified = true; vs.Name = "Vikingsword"; vs.LootType = LootType.Blessed; from.EquipItem( vs ); from.SendMessage( 102, "You chose a Viking Sword" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 5: //Halberd { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Halberd hb = new Halberd(); hb.Identified = true; hb.Name = "Halberd"; hb.LootType = LootType.Blessed; from.EquipItem( hb ); from.SendMessage( 102, "You chose a Halberd" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 6: //Bardiche { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Bardiche bd = new Bardiche(); bd.Identified = true; bd.Name = "Bardiche"; bd.LootType = LootType.Blessed; from.EquipItem( bd ); from.SendMessage( 102, "You chose a Bardiche" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 7: //Double Axe { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; DoubleAxe da = new DoubleAxe(); da.Identified = true; da.Name = "Double Axe"; da.LootType = LootType.Blessed; from.EquipItem( da ); from.SendMessage( 102, "You chose a Double Axe" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 8: //Large Battle Axe { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; LargeBattleAxe lba = new LargeBattleAxe(); lba.Identified = true; lba.Name = "Large Battle Axe"; lba.LootType = LootType.Blessed; from.EquipItem( lba ); from.SendMessage( 102, "You chose a Large Battle Axe" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 9: //Axe { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Axe a = new Axe(); a.Identified = true; a.Name = "Axe"; a.LootType = LootType.Blessed; from.EquipItem( a ); from.SendMessage( 102, "You chose an Axe" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 10: //Kryss { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Kryss k = new Kryss(); k.Identified = true; k.Name = "Kryss"; k.LootType = LootType.Blessed; from.EquipItem( k ); from.SendMessage( 102, "You chose a Kryss" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 11: //War Fork { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; WarFork wf = new WarFork(); wf.Identified = true; wf.Name = "War Fork"; wf.LootType = LootType.Blessed; from.EquipItem( wf ); from.SendMessage( 102, "You chose a War Fork" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 12: //Dagger { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Dagger d = new Dagger(); d.Identified = true; d.Name = "Dagger"; d.LootType = LootType.Blessed; from.EquipItem( d ); from.SendMessage( 102, "You chose a Dagger" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 13: //Pike { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Pike p = new Pike(); p.Identified = true; p.Name = "Pike"; p.LootType = LootType.Blessed; from.EquipItem( p ); from.SendMessage( 102, "You chose a Pike" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 14: //Short Spear { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; ShortSpear ss = new ShortSpear(); ss.Identified = true; ss.Name = "Short Spear"; ss.LootType = LootType.Blessed; from.EquipItem( ss ); from.SendMessage( 102, "You chose a Short Spear" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 15: //Long Spear { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Spear ls = new Spear(); ls.Identified = true; ls.Name = "Long Spear"; ls.LootType = LootType.Blessed; from.EquipItem( ls ); from.SendMessage( 102, "You chose a Long Spear" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 16: //Pitchfork { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Pitchfork p = new Pitchfork(); p.Identified = true; p.Name = "Pitchfork"; p.LootType = LootType.Blessed; from.EquipItem( p ); from.SendMessage( 102, "You chose a Pitchfork" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 17: //lance { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Lance l = new Lance(); l.Identified = true; l.Name = "Lance"; l.LootType = LootType.Blessed; from.EquipItem( l ); from.SendMessage( 102, "You chose a Lance" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 18: //Sai's { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Sai s = new Sai(); s.Identified = true; s.Name = "Sai"; s.LootType = LootType.Blessed; from.EquipItem( s ); from.SendMessage( 102, "You chose Sai's" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 19: //War Mace { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; WarMace wm = new WarMace(); wm.Identified = true; wm.Name = "War Mace"; wm.LootType = LootType.Blessed; from.EquipItem( wm ); from.SendMessage( 102, "You chose a War Mace" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 20: //War Hammer { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; WarHammer wh = new WarHammer(); wh.Identified = true; wh.Name = "War Hammer"; wh.LootType = LootType.Blessed; from.EquipItem( wh ); from.SendMessage( 102, "You chose a War Hammer" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 21: //Maul { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Maul w = new Maul(); w.Identified = true; w.Name = "Maul"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Maul" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 22: //Club { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Club w = new Club(); w.Identified = true; w.Name = "Club"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Club" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 23: //Q Staff { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; QuarterStaff w = new QuarterStaff(); w.Identified = true; w.Name = "Quarter Staff"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Quarter Staff" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 24: //G Staff { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; GnarledStaff w = new GnarledStaff(); w.Identified = true; w.Name = "Gnarled Staff"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Gnarled Staff" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 25: //B Staff { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; BlackStaff w = new BlackStaff(); w.Identified = true; w.Name = "BlackStaff"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Black Staff" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 26: //Hammer Pick { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; HammerPick w = new HammerPick(); w.Identified = true; w.Name = "Hammer Pick"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Hammer Pick" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 27: //War Axe { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; WarAxe w = new WarAxe(); w.Identified = true; w.Name = "War Axe"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a War Axe" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 28: //Bow { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Bow w = new Bow(); w.Identified = true; w.Name = "Bow"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Bow" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 29: //Composite Bow { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; CompositeBow w = new CompositeBow(); w.Identified = true; w.Name = "Composite Bow"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Composite Bow" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 30: //Crossbow { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Crossbow w = new Crossbow(); w.Identified = true; w.Name = "Crossbow"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Crossbow" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 31: //Heavy Crossbow { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; HeavyCrossbow w = new HeavyCrossbow(); w.Identified = true; w.Name = "Heavy Crossbow"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Heavy Crossbow" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 32: //Repeating Crossbow { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; RepeatingCrossbow w = new RepeatingCrossbow(); w.Identified = true; w.Name = "Repeating Crossbow"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Repeating Crossbow" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } case 33: //Yumi { if ( module.SkillPts < m_cost ) from.SendMessage( 37, "Not enough skill points!" ); else { module.SkillPts -= m_cost; Yumi w = new Yumi(); w.Identified = true; w.Name = "Yumi"; w.LootType = LootType.Blessed; from.EquipItem( w ); from.SendMessage( 102, "You chose a Yumi" ); } from.SendGump( new WepUpgradeGump( from ) ); break; } } }
/// <summary> /// This is the function gives weaponry to players. /// </summary> private static void ArmPlayer(CTFPlayerGameData pgd) { Mobile m = pgd.Mob; if (!m.Alive) m.Resurrect(); for (int i = m.Items.Count - 1; i >= 0; --i) { Item item = (Item)m.Items[i]; if (item.Layer == Layer.OuterTorso) { item.Delete(); break; } } List<Item> armthis = new List<Item>(); if(GiveRobe) armthis.Add(new CTFRobe(pgd.Team)); Item rankedCloth = null; CTFTeam team = pgd.Team; // 21 Ranks switch (CTFData.GetRank(m)) { default: case 0: rankedCloth = new JesterHat(team.Hue); break; case 1: rankedCloth = new TallStrawHat(team.Hue); break; case 2: rankedCloth = new FloppyHat(team.Hue); break; case 3: rankedCloth = new WideBrimHat(team.Hue); break; case 4: rankedCloth = new Cap(team.Hue); break; case 5: rankedCloth = new SkullCap(team.Hue); break; case 6: rankedCloth = new FlowerGarland(team.Hue); break; case 7: rankedCloth = new StrawHat(team.Hue); break; case 8: rankedCloth = new FeatheredHat(team.Hue); break; case 9: rankedCloth = new TricorneHat(team.Hue); break; case 10: rankedCloth = new TribalMask(team.Hue); break; case 11: rankedCloth = new HornedTribalMask(team.Hue); break; case 12: rankedCloth = new BearMask(team.Hue); break; case 13: rankedCloth = new DeerMask(team.Hue); break; case 14: rankedCloth = new OrcishKinMask(team.Hue); break; case 15: rankedCloth = new SavageMask(team.Hue); break; case 16: rankedCloth = new WizardsHat(team.Hue); break; case 17: rankedCloth = new Bandana(team.Hue); break; case 18: rankedCloth = new ClothNinjaHood(team.Hue); break; case 19: rankedCloth = new Kasa(team.Hue); break; case 20: rankedCloth = new BoneHelm(); rankedCloth.Hue = team.Hue; ((BaseArmor)rankedCloth).ArmorAttributes.MageArmor = 1; break; } if (rankedCloth != null) { rankedCloth.Movable = false; armthis.Add(rankedCloth); } //Alchemy removed by Blady /* if (m.Skills[SkillName.Alchemy].Value >= (m_MinSupplySkill + 15)) //80 Alchemy req - by Blady { for (int i = 0; i < 6; i++) //Amount reduced to 6 by Blady - used to be 10 { armthis.Add(new ExplosionPotion()); armthis.Add(new GreaterHealPotion()); armthis.Add(new GreaterCurePotion()); armthis.Add(new GreaterAgilityPotion()); armthis.Add(new RefreshPotion()); armthis.Add(new GreaterStrengthPotion()); } } */ if (m.Skills[SkillName.Chivalry].Value >= m_MinSupplySkill) { BookOfChivalry book = new BookOfChivalry(); book.Content = 1023;//all spells armthis.Add(book); } if (m.Skills[SkillName.Necromancy].Value >= m_MinSupplySkill) { NecromancerSpellbook book = new NecromancerSpellbook(); book.Content = 0x1FFFF; armthis.Add(book); } if (m.Skills[SkillName.Magery].Value >= m_MinSupplySkill) { GnarledStaff gs = new GnarledStaff(); gs.Attributes.SpellChanneling = 1; gs.WeaponAttributes.MageWeapon = 20; armthis.Add(gs); Spellbook book = new Spellbook(); book.Content = ulong.MaxValue; armthis.Add(book); } if (m.Skills[SkillName.Healing].Value >= m_MinSupplySkill) armthis.Add(new Bandage(1000)); if (m.Skills[SkillName.Fencing].Value >= m_MinSupplySkill) { Spear sp = new Spear(); sp.Attributes.SpellChanneling = 1; armthis.Add(sp); ShortSpear ssp = new ShortSpear(); ssp.Attributes.SpellChanneling = 1; armthis.Add(ssp); WarFork wf = new WarFork(); wf.Attributes.SpellChanneling = 1; armthis.Add(wf); Kryss k = new Kryss(); k.Attributes.SpellChanneling = 1; armthis.Add(k); } if (m.Skills[SkillName.Swords].Value >= m_MinSupplySkill) { if (m.Skills[SkillName.Lumberjacking].Value >= m_MinSupplySkill) { ExecutionersAxe ea = new ExecutionersAxe(); ea.Attributes.SpellChanneling = 1; armthis.Add(ea); } Katana k = new Katana(); k.Attributes.SpellChanneling = 1; armthis.Add(k); Longsword ls = new Longsword(); ls.Attributes.SpellChanneling = 1; armthis.Add(ls); Cleaver c = new Cleaver(); c.Attributes.SpellChanneling = 1; armthis.Add(c); BoneHarvester bh = new BoneHarvester(); bh.Attributes.SpellChanneling = 1; armthis.Add(bh); } if (m.Skills[SkillName.Macing].Value >= m_MinSupplySkill) { WarAxe wa = new WarAxe(); wa.Attributes.SpellChanneling = 1; armthis.Add(wa); HammerPick hp = new HammerPick(); hp.Attributes.SpellChanneling = 1; armthis.Add(hp); QuarterStaff qs = new QuarterStaff(); qs.Attributes.SpellChanneling = 1; armthis.Add(qs); } if (m.Skills[SkillName.Archery].Value >= m_MinSupplySkill) { Bow b = new Bow(); b.Attributes.SpellChanneling = 1; armthis.Add(b); Crossbow xb = new Crossbow(); xb.Attributes.SpellChanneling = 1; armthis.Add(xb); CompositeBow cb = new CompositeBow(); cb.Attributes.SpellChanneling = 1; armthis.Add(cb); armthis.Add(new Arrow(150)); armthis.Add(new Bolt(150)); } if (m.Skills[SkillName.Poisoning].Value >= m_MinSupplySkill) { for (int i = 0; i < 2; i++) armthis.Add(new GreaterPoisonPotion()); } if (m.Skills[SkillName.Parry].Value >= m_MinSupplySkill) { MetalKiteShield ks = new MetalKiteShield(); ks.Attributes.SpellChanneling = 1; armthis.Add(ks); } SunnySystem.ArmPlayer(m, armthis); }
public ChaosDragoonElite() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a chaos dragoon elite"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(276, 350); SetDex(66, 90); SetInt(126, 150); SetHits(276, 350); SetDamage(29, 34); SetDamageType(ResistanceType.Physical, 100); /*SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 50); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35);*/ SetSkill(SkillName.Tactics, 80.1, 100.0); SetSkill(SkillName.MagicResist, 100.1, 110.0); SetSkill(SkillName.Anatomy, 80.1, 100.0); SetSkill(SkillName.Magery, 85.1, 100.0); SetSkill(SkillName.EvalInt, 85.1, 100.0); SetSkill(SkillName.Swords, 72.5, 95.0); SetSkill(SkillName.Fencing, 85.1, 100); SetSkill(SkillName.Macing, 85.1, 100); Fame = 8000; Karma = -8000; var res = CraftResource.None; switch (Utility.Random(6)) { case 0: res = CraftResource.BlackScales; break; case 1: res = CraftResource.RedScales; break; case 2: res = CraftResource.BlueScales; break; case 3: res = CraftResource.YellowScales; break; case 4: res = CraftResource.GreenScales; break; case 5: res = CraftResource.WhiteScales; break; } BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem(melee); var Tunic = new DragonChest(); Tunic.Resource = res; Tunic.Movable = false; AddItem(Tunic); var Legs = new DragonLegs(); Legs.Resource = res; Legs.Movable = false; AddItem(Legs); var Arms = new DragonArms(); Arms.Resource = res; Arms.Movable = false; AddItem(Arms); var Gloves = new DragonGloves(); Gloves.Resource = res; Gloves.Movable = false; AddItem(Gloves); var Helm = new DragonHelm(); Helm.Resource = res; Helm.Movable = false; AddItem(Helm); var shield = new ChaosShield(); shield.Movable = false; AddItem(shield); AddItem(new Boots(0x455)); AddItem(new Shirt(Utility.RandomMetalHue())); var amount = Utility.RandomMinMax(1, 3); switch (res) { case CraftResource.BlackScales: AddItem(new BlackScales(amount)); break; case CraftResource.RedScales: AddItem(new RedScales(amount)); break; case CraftResource.BlueScales: AddItem(new BlueScales(amount)); break; case CraftResource.YellowScales: AddItem(new YellowScales(amount)); break; case CraftResource.GreenScales: AddItem(new GreenScales(amount)); break; case CraftResource.WhiteScales: AddItem(new WhiteScales(amount)); break; } switch (Utility.Random(9)) { case 0: res = CraftResource.DullCopper; break; case 1: res = CraftResource.ShadowIron; break; case 2: res = CraftResource.Copper; break; case 3: res = CraftResource.Bronze; break; case 4: res = CraftResource.Gold; break; case 5: res = CraftResource.Agapite; break; case 6: res = CraftResource.Verite; break; case 7: res = CraftResource.Valorite; break; case 8: res = CraftResource.Iron; break; } var mt = new SwampDragon(); mt.HasBarding = true; mt.BardingResource = res; mt.BardingHP = mt.BardingMaxHP; mt.Rider = this; }
private void AddEquipment(GuardType type) { AddItem(new Boots()); AddItem(new Cloak(1155)); AddItem(new BodySash(1155)); switch (type) { default: case GuardType.Archer: { AddItem(new LeatherLegs()); AddItem(new StuddedChest()); AddItem(new LeatherGloves()); AddItem(new LeatherArms()); Bow bow = new Bow(); bow.Quality = WeaponQuality.Exceptional; AddItem(bow); AddToBackpack(new Arrow(200)); } break; case GuardType.Cavalry: { AddItem(new PlateLegs()); AddItem(new RingmailChest()); AddItem(new FancyShirt()); AddItem(new PlateGorget()); AddItem(new RingmailGloves()); BaseWeapon weapon; if (Utility.RandomBool()) weapon = new Halberd(); else weapon = new Bardiche(); weapon.Quality = WeaponQuality.Exceptional; weapon.Resource = CraftResource.Gold; weapon.Speed += 5; AddItem(weapon); } break; case GuardType.Pikeman: { AddItem(new RingmailLegs()); AddItem(new RingmailChest()); AddItem(new RingmailArms()); AddItem(new RingmailGloves()); AddItem(new PlateGorget()); if (Utility.RandomBool()) AddItem(new CloseHelm()); else AddItem(new NorseHelm()); AddItem(new Pike()); } break; case GuardType.Swordsman: { AddItem(new ChainLegs()); AddItem(new ChainChest()); AddItem(new RingmailArms()); AddItem(new RingmailGloves()); AddItem(new PlateGorget()); switch (Utility.Random(3)) { case 0: AddItem(new CloseHelm()); break; case 1: AddItem(new NorseHelm()); break; case 2: AddItem(new PlateHelm()); break; } BaseWeapon weapon; switch (Utility.Random(4)) { default: case 0: weapon = new Broadsword(); break; case 1: weapon = new Longsword(); break; case 2: weapon = new Katana(); break; case 3: weapon = new Axe(); break; } weapon.Quality = WeaponQuality.Exceptional; weapon.Resource = CraftResource.Gold; weapon.Layer = Layer.OneHanded; AddItem(weapon); if (Utility.RandomBool()) AddItem(new HeaterShield()); else AddItem(new MetalKiteShield()); } break; case GuardType.Wizard: { AddItem(new WizardsHat(Utility.RandomGreenHue())); AddItem(new Robe(Utility.RandomGreenHue())); GnarledStaff staff = new GnarledStaff(); staff.Attributes.SpellChanneling = 1; staff.Attributes.SpellDamage = Utility.RandomMinMax(4, 8); AddItem(staff); } break; case GuardType.Medic: { AddItem(new Bandana(Utility.RandomGreenHue())); AddItem(new Robe(Utility.RandomGreenHue())); } break; } }
//AIType, Fight Mode, Range Perception, Fighting Range, Active Speed, Passive Speed public VampireLord() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "Vampire Lord"; Body = 0x0190; Hue = 0x497; SetStr( 750 ); SetDex( 400, 500 ); SetInt( 200, 250 ); SetHits( 350, 400 ); SetStam( 250, 300 ); SetMana( 250, 300 ); SetDamage( 20, 40 ); SetSkill( SkillName.Poisoning, 90.0, 100.0 ); SetSkill( SkillName.Tactics, 90.0, 98.0 ); SetSkill( SkillName.MagicResist, 75.0, 88.0 ); SetSkill( SkillName.Parry, 85.0, 98.0 ); SetSkill( SkillName.Wrestling, 67.0, 90.0 ); SetSkill( SkillName.DetectHidden, 90.0, 100.0 ); SetSkill( SkillName.Swords, 90.0, 95.0 ); SetSkill( SkillName.Magery, 95.0, 100.0 ); SetSkill(SkillName.EvalInt, 95.0, 100.0); Fame = 3000; Karma = -10000; VirtualArmor = 40; Item temp = new PlateGloves {Movable = false, Hue = 0x0492, Name = "Vampire Plate Gauntlets"}; AddItem( temp ); temp = new PlateArms {Hue = 0x0492, Movable = false, Name = "Vampire Plate Arms"}; AddItem( temp ); temp = new PlateGorget {Movable = false, Hue = 0x0492, Name = "Vampire Plate Gorget"}; AddItem( temp ); temp = new PlateLegs {Movable = false, Hue = 0x0492, Name = "Vampire Plate Legs"}; AddItem( temp ); temp = new PlateChest {Movable = false, Hue = 0x0492, Name = "Vampire Plate Chest"}; AddItem( temp ); temp = new PlateHelm {Movable = false, Hue = 0x0492, Name = "Vampire Plate Helm"}; AddItem( temp ); temp = new BodySash {Movable = false, Hue = 0x1, Name = "Vampire Sash"}; AddItem( temp ); temp = new Cloak {Movable = false, Hue = 0x1}; AddItem( temp ); BaseArmor tarm; if (Utility.RandomDouble() < 0.3) { switch (Utility.Random(6)) { case 0: tarm = new PlateGloves {Hue = 0x492, Name = "Vampire Plate Gauntlets"}; break; case 1: tarm = new PlateArms {Hue = 0x492, Name = "Vampire Plate Arms"}; break; case 2: tarm = new PlateChest {Hue = 0x492, Name = "Vampire Plate Chest"}; break; case 3: tarm = new PlateHelm {Hue = 0x492, Name = "Vampire Plate Helm"}; break; case 4: tarm = new PlateLegs {Hue = 0x492, Name = "Vampire Plate Legs"}; break; default: tarm = new PlateGorget {Hue = 0x492, Name = "Vampire Plate Gorget"}; break; } tarm.ProtectionLevel = (ArmorProtectionLevel) Utility.RandomMinMax(0, 5); AddItem(tarm); } BaseSword twep; switch( Utility.Random( 8 ) ) { case 0: twep = new Broadsword(); break; case 1: twep = new Cutlass(); break; case 2: twep = new Scimitar(); break; case 3: twep = new Katana(); break; case 4: twep = new Kryss(); break; case 5: twep = new Longsword(); break; case 6: twep = new ThinLongsword(); break; default: twep = new VikingSword(); break; } switch( Utility.Random( 3 ) ) { case 0: twep.DamageLevel = WeaponDamageLevel.Might; break; case 1: twep.DamageLevel = WeaponDamageLevel.Force; break; case 2: twep.DamageLevel = WeaponDamageLevel.Power; break; } AddItem( twep ); }
public FighterPeacemaker() : base(AIType.AI_Melee, 1) { SetStr(220, 300); SetDex(40, 60); SetInt(40, 60); Item weapon; switch (Utility.Random(6)) { case 0: weapon = new Broadsword(); break; case 1: weapon = new Cutlass(); break; case 2: weapon = new Katana(); break; case 3: weapon = new Longsword(); break; case 4: weapon = new Scimitar(); break; default: weapon = new VikingSword(); break; } AddItem(weapon); AddItem(new MetalShield()); SetDamageType(ResistanceType.Physical, 100); SetSkill(SkillName.Tactics, 70.1, 95.0); SetSkill(SkillName.Swords, 70.1, 100.0); SetSkill(SkillName.Fencing, 65.1, 100.0); SetSkill(SkillName.MagicResist, 80.1, 110.0); SetSkill(SkillName.Macing, 75.1, 100.0); SetSkill(SkillName.Wrestling, 65.1, 100.0); SetSkill(SkillName.Parry, 70.1, 100.0); SetSkill(SkillName.Healing, 65.1, 75.0); SetSkill(SkillName.Anatomy, 80.1, 90.0); }
private static void AddThemeLoot(LockableContainer cont, int level, ChestThemeType type) { MonsterStatuette mx = null; //switch to add in theme treasures switch (type) { case ChestThemeType.Solen: { //drop are special weapon QuarterStaff special = new QuarterStaff(); special.Name = "Chitanous Staff"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); //go into dropping normal loot int onlyonedrop = Utility.RandomMinMax(0, 1); if (onlyonedrop == 0) { cont.DropItem(new Seed(PlantType.Hedge, 0, false)); //new solen seed } if (onlyonedrop == 1) { cont.DropItem(new WaterBucket()); //new waterbucket } if (Utility.RandomDouble() <= 0.30) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0, 1); if (whichone == 0) { mx = new MonsterStatuette(m_Monster[0]); } if (whichone == 1) { mx = new MonsterStatuette(m_Monster[1]); } mx.LootType = LootType.Regular; // not blessed cont.DropItem(mx); // drop it baby! } break; } case ChestThemeType.Brigand: { //drop are special weapon Katana special = new Katana(); special.Name = "Bandit's Blade"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0, 1); if (onlyonedrop == 0) { cont.DropItem(new Brazier(true)); //new movable brazier } if (onlyonedrop == 1) { cont.DropItem(new DecorativeBow(Utility.RandomMinMax(0, 3))); //random decorative bow type } for (int i = 0; i < level * 5; ++i) { cont.DropItem(new PowderOfTranslocation()); //drop powder of translocation } if (Utility.RandomDouble() <= 0.30) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0, 1); if (whichone == 0) { mx = new MonsterStatuette(m_Monster[2]); } if (whichone == 1) { mx = new MonsterStatuette(m_Monster[3]); } mx.LootType = LootType.Regular; // not blessed cont.DropItem(mx); // drop it baby! } break; } case ChestThemeType.Savage: { //drop are special weapon ShortSpear special = new ShortSpear(); special.Name = "Ornate Ritual Spear"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int rug = Utility.RandomMinMax(0, 1); int onlyonedrop = Utility.RandomMinMax(0, 1); if (onlyonedrop == 0) { cont.DropItem(new SkullPole()); //new skull pole } if (onlyonedrop == 1) { if (rug == 0) { cont.DropItem(new BrownBearRugEastDeed()); //new rug east } if (rug == 1) { cont.DropItem(new BrownBearRugSouthDeed()); //new rug south } } if (Utility.RandomDouble() <= .30) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0, 1); if (whichone == 0) { mx = new MonsterStatuette(m_Monster[4]); } if (whichone == 1) { mx = new MonsterStatuette(m_Monster[5]); } mx.LootType = LootType.Regular; // not blessed cont.DropItem(mx); // drop it baby! } break; } case ChestThemeType.Undead: { Halberd special = new Halberd(); special.Name = "Soul Reaver"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0, 1); if (onlyonedrop == 0) { cont.DropItem(new BoneContainer(Utility.RandomMinMax(0, 2))); //new bone container 3 differnt types 0-2 } int stone = Utility.RandomMinMax(0, 3); // get random gravestone type to drop if (onlyonedrop == 1) { if (stone == 0) { cont.DropItem(new GraveStone1()); } if (stone == 1) { cont.DropItem(new GraveStone2()); } if (stone == 2) { cont.DropItem(new GraveStone3()); } if (stone == 3) { cont.DropItem(new GraveStone4()); } } for (int i = 0; i < level * 5; ++i) { cont.DropItem(new Moonstone()); //drop moonstones } if (Utility.RandomDouble() <= 0.30) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0, 1); if (whichone == 0) { mx = new MonsterStatuette(m_Monster[6]); } if (whichone == 1) { mx = new MonsterStatuette(m_Monster[7]); } mx.LootType = LootType.Regular; // not blessed cont.DropItem(mx); // drop it baby! } break; } case ChestThemeType.Pirate: { Bow special = new Bow(); special.Name = "Bow of the Buccaneer"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0, 1); PirateHat hat = new PirateHat(); hat.Hue = 0x1; int oars = Utility.RandomMinMax(0, 1); //2 oar types if (onlyonedrop == 0) { if (oars == 0) { cont.DropItem(new Oars1()); } if (oars == 1) { cont.DropItem(new Oars2()); } } if (onlyonedrop == 1) { cont.DropItem(new GenieBottle(false)); //lamp currently disabled genie not done } if (Utility.RandomDouble() <= 0.50) { cont.DropItem(hat); // 50% chance at black piratehat } if (Utility.RandomDouble() <= 0.30) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0, 1); if (whichone == 0) { mx = new MonsterStatuette(m_Monster[8]); } if (whichone == 1) { mx = new MonsterStatuette(m_Monster[9]); } mx.LootType = LootType.Regular; // not blessed cont.DropItem(mx); // drop it baby! } break; } case ChestThemeType.Dragon: { WarFork special = new WarFork(); special.Name = "Claw of the Dragon"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0, 1); //new dragonhead trophydeed type if (onlyonedrop == 0) { cont.DropItem(new TrophyDeed(8757, 8756, "a dragon head trophy", "a dragon head trophy", 10)); } int armor = Utility.RandomMinMax(0, 2); // drop 1 piece of dragonarmor if (onlyonedrop == 1) { if (armor == 0) { cont.DropItem(new HangingDragonChest()); } if (armor == 1) { cont.DropItem(new HangingDragonLegs()); } if (armor == 2) { cont.DropItem(new HangingDragonArms()); } } if (Utility.RandomDouble() <= 0.30) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0, 1); if (whichone == 0) { mx = new MonsterStatuette(m_Monster[10]); } if (whichone == 1) { mx = new MonsterStatuette(m_Monster[11]); } mx.LootType = LootType.Regular; // not blessed cont.DropItem(mx); // drop it baby! } break; } case ChestThemeType.Lizardmen: { if (Utility.RandomBool()) { cont.DropItem(new LizardmansStaff()); } else { cont.DropItem(new LizardmansMace()); } } break; case ChestThemeType.Ettin: { cont.DropItem(new EttinHammer()); } break; case ChestThemeType.Ogre: { cont.DropItem(new OgresClub()); } break; case ChestThemeType.Ophidian: { cont.DropItem(new OphidianBardiche()); } break; case ChestThemeType.Skeleton: { switch (Utility.Random(3)) { case 0: cont.DropItem(new SkeletonScimitar()); break; case 1: cont.DropItem(new SkeletonAxe()); break; case 2: cont.DropItem(new BoneMageStaff()); break; } } break; case ChestThemeType.Ratmen: { if (Utility.RandomBool()) { cont.DropItem(new RatmanSword()); } else { cont.DropItem(new RatmanAxe()); } } break; case ChestThemeType.Orc: { switch (Utility.Random(3)) { case 0: cont.DropItem(new OrcClub()); break; case 1: cont.DropItem(new OrcMageStaff()); break; case 2: cont.DropItem(new OrcLordBattleaxe()); break; } } break; case ChestThemeType.Terathan: { switch (Utility.Random(3)) { case 0: cont.DropItem(new TerathanStaff()); break; case 1: cont.DropItem(new TerathanSpear()); break; case 2: cont.DropItem(new TerathanMace()); break; } } break; case ChestThemeType.FrostTroll: { switch (Utility.Random(3)) { case 0: cont.DropItem(new FrostTrollClub()); break; case 1: cont.DropItem(new TrollAxe()); break; case 2: cont.DropItem(new TrollMaul()); break; } } break; } //end switch }
public BaneChosenHoundMaster() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4 ) { Name = "a bane chosen hound master"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr( 176, 225 ); SetDex( 81, 95 ); SetInt( 61, 85 ); SetHits( 376, 450 ); SetDamage( 24, 26 ); SetDamageType( ResistanceType.Physical, 25 ); SetDamageType( ResistanceType.Fire, 25 ); SetDamageType( ResistanceType.Cold, 25 ); SetDamageType( ResistanceType.Energy, 25 ); SetResistance( ResistanceType.Physical, 45, 55 ); SetResistance( ResistanceType.Fire, 15, 25 ); SetResistance( ResistanceType.Cold, 50 ); SetResistance( ResistanceType.Poison, 25, 35 ); SetResistance( ResistanceType.Energy, 25, 35 ); SetSkill( SkillName.Fencing, 77.6, 92.5 ); SetSkill( SkillName.Healing, 60.3, 90.0 ); SetSkill( SkillName.Macing, 77.6, 92.5 ); SetSkill( SkillName.Anatomy, 77.6, 87.5 ); SetSkill( SkillName.MagicResist, 77.6, 97.5 ); SetSkill( SkillName.Swords, 77.6, 92.5 ); SetSkill( SkillName.Tactics, 77.6, 87.5 ); Fame = 5000; Karma = -5000; CraftResource res = CraftResource.BlackScales; BaseWeapon melee = null; switch (Utility.Random( 3 )) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem( melee ); DragonHelm helm = new DragonHelm(); helm.Resource = res; helm.Movable = false; AddItem( helm ); DragonChest chest = new DragonChest(); chest.Resource = res; chest.Movable = false; AddItem( chest ); DragonArms arms = new DragonArms(); arms.Resource = res; arms.Movable = false; AddItem( arms ); DragonGloves gloves = new DragonGloves(); gloves.Resource = res; gloves.Movable = false; AddItem( gloves ); DragonLegs legs = new DragonLegs(); legs.Resource = res; legs.Movable = false; AddItem( legs ); ChaosShield shield = new ChaosShield(); shield.Movable = false; AddItem( shield ); AddItem( new Shirt() ); AddItem( new Boots() ); }
public BaneChosenDragonRider() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a bane chosen dragon rider"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(576, 650); SetDex(226, 290); SetInt(126, 150); SetHits(676, 750); SetDamage(29, 34); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 50); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35); SetSkill(SkillName.Tactics, 80.1, 100.0); SetSkill(SkillName.MagicResist, 100.1, 110.0); SetSkill(SkillName.Anatomy, 80.1, 100.0); SetSkill(SkillName.Magery, 85.1, 100.0); SetSkill(SkillName.EvalInt, 85.1, 100.0); SetSkill(SkillName.Swords, 72.5, 95.0); SetSkill(SkillName.Fencing, 85.1, 100); SetSkill(SkillName.Macing, 85.1, 100); Fame = 18000; Karma = -18000; CraftResource res = CraftResource.BlackScales; BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem(melee); DragonChest Tunic = new DragonChest(); Tunic.Resource = res; Tunic.Movable = false; AddItem(Tunic); DragonLegs Legs = new DragonLegs(); Legs.Resource = res; Legs.Movable = false; AddItem(Legs); DragonArms Arms = new DragonArms(); Arms.Resource = res; Arms.Movable = false; AddItem(Arms); DragonGloves Gloves = new DragonGloves(); Gloves.Resource = res; Gloves.Movable = false; AddItem(Gloves); DragonHelm Helm = new DragonHelm(); Helm.Resource = res; Helm.Movable = false; AddItem(Helm); ChaosShield shield = new ChaosShield(); shield.Movable = false; AddItem(shield); AddItem(new Boots(0x455)); AddItem(new Shirt(Utility.RandomMetalHue())); /*int amount = Utility.RandomMinMax(1, 3); switch (res) { case CraftResource.BlackScales: AddItem(new BlackScales(amount)); break; case CraftResource.RedScales: AddItem(new RedScales(amount)); break; case CraftResource.BlueScales: AddItem(new BlueScales(amount)); break; case CraftResource.YellowScales: AddItem(new YellowScales(amount)); break; case CraftResource.GreenScales: AddItem(new GreenScales(amount)); break; case CraftResource.WhiteScales: AddItem(new WhiteScales(amount)); break; } switch (Utility.Random(9)) { case 0: res = CraftResource.DullCopper; break; case 1: res = CraftResource.ShadowIron; break; case 2: res = CraftResource.Copper; break; case 3: res = CraftResource.Bronze; break; case 4: res = CraftResource.Gold; break; case 5: res = CraftResource.Agapite; break; case 6: res = CraftResource.Verite; break; case 7: res = CraftResource.Valorite; break; case 8: res = CraftResource.Iron; break; }*/ BaneDragon mt = new BaneDragon(); mt.Rider = this; }
public DummySword() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Swordsman int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats( 125, 125, 90 ); this.Skills[SkillName.Swords].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Healing].Base = 120; this.Skills[SkillName.Tactics].Base = 120; this.Skills[SkillName.Parry].Base = 120; // Name this.Name = "Swordsman"; // Equip Katana kat = new Katana(); kat.Crafter = this; kat.Movable = true; kat.Quality = WeaponQuality.Regular; AddItem( kat ); Boots bts = new Boots(); bts.Hue = iHue; AddItem( bts ); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem( cht ); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem( chl ); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem( pla ); Bandage band = new Bandage( 50 ); AddToBackpack( band ); }
public TerathanIslandTreasureChest() : base(0x2DF1) { Name = "a treasure chest -30-"; Movable = true; Hue = 285; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 30; LockLevel = 30; MaxLockLevel = 35; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(45, 450))); } /////////////////////////////////////// Books if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol1()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol2()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol3()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol4()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol5()); } /////////////////////////////////////// Meats if (Utility.RandomDouble() < 0.15) { DropItem(new Bacon()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Sausage()); } /////////////////////////////////////// Eating Utensils if (Utility.RandomDouble() < 0.08) { DropItem(new KnifeLeft()); } if (Utility.RandomDouble() < 0.08) { DropItem(new KnifeRight()); } if (Utility.RandomDouble() < 0.08) { DropItem(new PewterMug()); } if (Utility.RandomDouble() < 0.08) { DropItem(new Plate()); } if (Utility.RandomDouble() < 0.08) { DropItem(new SpoonLeft()); } if (Utility.RandomDouble() < 0.08) { DropItem(new SpoonRight()); } /////////////////////////////////////// Jewelry if (Utility.RandomDouble() < 0.04) { DropItem(new Agate()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Beryl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new ChromeDiopside()); } if (Utility.RandomDouble() < 0.04) { DropItem(new FireOpal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new MoonstoneCustom()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Onyx()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Opal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Pearl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new TurquoiseCustom()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Bloodstone()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Citrine()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Demantoid()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Jasper()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lolite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lupis()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Peridot()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Tsavorite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Zircon()); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.15) { DropItem(new Arrow(Utility.Random(17, 22))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bolt(Utility.Random(17, 22))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(17, 22); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.15) { DropItem(new Bandage(Utility.Random(17, 22))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bottle(Utility.Random(17, 22))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Lockpick(Utility.Random(17, 22))); } Item PotionLoot = Loot.RandomPotion(); DropItem(PotionLoot); if (Utility.RandomDouble() < 0.20) { DropItem(new LesserPoisonPotion()); } if (Utility.RandomDouble() < 0.15) { DropItem(new PoisonPotion()); } /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.15) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.15) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 2, 22, 25); weapon.Hue = 285; weapon.WeaponAttributes.HitLeechStam = 5; weapon.Attributes.BonusHits = 10; DropItem(weapon); } if (Utility.RandomDouble() < 0.15) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 3, 22, 25); armor.Hue = 285; armor.Attributes.WeaponDamage = 3; DropItem(armor); } if (Utility.RandomDouble() < 0.15) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 3, 22, 25); hat.Hue = 285; hat.Attributes.BonusHits = 10; hat.Attributes.SpellDamage = 5; hat.Resistances.Energy = 10; DropItem(hat); } if (Utility.RandomDouble() < 0.15) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 22, 25); clothing.Hue = 285; clothing.Attributes.BonusHits = 5; clothing.Attributes.DefendChance = 3; clothing.Resistances.Physical = 5; DropItem(clothing); } if (Utility.RandomDouble() < 0.15) { BaseShield shield = new WoodenKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 3, 22, 25); } shield.Hue = 285; shield.Attributes.BonusHits = 10; DropItem(shield); } if (Utility.RandomDouble() < 0.15) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 3, 22, 25); } bracelet.Hue = 285; bracelet.Attributes.WeaponDamage = 5; bracelet.Attributes.DefendChance = 2; bracelet.Resistances.Fire = 5; DropItem(bracelet); } if (Utility.RandomDouble() < 0.15) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 3, 22, 25); } earrings.Hue = 285; earrings.Attributes.WeaponDamage = 5; earrings.Attributes.DefendChance = 3; earrings.Resistances.Cold = 5; DropItem(earrings); } if (Utility.RandomDouble() < 0.15) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 22, 25); } necklace.Hue = 285; necklace.Attributes.WeaponDamage = 5; necklace.Attributes.DefendChance = 5; necklace.Resistances.Energy = 5; DropItem(necklace); } if (Utility.RandomDouble() < 0.15) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 3, 22, 25); } ring.Hue = 285; ring.Attributes.WeaponDamage = 5; ring.Attributes.DefendChance = 2; ring.Resistances.Poison = 5; DropItem(ring); } }
private static void AddThemeLoot (LockableContainer cont, int level, ChestThemeType type) { MonsterStatuette mx = null; //switch to add in theme treasures switch ( type ) { case ChestThemeType.Solen: { //drop are special weapon QuarterStaff special = new QuarterStaff(); special.Name = "Chitanous Staff"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); //go into dropping normal loot int onlyonedrop = Utility.RandomMinMax(0,1); if(onlyonedrop ==0 )cont.DropItem(new Seed(PlantType.Hedge,0,false)); //new solen seed if(onlyonedrop ==1 )cont.DropItem(new WaterBucket() ); //new waterbucket if (Utility.RandomDouble() <= 0.30 ) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0,1); if(whichone == 0)mx = new MonsterStatuette (m_Monster[0]); if(whichone == 1)mx = new MonsterStatuette (m_Monster[1]); mx.LootType = LootType.Regular; // not blessed cont.DropItem( mx ); // drop it baby! } break; } case ChestThemeType.Brigand: { //drop are special weapon Katana special = new Katana(); special.Name = "Bandit's Blade"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0,1); if(onlyonedrop ==0 )cont.DropItem(new Brazier(true)); //new movable brazier if(onlyonedrop ==1 )cont.DropItem(new DecorativeBow(Utility.RandomMinMax(0,3))); //random decorative bow type for ( int i = 0; i < level * 5; ++i ) { cont.DropItem (new PowderOfTranslocation() ); //drop powder of translocation } if (Utility.RandomDouble() <= 0.30 ) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0,1); if(whichone == 0)mx = new MonsterStatuette (m_Monster[2]); if(whichone == 1)mx = new MonsterStatuette (m_Monster[3]); mx.LootType = LootType.Regular; // not blessed cont.DropItem( mx ); // drop it baby! } break; } case ChestThemeType.Savage: { //drop are special weapon ShortSpear special = new ShortSpear(); special.Name = "Ornate Ritual Spear"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int rug = Utility.RandomMinMax(0,1); int onlyonedrop = Utility.RandomMinMax(0,1); if(onlyonedrop ==0 )cont.DropItem(new SkullPole() ); //new skull pole if(onlyonedrop ==1 ) { if(rug == 0) cont.DropItem(new BrownBearRugEastDeed() ); //new rug east if(rug == 1) cont.DropItem(new BrownBearRugSouthDeed() ); //new rug south } if (Utility.RandomDouble() <= .30 ) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0,1); if(whichone == 0)mx = new MonsterStatuette (m_Monster[4]); if(whichone == 1)mx = new MonsterStatuette (m_Monster[5]); mx.LootType = LootType.Regular; // not blessed cont.DropItem( mx ); // drop it baby! } break; } case ChestThemeType.Undead: { Halberd special = new Halberd(); special.Name = "Soul Reaver"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0,1); if(onlyonedrop ==0 )cont.DropItem(new BoneContainer(Utility.RandomMinMax(0,2))); //new bone container 3 differnt types 0-2 int stone = Utility.RandomMinMax(0,3); // get random gravestone type to drop if(onlyonedrop ==1 ) { if(stone == 0) cont.DropItem(new GraveStone1()); if(stone == 1) cont.DropItem(new GraveStone2()); if(stone == 2) cont.DropItem(new GraveStone3()); if(stone == 3) cont.DropItem(new GraveStone4()); } for ( int i = 0; i < level * 5; ++i ) { cont.DropItem(new Moonstone()); //drop moonstones } if (Utility.RandomDouble() <= 0.30 ) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0,1); if(whichone == 0)mx = new MonsterStatuette (m_Monster[6]); if(whichone == 1)mx = new MonsterStatuette (m_Monster[7]); mx.LootType = LootType.Regular; // not blessed cont.DropItem( mx ); // drop it baby! } break; } case ChestThemeType.Pirate: { Bow special = new Bow(); special.Name = "Bow of the Buccaneer"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0,1); PirateHat hat = new PirateHat(); hat.Hue = 0x1; int oars = Utility.RandomMinMax(0,1); //2 oar types if(onlyonedrop ==0 ) { if(oars == 0) cont.DropItem(new Oars1()); if(oars == 1) cont.DropItem(new Oars2()); } if(onlyonedrop == 1 )cont.DropItem(new GenieBottle(false) ); //lamp currently disabled genie not done if (Utility.RandomDouble() <= 0.50 )cont.DropItem(hat); // 50% chance at black piratehat if (Utility.RandomDouble() <= 0.30 ) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0,1); if(whichone == 0)mx = new MonsterStatuette (m_Monster[8]); if(whichone == 1) mx = new MonsterStatuette (m_Monster[9]); mx.LootType = LootType.Regular; // not blessed cont.DropItem( mx ); // drop it baby! } break; } case ChestThemeType.Dragon: { WarFork special = new WarFork(); special.Name = "Claw of the Dragon"; cont.DropItem(Loot.ImbueWeaponOrArmor(special, 6, 0, true)); int onlyonedrop = Utility.RandomMinMax(0,1); //new dragonhead trophydeed type if(onlyonedrop ==0 ) cont.DropItem(new TrophyDeed(8757, 8756, "a dragon head trophy", "a dragon head trophy", 10 )); int armor = Utility.RandomMinMax(0,2); // drop 1 piece of dragonarmor if(onlyonedrop == 1 ) { if(armor == 0) cont.DropItem(new HangingDragonChest()); if(armor == 1) cont.DropItem(new HangingDragonLegs()); if(armor == 2) cont.DropItem(new HangingDragonArms()); } if (Utility.RandomDouble() <= 0.30 ) //30% chance to drop a statue { int whichone = Utility.RandomMinMax(0,1); if(whichone == 0)mx = new MonsterStatuette (m_Monster[10]); if(whichone == 1)mx = new MonsterStatuette (m_Monster[11]); mx.LootType = LootType.Regular; // not blessed cont.DropItem( mx ); // drop it baby! } break; } case ChestThemeType.Lizardmen: { if (Utility.RandomBool()) cont.DropItem( new LizardmansStaff() ); else cont.DropItem( new LizardmansMace() ); } break; case ChestThemeType.Ettin: { cont.DropItem( new EttinHammer() ); } break; case ChestThemeType.Ogre: { cont.DropItem( new OgresClub() ); } break; case ChestThemeType.Ophidian: { cont.DropItem( new OphidianBardiche() ); } break; case ChestThemeType.Skeleton: { switch (Utility.Random(3)) { case 0: cont.DropItem( new SkeletonScimitar() ); break; case 1: cont.DropItem( new SkeletonAxe() ); break; case 2: cont.DropItem( new BoneMageStaff() ); break; } } break; case ChestThemeType.Ratmen: { if (Utility.RandomBool()) cont.DropItem( new RatmanSword() ); else cont.DropItem( new RatmanAxe() ); } break; case ChestThemeType.Orc: { switch (Utility.Random(3)) { case 0: cont.DropItem( new OrcClub() ); break; case 1: cont.DropItem( new OrcMageStaff() ); break; case 2: cont.DropItem( new OrcLordBattleaxe() ); break; } } break; case ChestThemeType.Terathan: { switch (Utility.Random(3)) { case 0: cont.DropItem( new TerathanStaff() ); break; case 1: cont.DropItem( new TerathanSpear() ); break; case 2: cont.DropItem( new TerathanMace() ); break; } } break; case ChestThemeType.FrostTroll: { switch (Utility.Random(3)) { case 0: cont.DropItem( new FrostTrollClub() ); break; case 1: cont.DropItem( new TrollAxe() ); break; case 2: cont.DropItem( new TrollMaul() ); break; } } break; }//end switch }
private void AddItems(Container pack) { pack.DropItem(new BagOfReagents()); pack.DropItem(new Spellbook(ulong.MaxValue)); BaseWeapon weaps = new Halberd(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); weaps = new Katana(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); weaps = new ShortSpear(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); weaps = new WarMace(); weaps.Quality = WeaponQuality.Exceptional; pack.DropItem(weaps); pack.DropItem(new GreaterPoisonPotion()); pack.DropItem(new GreaterPoisonPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterHealPotion()); pack.DropItem(new GreaterCurePotion()); pack.DropItem(new GreaterCurePotion()); pack.DropItem(new GreaterCurePotion()); pack.DropItem(new TotalRefreshPotion()); pack.DropItem(new TotalRefreshPotion()); pack.DropItem(new GreaterExplosionPotion()); pack.DropItem(new GreaterExplosionPotion()); pack.DropItem(new GreaterExplosionPotion()); pack.DropItem(new Bandage(20)); for(int i = 0; i < 3; i++) { TrapableContainer cont = new Pouch(); cont.TrapType = TrapType.MagicTrap; cont.TrapPower = 1; cont.TrapLevel = 0; pack.DropItem(cont); } }
public FamousPiratesSword() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A FamousPirates Swordsman int Hue = 1107; // Skills and Stats this.InitStats(350, 350, 310); this.Skills[SkillName.Swords].Base = 150; this.Skills[SkillName.Anatomy].Base = 150; this.Skills[SkillName.Healing].Base = 150; this.Skills[SkillName.Tactics].Base = 150; this.Skills[SkillName.Parry].Base = 150; // Name this.Name = "Elizabeth Swann"; // Equip Katana kat = new Katana(); kat.Crafter = this; kat.Movable = true; kat.Quality = WeaponQuality.Exceptional; AddItem(kat); Boots bts = new Boots(); bts.Movable = false; bts.Hue = Hue; AddItem(bts); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Regular; cht.Crafter = this; cht.Quality = ArmorQuality.Exceptional; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Regular; chl.Crafter = this; chl.Quality = ArmorQuality.Exceptional; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Regular; pla.Crafter = this; pla.Quality = ArmorQuality.Exceptional; AddItem(pla); TricorneHat tch = new TricorneHat(); tch.Movable = false; tch.Hue = Hue; AddItem(tch); FancyShirt fst = new FancyShirt(); fst.Movable = false; fst.Hue = Hue; AddItem(fst); Skirt srt = new Skirt(); srt.Movable = false; srt.Hue = Hue; AddItem(srt); Bandage band = new Bandage(50); AddToBackpack(band); }
public Vampire() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Hue = 0x497; Body = 0x190; Name = "Vampire"; SetStr( 450 ); SetDex( 200, 300 ); SetInt( 150, 200 ); SetHits( 200, 300 ); SetStam( 200, 300 ); SetMana( 150, 200 ); SetDamage( 10, 20 ); SetSkill( SkillName.Parry, 75.0, 80.0 ); SetSkill( SkillName.Poisoning, 90.0, 100.0 ); SetSkill( SkillName.MagicResist, 75.0, 88.0 ); SetSkill( SkillName.Swords, 75.0, 85.0 ); SetSkill( SkillName.Tactics, 80.0, 90.0 ); SetSkill( SkillName.Wrestling, 67.0, 80.0 ); SetSkill( SkillName.Magery, 65.0, 80.0 ); SetSkill(SkillName.EvalInt, 75.0, 85.0); Fame = 4000; Karma = -4000; VirtualArmor = 20; Item temp = new PlateGloves {Movable = false, Hue = 0x0590, Name = "Vampire Plate Gauntlets"}; AddItem( temp ); temp = new PlateArms {Hue = 0x0845, Movable = false, Name = "Vampire Plate Arms"}; AddItem( temp ); temp = new PlateGorget {Movable = false, Hue = 0x0590, Name = "Vampire Plate Gorget"}; AddItem( temp ); temp = new PlateLegs {Movable = false, Hue = 0x0590, Name = "Vampire Plate Legs"}; AddItem( temp ); temp = new PlateChest {Movable = false, Hue = 0x0590, Name = "Vampire Plate Chest"}; AddItem( temp ); temp = new Cloak( 0x1 ) {Movable = false}; AddItem( temp ); HairItemID = 8252; HairHue = Utility.RandomHairHue(); BaseSword twep; switch( Utility.Random( 8 ) ) { case 0: twep = new Broadsword(); break; case 1: twep = new Cutlass(); break; case 2: twep = new Scimitar(); break; case 3: twep = new Katana(); break; case 4: twep = new Kryss(); break; case 5: twep = new Longsword(); break; case 6: twep = new ThinLongsword(); break; default: twep = new VikingSword(); break; } switch( Utility.Random( 3 ) ) { case 0: twep.DamageLevel = WeaponDamageLevel.Ruin; break; case 1: twep.DamageLevel = WeaponDamageLevel.Might; break; case 2: twep.DamageLevel = WeaponDamageLevel.Force; break; } AddItem( twep ); }
public FamousPiratesAssassin() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A FamousPirates Hybrid Assassin int Hue = 2075; // Skills and Stats this.InitStats(305, 305, 305); this.Skills[SkillName.Magery].Base = 150; this.Skills[SkillName.EvalInt].Base = 150; this.Skills[SkillName.Swords].Base = 150; this.Skills[SkillName.Tactics].Base = 150; this.Skills[SkillName.Meditation].Base = 150; this.Skills[SkillName.Poisoning].Base = 100; // Name this.Name = "BootStrap Bill Turner"; // Equip Spellbook book = FullSpellbook(); AddToBackpack(book); Katana kat = new Katana(); kat.Movable = false; kat.LootType = LootType.Regular; kat.Crafter = this; kat.Poison = Poison.Deadly; kat.PoisonCharges = 30; kat.Quality = WeaponQuality.Exceptional; AddToBackpack(kat); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Regular; lea.Crafter = this; lea.Quality = ArmorQuality.Exceptional; AddItem(lea); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Regular; lec.Crafter = this; lec.Quality = ArmorQuality.Exceptional; AddItem(lec); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Regular; leg.Crafter = this; leg.Quality = ArmorQuality.Exceptional; AddItem(leg); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Regular; lel.Crafter = this; lel.Quality = ArmorQuality.Exceptional; AddItem(lel); Boots snd = new Boots(); snd.Movable = false; snd.Hue = Hue; snd.LootType = LootType.Regular; AddItem(snd); TricorneHat tch = new TricorneHat(); tch.Movable = false; tch.Hue = Hue; AddItem(tch); DeadlyPoisonPotion pota = new DeadlyPoisonPotion(); pota.LootType = LootType.Regular; AddToBackpack(pota); DeadlyPoisonPotion potb = new DeadlyPoisonPotion(); potb.LootType = LootType.Regular; AddToBackpack(potb); DeadlyPoisonPotion potc = new DeadlyPoisonPotion(); potc.LootType = LootType.Regular; AddToBackpack(potc); DeadlyPoisonPotion potd = new DeadlyPoisonPotion(); potd.LootType = LootType.Regular; AddToBackpack(potd); Bandage band = new Bandage(50); AddToBackpack(band); }
public static string MakeThisTask() { string task = null; switch (Utility.RandomMinMax(1, 10)) { case 1: task = "Repair"; break; case 2: task = "Fix"; break; case 3: task = "Buff"; break; case 4: task = "Modify"; break; case 5: task = "Polish"; break; case 6: task = "Engrave"; break; case 7: task = "Adjust"; break; case 8: task = "Improve"; break; case 9: task = "Smooth the dents from"; break; case 10: task = "Remove the dents from"; break; } Item item = null; switch (Utility.RandomMinMax(1, 79)) { case 1: item = new AssassinSpike(); break; case 2: item = new Axe(); break; case 3: item = new Bardiche(); break; case 4: item = new Bascinet(); break; case 5: item = new BattleAxe(); break; case 6: item = new BoneHarvester(); break; case 7: item = new Broadsword(); break; case 8: item = new BronzeShield(); break; case 9: item = new Buckler(); break; case 10: item = new ButcherKnife(); break; case 11: item = new ChainChest(); break; case 12: item = new ChainCoif(); break; case 13: item = new ChainLegs(); break; case 14: item = new ChampionShield(); break; case 15: item = new Cleaver(); break; case 16: item = new CloseHelm(); break; case 17: item = new CloseHelm(); break; case 18: item = new CrescentBlade(); break; case 19: item = new CrestedShield(); break; case 20: item = new Cutlass(); break; case 21: item = new Dagger(); break; case 22: item = new DarkShield(); break; case 23: item = new DiamondMace(); break; case 24: item = new DoubleAxe(); break; case 25: item = new DoubleBladedStaff(); break; case 26: item = new DreadHelm(); break; case 27: item = new ElvenMachete(); break; case 28: item = new ElvenShield(); break; case 29: item = new ElvenSpellblade(); break; case 30: item = new ExecutionersAxe(); break; case 31: item = new FemalePlateChest(); break; case 32: item = new GuardsmanShield(); break; case 33: item = new Halberd(); break; case 34: item = new HammerPick(); break; case 35: item = new HeaterShield(); break; case 36: item = new Helmet(); break; case 37: item = new Helmet(); break; case 38: item = new JeweledShield(); break; case 39: item = new Katana(); break; case 40: item = new Kryss(); break; case 41: item = new Lance(); break; case 42: item = new LargeBattleAxe(); break; case 43: item = new Leafblade(); break; case 44: item = new Longsword(); break; case 45: item = new Mace(); break; case 46: item = new Maul(); break; case 47: item = new MetalKiteShield(); break; case 48: item = new MetalShield(); break; case 49: item = new NorseHelm(); break; case 50: item = new NorseHelm(); break; case 51: item = new OrnateAxe(); break; case 52: item = new Pickaxe(); break; case 53: item = new Pike(); break; case 54: item = new Pitchfork(); break; case 55: item = new PlateArms(); break; case 56: item = new PlateChest(); break; case 57: item = new PlateGloves(); break; case 58: item = new PlateGorget(); break; case 59: item = new PlateHelm(); break; case 60: item = new PlateHelm(); break; case 61: item = new PlateLegs(); break; case 62: item = new RadiantScimitar(); break; case 63: item = new RingmailArms(); break; case 64: item = new RingmailChest(); break; case 65: item = new RingmailGloves(); break; case 66: item = new RingmailLegs(); break; case 67: item = new RuneBlade(); break; case 68: item = new Scimitar(); break; case 69: item = new Scythe(); break; case 70: item = new ShortSpear(); break; case 71: item = new SkinningKnife(); break; case 72: item = new Spear(); break; case 73: item = new ThinLongsword(); break; case 74: item = new TwoHandedAxe(); break; case 75: item = new VikingSword(); break; case 76: item = new WarAxe(); break; case 77: item = new WarCleaver(); break; case 78: item = new WarHammer(); break; case 79: item = new WarMace(); break; } if (Utility.RandomMinMax(1, 5) == 1) { bool evil = false; bool orient = false; switch (Utility.RandomMinMax(1, 8)) { case 1: evil = true; break; case 2: orient = true; break; } string sAdjective = "unusual"; string eAdjective = "might"; sAdjective = Server.LootPackEntry.MagicItemAdj("start", orient, evil, item.ItemID); eAdjective = Server.LootPackEntry.MagicItemAdj("end", orient, evil, item.ItemID); string name = "item"; string xName = ContainerFunctions.GetOwner("property"); if (item.Name != null && item.Name != "") { name = item.Name.ToLower(); } if (name == "item") { name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower(); } switch (Utility.RandomMinMax(0, 5)) { case 0: name = sAdjective + " " + name + " of " + xName; break; case 1: name = name + " of " + xName; break; case 2: name = sAdjective + " " + name; break; case 3: name = sAdjective + " " + name + " of " + xName; break; case 4: name = name + " of " + xName; break; case 5: name = sAdjective + " " + name; break; } task = task + " their " + name; } else { string[] sMetals = new string[] { "iron ", "dull copper ", "shadow iron ", "copper ", "bronze ", "gold ", "agapite ", "verite ", "valorite ", "nepturite ", "obsidian ", "steel ", "brass ", "mithril ", "xormite ", "dwarven " }; string sMetal = sMetals[Utility.RandomMinMax(0, (sMetals.Length - 1))]; string name = "item"; if (item.Name != null && item.Name != "") { name = item.Name.ToLower(); } if (name == "item") { name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower(); } task = task + " their " + sMetal + name; } item.Delete(); return(task); }
public override void GenerateLoot() { Katana kat = new Katana(); kat.Movable = false; kat.Crafter = this; kat.Quality = WeaponQuality.Exceptional; AddItem( kat ); PackPotion(); PackGold( 200, 250 ); PackScroll( 1, 6 ); PackScroll( 1, 6 ); PackMagicEquipment( 1, 2, 0.20, 0.20 ); // Category 2 MID PackMagicItem( 1, 1, 0.05 ); }
public RatmenFortressBossChest() : base(0x2DF2) { Name = "a boss treasure chest -25-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 25; LockLevel = 25; MaxLockLevel = 30; // Gold if (Utility.RandomDouble() < 0.50) { DropItem(new Gold(Utility.Random(250, 400))); } /////////////////////////////////////// Jewelry if (Utility.RandomDouble() < 0.04) { DropItem(new Agate()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Beryl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new ChromeDiopside()); } if (Utility.RandomDouble() < 0.04) { DropItem(new FireOpal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new MoonstoneCustom()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Onyx()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Opal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Pearl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new TurquoiseCustom()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Bloodstone()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Citrine()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Demantoid()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Jasper()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lolite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lupis()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Peridot()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Tsavorite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Zircon()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Amber()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Amethyst()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Andalusite()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Chrysoberyl()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Garnet()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Jade()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Mandarin()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Morganite()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Paraiba()); } if (Utility.RandomDouble() < 0.02) { DropItem(new TigerEye()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Tourmaline()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Alexandrite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Ametrine()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Kunzite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Ruby()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Sapphire()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Tanzanite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Topaz()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Zultanite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Diamond()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Emerald()); } if (Utility.RandomDouble() < 0.01) { DropItem(new PinkQuartz()); } if (Utility.RandomDouble() < 0.01) { DropItem(new StarSapphire()); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.15) { DropItem(new Arrow(Utility.Random(35, 50))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bolt(Utility.Random(35, 50))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(35, 40); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.15) { DropItem(new Bandage(Utility.Random(25, 40))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bottle(Utility.Random(15, 25))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Lockpick(Utility.Random(15, 25))); } Item PotionLoot1 = Loot.RandomPotion(); DropItem(PotionLoot1); Item PotionLoot2 = Loot.RandomPotion(); DropItem(PotionLoot2); Item PotionLoot3 = Loot.RandomPotion(); DropItem(PotionLoot3); /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.15) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.20) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 20); DropItem(weapon); } if (Utility.RandomDouble() < 0.20) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 20); DropItem(armor); } if (Utility.RandomDouble() < 0.20) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 5, 15, 20); DropItem(hat); } if (Utility.RandomDouble() < 0.20) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 5, 15, 20); DropItem(clothing); } if (Utility.RandomDouble() < 0.20) { BaseShield shield = new HeaterShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 15, 20); } DropItem(shield); } if (Utility.RandomDouble() < 0.20) { BaseJewel bracelet = new SilverBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 15, 20); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.20) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 20); } DropItem(earrings); } if (Utility.RandomDouble() < 0.20) { BaseJewel necklace = new SilverNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 15, 20); } DropItem(necklace); } if (Utility.RandomDouble() < 0.20) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 15, 20); } DropItem(ring); } }
public AncientLich() : base( AIType.AI_Mage, FightMode.Strongest, 10, 1, 0.2, 0.4 ) { Name = NameList.RandomName( "ancient lich" ); Body = 78; BaseSoundID = 412; SetStr( 416, 505 ); SetDex( 96, 115 ); SetInt( 966, 1045 ); SetHits( 590, 615 ); SetDamage( 15, 27 ); SetSkill( SkillName.EvalInt, 120.1, 150.0 ); SetSkill( SkillName.Magery, 120.1, 130.0 ); SetSkill( SkillName.Meditation, 100.1, 101.0 ); SetSkill( SkillName.Poisoning, 100.1, 101.0 ); SetSkill( SkillName.MagicResist, 175.2, 200.0 ); SetSkill( SkillName.Tactics, 95.1, 100.0 ); SetSkill( SkillName.Wrestling, 95.1, 100.0 ); Fame = 23000; Karma = -23000; VirtualArmor = 60; switch ( Utility.Random( 500 )) { case 0: PackItem( new CandelabraStand() ); break; } Katana weapon = new Katana(); weapon.DamageLevel = (WeaponDamageLevel)Utility.Random( 0, 5 ); weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random( 0, 5 ); weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random( 0, 5 ); PackItem( weapon ); PackJewel( 0.6 ); PackGold( 1000, 1250 ); PackReg( Utility.RandomMinMax( 15, 50 ) ); PackItem( Loot.RandomArmorOrShieldOrWeapon() ); switch ( Utility.Random( 2 ) ) { case 0: PackArmor( 0, 5 ); break; case 1: PackArmor( 0, 5 ); break; } switch ( Utility.Random( 2 ) ) { case 0: PackArmor( 0, 5 ); break; case 1: PackArmor( 0, 5 ); break; } switch ( Utility.Random( 5 ) ) { case 0: PackArmor( 1, 5 ); break; case 1: PackArmor( 1, 5 ); break; } switch ( Utility.Random( 10 ) ) { case 0: PackArmor( 2, 5 ); break; case 1: PackArmor( 2, 5 ); break; } // TODO: Bone armor }
public ChaosDragoon() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "um dragão do caos"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr( 176, 225 ); SetDex( 81, 95 ); SetInt( 61, 85 ); SetHits( 176, 225 ); SetDamage( 24, 26 ); SetDamageType( ResistanceType.Physical, 25 ); SetDamageType( ResistanceType.Fire, 25 ); SetDamageType( ResistanceType.Cold, 25 ); SetDamageType( ResistanceType.Energy, 25 ); //SetResistance( ResistanceType.Physical, 25, 38 ); //SetResistance( ResistanceType.Fire, 25, 38 ); //SetResistance( ResistanceType.Cold, 25, 38 ); //SetResistance( ResistanceType.Poison, 25, 38 ); //SetResistance( ResistanceType.Energy, 25, 38 ); SetSkill( SkillName.Fencing, 77.6, 92.5 ); SetSkill( SkillName.Healing, 60.3, 90.0 ); SetSkill( SkillName.Macing, 77.6, 92.5 ); SetSkill( SkillName.Anatomy, 77.6, 87.5 ); SetSkill( SkillName.MagicResist, 77.6, 97.5 ); SetSkill( SkillName.Swords, 77.6, 92.5 ); SetSkill( SkillName.Tactics, 77.6, 87.5 ); Fame = 5000; Karma = -5000; CraftResource res = CraftResource.None; switch (Utility.Random( 6 )) { case 0: res = CraftResource.BlackScales; break; case 1: res = CraftResource.RedScales; break; case 2: res = CraftResource.BlueScales; break; case 3: res = CraftResource.YellowScales; break; case 4: res = CraftResource.GreenScales; break; case 5: res = CraftResource.WhiteScales; break; } BaseWeapon melee = null; switch (Utility.Random( 3 )) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem( melee ); DragonHelm helm = new DragonHelm(); helm.Resource = res; helm.Movable = false; AddItem( helm ); DragonChest chest = new DragonChest(); chest.Resource = res; chest.Movable = false; AddItem( chest ); DragonArms arms = new DragonArms(); arms.Resource = res; arms.Movable = false; AddItem( arms ); DragonGloves gloves = new DragonGloves(); gloves.Resource = res; gloves.Movable = false; AddItem( gloves ); DragonLegs legs = new DragonLegs(); legs.Resource = res; legs.Movable = false; AddItem( legs ); ChaosShield shield = new ChaosShield(); shield.Movable = false; AddItem( shield ); AddItem( new Shirt() ); AddItem( new Boots() ); int amount = Utility.RandomMinMax( 1, 3 ); switch ( res ) { case CraftResource.BlackScales: AddItem( new BlackScales( amount ) ); break; case CraftResource.RedScales: AddItem( new RedScales( amount ) ); break; case CraftResource.BlueScales: AddItem( new BlueScales( amount ) ); break; case CraftResource.YellowScales: AddItem( new YellowScales( amount ) ); break; case CraftResource.GreenScales: AddItem( new GreenScales( amount ) ); break; case CraftResource.WhiteScales: AddItem( new WhiteScales( amount ) ); break; } new SwampDragon().Rider = this; }
public AmazonTreeSettlementTreasureChest() : base(0xE43) { Name = "a treasure chest -10-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 10; LockLevel = 10; MaxLockLevel = 15; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(15, 200))); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.10) { DropItem(new Arrow(Utility.Random(2, 6))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Bolt(Utility.Random(2, 6))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(2, 6); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.10) { DropItem(new Bandage(Utility.Random(2, 6))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Bottle(Utility.Random(2, 6))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Lockpick(Utility.Random(2, 6))); } Item PotionLoot = Loot.RandomPotion(); DropItem(PotionLoot); /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.10) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterBelt()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterBoots()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterBustier()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterGloves()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterHelmet()); } if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(21)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 2, 10, 15); weapon.DamageLevel = (WeaponDamageLevel)Utility.Random(2); weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random(2); weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random(2); weapon.Quality = WeaponQuality.Regular; DropItem(weapon); } if (Utility.RandomDouble() < 0.10) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(10)) { case 0: armor = new FemaleLeatherChest(); break; case 1: armor = new LeatherBustierArms(); break; case 2: armor = new LeatherArms(); break; case 3: armor = new LeatherCap(); break; case 4: armor = new LeatherGloves(); break; case 5: armor = new LeatherGorget(); break; case 6: armor = new LeatherLegs(); break; case 7: armor = new LeatherShorts(); break; case 8: armor = new LeatherSkirt(); break; default: armor = new LeatherChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 3, 10, 15); armor.ProtectionLevel = (ArmorProtectionLevel)Utility.Random(3); armor.Durability = (ArmorDurabilityLevel)Utility.Random(3); armor.Quality = ArmorQuality.Regular; DropItem(armor); } if (Utility.RandomDouble() < 0.10) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 3, 10, 15); DropItem(hat); } if (Utility.RandomDouble() < 0.10) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 10, 15); DropItem(clothing); } if (Utility.RandomDouble() < 0.10) { BaseShield shield = new MetalShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 3, 10, 15); } DropItem(shield); } if (Utility.RandomDouble() < 0.10) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 3, 10, 15); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.10) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 3, 10, 15); } DropItem(earrings); } if (Utility.RandomDouble() < 0.10) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 10, 15); } DropItem(necklace); } if (Utility.RandomDouble() < 0.10) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 3, 10, 15); } DropItem(ring); } }
public FortressCalcifinaTreasureChest1() : base(0xE43) { Name = "a treasure chest -25-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 25; LockLevel = 25; MaxLockLevel = 30; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(40, 400))); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.15) { DropItem(new Arrow(Utility.Random(15, 20))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bolt(Utility.Random(15, 20))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(15, 20); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.15) { DropItem(new Bandage(Utility.Random(15, 20))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bottle(Utility.Random(15, 20))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Lockpick(Utility.Random(15, 20))); } Item PotionLoot = Loot.RandomPotion(); DropItem(PotionLoot); /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.15) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.15) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 4, 18, 22); DropItem(weapon); } if (Utility.RandomDouble() < 0.15) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 4, 18, 22); DropItem(armor); } if (Utility.RandomDouble() < 0.15) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 4, 18, 22); DropItem(hat); } if (Utility.RandomDouble() < 0.15) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 4, 18, 22); DropItem(clothing); } if (Utility.RandomDouble() < 0.15) { BaseShield shield = new MetalKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 4, 18, 22); } DropItem(shield); } if (Utility.RandomDouble() < 0.15) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 4, 18, 22); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.15) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 4, 18, 22); } DropItem(earrings); } if (Utility.RandomDouble() < 0.15) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 4, 18, 22); } DropItem(necklace); } if (Utility.RandomDouble() < 0.15) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 4, 18, 22); } DropItem(ring); } }
public override void InitOutfit() { WipeLayers(); BoneArms arms = new BoneArms(); AddItem( arms ); BoneGloves gloves = new BoneGloves(); AddItem( gloves ); BoneChest tunic = new BoneChest(); AddItem( tunic ); BoneLegs legs = new BoneLegs(); AddItem( legs ); BoneHelm helm = new BoneHelm(); AddItem( helm ); AddItem( new Shoes() ); Item weapon = null; if (Utility.RandomBool()) { SetSkill(SkillName.Parry, 60, 95); AddItem(new Buckler()); weapon = new Katana(); SetDamage( 8, 10 ); // numbers based on LordGuardian } else { weapon = new ExecutionersAxe(); SetDamage( 20, 30 ); // numbers based on Executioner } weapon.Movable = true; AddItem( weapon ); }
public override bool OnDragDrop( Mobile from, Item dropped ) { // trigger returns true if returnoverride if (XmlScript.HasTrigger(this, TriggerName.onDragDrop) && UberScriptTriggers.Trigger(this, from, TriggerName.onDragDrop, dropped)) return true; PlayerMobile player = from as PlayerMobile; if ( player != null ) { QuestSystem qs = player.Quest; if ( qs is UzeraanTurmoilQuest ) { if ( dropped is UzeraanTurmoilHorn ) { if ( player.Young ) { UzeraanTurmoilHorn horn = (UzeraanTurmoilHorn)dropped; if ( horn.Charges < 10 ) { SayTo( from, 1049384 ); // I have recharged the item for you. horn.Charges = 10; } else { SayTo( from, 1049385 ); // That doesn't need recharging yet. } } else { player.SendLocalizedMessage( 1114333 ); //You must be young to have this item recharged. } return false; } if ( dropped is SchmendrickScrollOfPower ) { QuestObjective obj = qs.FindObjective( typeof( ReturnScrollOfPowerObjective ) ); if ( obj != null && !obj.Completed ) { Container cont = GetNewContainer(); cont.DropItem( new TreasureMap( player.Young ? 0 : 1, Map.Felucca ) ); cont.DropItem( new Shovel() ); cont.DropItem( new UzeraanTurmoilHorn() ); if ( !player.PlaceInBackpack( cont ) ) { cont.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } else if ( dropped is QuestFertileDirt ) { QuestObjective obj = qs.FindObjective( typeof( ReturnFertileDirtObjective ) ); if ( obj != null && !obj.Completed ) { Container cont = GetNewContainer(); if ( player.Profession == 2 ) // magician { cont.DropItem( new BlackPearl( 20 ) ); cont.DropItem( new Bloodmoss( 20 ) ); cont.DropItem( new Garlic( 20 ) ); cont.DropItem( new Ginseng( 20 ) ); cont.DropItem( new MandrakeRoot( 20 ) ); cont.DropItem( new Nightshade( 20 ) ); cont.DropItem( new SulfurousAsh( 20 ) ); cont.DropItem( new SpidersSilk( 20 ) ); for ( int i = 0; i < 3; i++ ) cont.DropItem( Loot.RandomScroll( 0, 23, SpellbookType.Regular ) ); } else { cont.DropItem( new Gold( 300 ) ); cont.DropItem( new Bandage( 25 ) ); for ( int i = 0; i < 5; i++ ) cont.DropItem( new LesserHealPotion() ); } if ( !player.PlaceInBackpack( cont ) ) { cont.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } else if ( dropped is QuestDaemonBlood ) { QuestObjective obj = qs.FindObjective( typeof( ReturnDaemonBloodObjective ) ); if ( obj != null && !obj.Completed ) { Item reward; if ( player.Profession == 2 ) // magician { Container cont = GetNewContainer(); cont.DropItem( new ExplosionScroll( 4 ) ); cont.DropItem( new MagicWizardsHat() ); reward = cont; } else { BaseWeapon weapon; switch ( Utility.Random( 6 ) ) { case 0: weapon = new Broadsword(); break; case 1: weapon = new Cutlass(); break; case 2: weapon = new Katana(); break; case 3: weapon = new Longsword(); break; case 4: weapon = new Scimitar(); break; default: weapon = new VikingSword(); break; } int damageLevel = BaseCreature.RandomMinMaxScaled(2, 4); if (PseudoSeerStone.Instance != null && PseudoSeerStone.Instance._HighestDamageLevelSpawn < damageLevel) { damageLevel = PseudoSeerStone.Instance._HighestDamageLevelSpawn; } weapon.DamageLevel = (WeaponDamageLevel)damageLevel; weapon.AccuracyLevel = (WeaponAccuracyLevel)BaseCreature.RandomMinMaxScaled( 2, 4 ); weapon.DurabilityLevel = (WeaponDurabilityLevel)BaseCreature.RandomMinMaxScaled( 2, 4 ); weapon.Slayer = SlayerName.Silver; reward = weapon; } if ( !player.PlaceInBackpack( reward ) ) { reward.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } else if ( dropped is QuestDaemonBone ) { QuestObjective obj = qs.FindObjective( typeof( ReturnDaemonBoneObjective ) ); if ( obj != null && !obj.Completed ) { Container cont = GetNewContainer(); cont.DropItem( new BankCheck( 2000 ) ); cont.DropItem( new EnchantedSextant() ); if ( !player.PlaceInBackpack( cont ) ) { cont.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } } } return base.OnDragDrop( from, dropped ); }
public static void CreateItem(ItemInfo info, Mobile m) { if (m == null) return; Item item = null; BaseCreature bc = null; switch (info.IncrID) { case 0: item = new BlackPearl(999); break; case 1: item = new Bloodmoss(999); break; case 2: item = new MandrakeRoot(999); break; case 3: item = new Garlic(999); break; case 4: item = new Ginseng(999); break; case 5: item = new Nightshade(999); break; case 6: item = new SpidersSilk(999); break; case 7: item = new SulfurousAsh(999); break; case 8: item = new Bag(); ((Bag)item).DropItem( new BlackPearl(100) ); ((Bag)item).DropItem( new Bloodmoss(100) ); ((Bag)item).DropItem( new MandrakeRoot(100) ); ((Bag)item).DropItem( new Garlic(100) ); ((Bag)item).DropItem( new Ginseng(100) ); ((Bag)item).DropItem( new Nightshade(100) ); ((Bag)item).DropItem( new SpidersSilk(100) ); ((Bag)item).DropItem( new SulfurousAsh(100) ); break; case 9: item = new BatWing(999); break; case 10: item = new GraveDust(999); break; case 11: item = new DaemonBlood(999); break; case 12: item = new NoxCrystal(999); break; case 13: item = new PigIron(999); break; case 14: item = new Bag(); ((Bag)item).DropItem( new BatWing(100) ); ((Bag)item).DropItem( new GraveDust(100) ); ((Bag)item).DropItem( new DaemonBlood(100) ); ((Bag)item).DropItem( new NoxCrystal(100) ); ((Bag)item).DropItem( new PigIron(100) ); break; case 15: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new RefreshPotion(); break; case 16: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new LesserCurePotion(); break; case 17: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new LesserHealPotion(); break; case 18: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new NightSightPotion(); break; case 19: item = new Bandage(50); break; case 20: item = new Bandage(200); break; case 21: item = new Bandage(1000); break; case 22: item = new Arrow(100); break; case 23: item = new Arrow(1000); break; case 24: item = new Bolt(100); break; case 25: item = new Bolt(1000); break; case 26: bc = new Horse(); break; case 27: bc = new PackLlama(); break; case 28: item = new Club(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 29: item = new WarFork(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 30: item = new Katana(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 31: item = new Bow(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 32: item = new MetalKiteShield(); BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 33: item = new WoodenShield(); BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 34: item = new LeatherChest(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 35: item = new LeatherGloves(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 36: item = new LeatherGorget(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 37: item = new LeatherLegs(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 38: item = new LeatherCap(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 39: item = new LeatherArms(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 40: item = new Gold(300); break; case 41: item = new Gold(3000); break; case 42: item = new Server.Engines.BulkOrders.BulkOrderBook(); break; case 43: item = new Drums(); ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional; break; case 44: item = new TambourineTassel(); ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional; break; case 45: item = new Server.Multis.SmallDragonBoatDeed(); break; case 46: item = new Server.Multis.LargeDragonBoatDeed(); break; } if (item != null) { m.AddToBackpack(item); m.SendMessage("Here are the goods you requested."); } else if (bc != null) { bc.Controlled = true; bc.ControlMaster = m; bc.MoveToWorld( m.Location, m.Map ); m.SendMessage("Here is the pet you requested."); } else { m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser."); m.LaunchBrowser( "http://bug.casiopia.net/" ); m.AddToBackpack( new VeriteGem(info.Price) ); } }
public DummyAssassin() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Hybrid Assassin int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats( 105, 105, 105 ); this.Skills[SkillName.Magery].Base = 120; this.Skills[SkillName.EvalInt].Base = 120; this.Skills[SkillName.Swords].Base = 120; this.Skills[SkillName.Tactics].Base = 120; this.Skills[SkillName.Meditation].Base = 120; this.Skills[SkillName.Poisoning].Base = 100; // Name this.Name = "Hybrid Assassin"; // Equip Spellbook book = new Spellbook(); book.Movable = false; book.LootType = LootType.Newbied; book.Content =0xFFFFFFFFFFFFFFFF; AddToBackpack( book ); Katana kat = new Katana(); kat.Movable = false; kat.LootType = LootType.Newbied; kat.Crafter = this; kat.Poison = Poison.Deadly; kat.PoisonCharges = 12; kat.Quality = WeaponQuality.Regular; AddToBackpack( kat ); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Newbied; lea.Crafter = this; lea.Quality = ArmorQuality.Regular; AddItem( lea ); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Newbied; lec.Crafter = this; lec.Quality = ArmorQuality.Regular; AddItem( lec ); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Newbied; leg.Crafter = this; leg.Quality = ArmorQuality.Regular; AddItem( leg ); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Newbied; lel.Crafter = this; lel.Quality = ArmorQuality.Regular; AddItem( lel ); Sandals snd = new Sandals(); snd.Hue = iHue; snd.LootType = LootType.Newbied; AddItem( snd ); Cap cap = new Cap(); cap.Hue = iHue; AddItem( cap ); Robe robe = new Robe(); robe.Hue = iHue; AddItem( robe ); DeadlyPoisonPotion pota = new DeadlyPoisonPotion(); pota.LootType = LootType.Newbied; AddToBackpack( pota ); DeadlyPoisonPotion potb = new DeadlyPoisonPotion(); potb.LootType = LootType.Newbied; AddToBackpack( potb ); DeadlyPoisonPotion potc = new DeadlyPoisonPotion(); potc.LootType = LootType.Newbied; AddToBackpack( potc ); DeadlyPoisonPotion potd = new DeadlyPoisonPotion(); potd.LootType = LootType.Newbied; AddToBackpack( potd ); Bandage band = new Bandage( 50 ); AddToBackpack( band ); }
public Student() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 ) { Name = "Student"; Body = 400; SetStr( 391, 510 ); SetDex( 176, 195 ); SetInt( 231, 250 ); SetHits( 942, 968 ); SetMana( 500 ); SetDamage( 21, 41 ); SetDamageType( ResistanceType.Physical, 85 ); SetResistance( ResistanceType.Physical, 45, 55 ); SetResistance( ResistanceType.Fire, 20, 40 ); SetResistance( ResistanceType.Cold, 40, 55 ); SetResistance( ResistanceType.Poison, 15, 35 ); SetResistance( ResistanceType.Energy, 30, 55 ); SetSkill( SkillName.MagicResist, 120.6, 135.0 ); SetSkill( SkillName.Tactics, 120.1, 130.0 ); SetSkill( SkillName.Wrestling, 120.1, 145.0 ); SetSkill( SkillName.Swords, 120.1, 145.0 ); SetSkill( SkillName.Parry, 120.1, 145.0 ); SetSkill( SkillName.Wrestling, 120.1, 145.0 ); SetSkill( SkillName.EvalInt, 120.1, 145.0 ); SetSkill( SkillName.Anatomy, 120.1, 145.0 ); SetSkill( SkillName.Focus, 120.1, 145.0 ); Fame = 20000; Karma = -10000; VirtualArmor = 30; AddItem( new TattsukeHakama( 1109 ) ); AddItem( new HakamaShita( 1150 ) ); AddItem( new SamuraiTabi() ); AddItem( new Bandana( 1109 ) ); Katana weapon = new Katana(); weapon.Movable = true; weapon.LootType = LootType.Blessed; AddItem( weapon ); }
public override bool OnDragDrop( Mobile from, Item dropped ) { PlayerMobile player = from as PlayerMobile; if ( player != null ) { QuestSystem qs = player.Quest; if ( qs is UzeraanTurmoilQuest ) { if ( dropped is UzeraanTurmoilHorn ) { if ( player.Young ) { UzeraanTurmoilHorn horn = (UzeraanTurmoilHorn) dropped; if ( horn.Charges < 10 ) { SayTo( from, 1049384 ); // I have recharged the item for you. horn.Charges = 10; } else { SayTo( from, 1049385 ); // That doesn't need recharging yet. } } else { player.SendMessage( "You must be young to have this item recharged." ); } return false; } if ( dropped is SchmendrickScrollOfPower ) { QuestObjective obj = qs.FindObjective( typeof( ReturnScrollOfPowerObjective ) ); if ( obj != null && !obj.Completed ) { Container cont = GetNewContainer(); cont.DropItem( new TreasureMap( 1 ) ); cont.DropItem( new Shovel() ); cont.DropItem( new UzeraanTurmoilHorn() ); if ( !player.PlaceInBackpack( cont ) ) { cont.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } else if ( dropped is QuestFertileDirt ) { QuestObjective obj = qs.FindObjective( typeof( ReturnFertileDirtObjective ) ); if ( obj != null && !obj.Completed ) { Container cont = GetNewContainer(); if ( player.Profession == 2 ) // magician { cont.DropItem( new BlackPearl( 20 ) ); cont.DropItem( new Bloodmoss( 20 ) ); cont.DropItem( new Garlic( 20 ) ); cont.DropItem( new Ginseng( 20 ) ); cont.DropItem( new MandrakeRoot( 20 ) ); cont.DropItem( new Nightshade( 20 ) ); cont.DropItem( new SulfurousAsh( 20 ) ); cont.DropItem( new SpidersSilk( 20 ) ); for ( int i = 0; i < 3; i++ ) { cont.DropItem( Loot.RandomScroll( 0, 23, SpellbookType.Regular ) ); } } else { cont.DropItem( new Gold( 300 ) ); cont.DropItem( new Bandage( 25 ) ); for ( int i = 0; i < 5; i++ ) { cont.DropItem( new LesserHealPotion() ); } } if ( !player.PlaceInBackpack( cont ) ) { cont.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } else if ( dropped is QuestDaemonBlood ) { QuestObjective obj = qs.FindObjective( typeof( ReturnDaemonBloodObjective ) ); if ( obj != null && !obj.Completed ) { Item reward; if ( player.Profession == 2 ) // magician { Container cont = GetNewContainer(); cont.DropItem( new ExplosionScroll( 4 ) ); cont.DropItem( new MagicWizardsHat() ); reward = cont; } else { BaseWeapon weapon; switch ( Utility.Random( 6 ) ) { case 0: weapon = new Broadsword(); break; case 1: weapon = new Cutlass(); break; case 2: weapon = new Katana(); break; case 3: weapon = new Longsword(); break; case 4: weapon = new Scimitar(); break; default: weapon = new VikingSword(); break; } weapon.Slayer = SlayerName.Undead; BaseRunicTool.ApplyAttributesTo( weapon, 3, 20, 40 ); reward = weapon; } if ( !player.PlaceInBackpack( reward ) ) { reward.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } else if ( dropped is QuestDaemonBone ) { QuestObjective obj = qs.FindObjective( typeof( ReturnDaemonBoneObjective ) ); if ( obj != null && !obj.Completed ) { Container cont = GetNewContainer(); cont.DropItem( new BankCheck( 2000 ) ); cont.DropItem( new EnchantedSextant() ); if ( !player.PlaceInBackpack( cont ) ) { cont.Delete(); player.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory. return false; } else { dropped.Delete(); obj.Complete(); return true; } } } } } return base.OnDragDrop( from, dropped ); }
public TownChestWeaponsmith() : base(0xE43) { Name = "a metal chest -20-"; Movable = true; Weight = 1000.0; Hue = 83; TrapPower = 0; Locked = true; RequiredSkill = 20; LockLevel = 20; MaxLockLevel = 25; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(1, 50))); } // Supplies if (Utility.RandomDouble() < 0.10) { DropItem(new Axe()); } if (Utility.RandomDouble() < 0.05) { DropItem(new DoubleAxe()); } if (Utility.RandomDouble() < 0.10) { DropItem(new LargeBattleAxe()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Mace()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Maul()); } if (Utility.RandomDouble() < 0.10) { DropItem(new WarMace()); } if (Utility.RandomDouble() < 0.10) { DropItem(new ShortSpear()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Spear()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Longsword()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Scimitar()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Arrow(Utility.Random(25, 30))); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.15) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 20); DropItem(weapon); } }