public PetBallTarget( Mobile from, PetSkillBall ball ) : base ( 3, false, TargetFlags.None ) { m_Ball = ball; m_From = from; m_From.CloseGump( typeof( PetBallGump ) ); from.SendMessage("Select a pet to modify their skills."); }
public TamerDonationBox() { Weight = 1.0; Hue = 1278; Item item = null; Name = "Defiance Beast Handler Box"; PlaceItemIn( 16, 50, (item = new PetSkillBall( 10 )) ); PlaceItemIn( 16, 65, (item = new PetSkillBall( 20 )) ); PlaceItemIn( 16, 80, (item = new PetSkillBall( 30 )) ); PlaceItemIn( 16, 95, (item = new PetSkillBall( 40 )) ); //PlaceItemIn( 16, 110, (item = new PetSkillBall( 50 )) ); PlaceItemIn( 160, 50, (item = new PetSkillBall( 10 )) ); PlaceItemIn( 160, 65, (item = new PetSkillBall( 20 )) ); PlaceItemIn( 160, 80, (item = new PetSkillBall( 30 )) ); PlaceItemIn( 160, 95, (item = new PetSkillBall( 40 )) ); //PlaceItemIn( 160, 110, (item = new PetSkillBall( 50 )) ); int rand = Utility.Random( 3 ); switch ( rand ) { default: case 0: item = new VultureHelm(); break; case 1: item = new EagleHelm(); break; case 2: item = new RavenHelm(); break; } PlaceItemIn( 91, 57, item ); item.Hue = Utility.RandomList(1150, 1151, 1154, 1153, 1281); item.LootType = LootType.Blessed; //item.Name = "Beast Handler's Helm"; PlaceItemIn( 66, 56, (item = new GracedPetSummonBall()) ); PlaceItemIn( 28, 60, (item = new RaelisDragonEgg()) ); PlaceItemIn( 114, 60, (item = new HiryuEvoEgg()) ); PlaceItemIn( 34, 83, (item = new PetBondDeed()) ); item.Hue = 1158; PlaceItemIn( 48, 83, (item = new EvoPointsDeed()) ); //item.Hue = 2401; PlaceItemIn( 64, 83, (item = new EvoPointsDeed()) ); item.Hue = 1158; PlaceItemIn( 80, 83, (item = new EvoPointsDeed()) ); //item.Hue = 2401; PlaceItemIn( 98, 83, (item = new EvoPointsDeed()) ); item.Hue = 1158; PlaceItemIn(114, 83, (item = new MembershipTicket())); item.Hue = 1278; ((MembershipTicket)item).MemberShipTime = TimeSpan.FromDays(730); }
public PetSkillBallTarget(Mobile from, PetSkillBall ball) : base(12, false, TargetFlags.None) { m_From = from; m_Ball = ball; }
public PetSkillBallTarget( Mobile from, PetSkillBall ball ) : base(12, false, TargetFlags.None) { m_From = from; m_Ball = ball; }
// Uncomment the line below to use a defined number instead of the standard Stat Cap // private int Cap; public PetBallGump( PlayerMobile from, BaseCreature pet, PetSkillBall ball ): base( 50, 50 ) { m_From = from; m_Ball = ball; m_Pet = pet; Wrestling = pet.Skills[SkillName.Wrestling].Base; Tactics = pet.Skills[SkillName.Tactics].Base; ResistingSpells = pet.Skills[SkillName.MagicResist].Base; Anatomy = pet.Skills[SkillName.Anatomy].Base; Poisoning = pet.Skills[SkillName.Poisoning].Base; Magery = pet.Skills[SkillName.Magery].Base; EvaluatingIntelligence = pet.Skills[SkillName.EvalInt].Base; Meditation = pet.Skills[SkillName.Meditation].Base; String petName = pet.Name + "'s"; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddImage(4, 23, 8000); this.AddImage(24, 60, 8001); this.AddImage(24, 126, 8001); this.AddImage(24, 196, 8001); this.AddImage(23, 250, 8001); this.AddImage(24, 313, 8003); this.AddImage(202, 33, 2100); //this.AddLabel(77, 29, 5, petName ); this.AddHtml( 64, 29, 123, 18, "<basefont size=5>" + petName + "</basefont>", false, false ); this.AddImage(51, 88, 2086); this.AddImage(51, 212, 2086); this.AddLabel(73, 84, 5, @"Combat Ratings"); this.AddLabel(73, 208, 5, @"Lore & Knowledge"); this.AddLabel(80, 105, 545, @"Wrestling"); this.AddLabel(80, 125, 545, @"Tactics"); this.AddLabel(80, 145, 545, @"Resisting Spells"); this.AddLabel(80, 165, 545, @"Anatomy"); this.AddLabel(80, 185, 545, @"Poisoning"); this.AddLabel(80, 225, 545, @"Magery"); this.AddLabel(80, 245, 545, @"Evaluating Intelligence"); this.AddLabel(80, 265, 545, @"Meditation"); this.AddImage(71, 61, 2091); this.AddImage(69, 298, 2091); this.AddLabel(76, 320, 1672, @"Created by Doobs."); if ( pet.Skills[SkillName.Wrestling].Base > 0 ) { this.AddTextEntry(225, 105, 35, 17, 0, 1, pet.Skills[SkillName.Wrestling].Base.ToString() ); } else { this.AddLabel(225, 105, 0, @"---" ); } if ( pet.Skills[SkillName.Tactics].Base > 0 ) { this.AddTextEntry(225, 125, 35, 17, 0, 2, pet.Skills[SkillName.Tactics].Base.ToString() ); } else { this.AddLabel(225, 125, 0, @"---" ); } if ( pet.Skills[SkillName.MagicResist].Base > 0 ) { this.AddTextEntry(225, 145, 35, 17, 0, 3, pet.Skills[SkillName.MagicResist].Base.ToString() ); } else { this.AddLabel(225, 145, 0, @"---" ); } if ( pet.Skills[SkillName.Anatomy].Base > 0 ) { this.AddTextEntry(225, 165, 35, 17, 0, 4, pet.Skills[SkillName.Anatomy].Base.ToString() ); } else { this.AddLabel(225, 165, 0, @"---" ); } if ( pet.Skills[SkillName.Poisoning].Base > 0 ) { this.AddTextEntry(225, 185, 35, 17, 0, 5, pet.Skills[SkillName.Poisoning].Base.ToString() ); } else { this.AddLabel(225, 185, 0, @"---" ); } if ( pet.Skills[SkillName.Magery].Base > 0 ) { this.AddTextEntry(225, 225, 35, 17, 0, 6, pet.Skills[SkillName.Magery].Base.ToString() ); } else { this.AddLabel(225, 225, 0, @"---" ); } if ( pet.Skills[SkillName.EvalInt].Base > 0 ) { this.AddTextEntry(225, 245, 35, 17, 0, 7, pet.Skills[SkillName.EvalInt].Base.ToString() ); } else { this.AddLabel(225, 245, 0, @"---" ); } if ( pet.Skills[SkillName.Meditation].Base > 0 ) { this.AddTextEntry(225, 265, 35, 17, 0, 8, pet.Skills[SkillName.Meditation].Base.ToString() ); } else { this.AddLabel(225, 265, 0, @"---" ); } this.AddButton(283, 290, 4023, 4024, 9, GumpButtonType.Reply, 0); }