public SkillBallGump( Mobile from, SkillBall skb ) : base(20, 30) { m_skb = skb; AddPage ( 0 ); AddBackground( 0, 0, 260, 351, 5054 ); AddImageTiled( 10, 10, 240, 23, 0x52 ); AddImageTiled( 11, 11, 238, 21, 0xBBC ); AddLabel( 65, 11, 0, "Skills you can raise" ); AddPage( 1 ); int page = 1; int index = 0; Skills skills = from.Skills; int number; if ( Core.AOS ) number = 0; else number = 3; for ( int i = 0; i < ( skills.Length - number ); ++i ) { if ( index >= FieldsPerPage ) { AddButton( 231, 13, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1 ); ++page; index = 0; AddPage( page ); AddButton( 213, 13, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1 ); } Skill skill = skills[i]; if ( (skill.Base + m_skb.SkillBonus) <= 100 ) { AddImageTiled( 10, 32 + (index * 22), 240, 23, 0x52 ); AddImageTiled( 11, 33 + (index * 22), 238, 21, 0xBBC ); AddLabelCropped( 13, 33 + (index * 22), 150, 21, 0, skill.Name ); AddImageTiled( 180, 34 + (index * 22), 50, 19, 0x52 ); AddImageTiled( 181, 35 + (index * 22), 48, 17, 0xBBC ); AddLabelCropped( 182, 35 + (index * 22), 234, 21, 0, skill.Base.ToString( "F1" ) ); if ( from.AccessLevel >= AccessLevel.Player ) AddButton( 231, 35 + (index * 22), 0x15E1, 0x15E5, i + 1, GumpButtonType.Reply, 0 ); else AddImage( 231, 35 + (index * 22), 0x2622 ); ++index; } } }
public SkillBallGump(Mobile from, Mobile target, SkillBall ball) : base(20, 30) { m_SkillBall = ball; m_Target = target; AddPage(0); AddBackground(0, 0, 260, 351, 5054); AddImageTiled(10, 10, 240, 23, 0x52); AddImageTiled(11, 11, 238, 21, 0xBBC); AddLabel(45, 11, 0, "Select a skill to raise"); AddPage(1); int page = 1; int index = 0; Skills skills = m_Target.Skills; SkillName[] allowedskills = m_SkillBall.GetAllowedSkills(); for (int i = 0; i < allowedskills.Length; ++i) { if (index >= FieldsPerPage) { AddButton(231, 13, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1); ++page; index = 0; AddPage(page); AddButton(213, 13, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1); } Skill skill = skills[allowedskills[i]]; if (m_SkillBall.NewbieBall && skill.Base > 0) { } else if ((skill.Base + m_SkillBall.SkillBonus) <= skill.Cap && skill.Lock == SkillLock.Up) { AddImageTiled(10, 32 + (index * 22), 240, 23, 0x52); AddImageTiled(11, 33 + (index * 22), 238, 21, 0xBBC); AddLabelCropped(13, 33 + (index * 22), 150, 21, 0, skill.Name); AddImageTiled(180, 34 + (index * 22), 50, 19, 0x52); AddImageTiled(181, 35 + (index * 22), 48, 17, 0xBBC); AddLabelCropped(182, 35 + (index * 22), 234, 21, 0, skill.Base.ToString("F1")); AddButton(231, 35 + (index * 22), 0x15E1, 0x15E5, i + 1, GumpButtonType.Reply, 0); ++index; } } }
public TemplatePickGump( SkillBall ball ) : base( 0,0 ) { m_SkillBall = ball; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddBackground(35, 39, 146, 156, 9200); this.AddBackground(49, 48, 114, 132, 9350); this.AddLabel(99, 57, 0, @"Tanks"); this.AddLabel(99, 77, 0, @"Mages"); this.AddLabel(99, 97, 0, @"Dexxers"); this.AddLabel(99, 117, 0, @"Tamers"); this.AddButton(71, 59, 2117, 2118, 1, GumpButtonType.Reply, 0); this.AddButton(71, 79, 2117, 2118, 2, GumpButtonType.Reply, 0); this.AddButton(71, 99, 2117, 2118, 3, GumpButtonType.Reply, 0); this.AddButton(71, 119, 2117, 2118, 4, GumpButtonType.Reply, 0); this.AddButton(91, 146, 4014, 4015, 5, GumpButtonType.Reply, 0); }
public SkillBallGump(Mobile from, SkillBall skb) : base(20, 30) { m_skb = skb; AddPage(0); AddBackground(0, 0, 260, 351, 5054); AddImageTiled(10, 10, 240, 23, 0x52); AddImageTiled(11, 11, 238, 21, 0xBBC); AddLabel(65, 11, 0, "Skills you can raise"); AddPage(1); int page = 1; int index = 0; Skills skills = from.Skills; int number; if (Core.AOS) { number = 0; } else { number = 3; } for (int i = 0; i < (skills.Length - number); ++i) { if (index >= FieldsPerPage) { AddButton(231, 13, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1); ++page; index = 0; AddPage(page); AddButton(213, 13, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1); } Skill skill = skills[i]; if ((skill.Base < 50)) //Shows skills lower then 50 { AddImageTiled(10, 32 + (index * 22), 240, 23, 0x52); AddImageTiled(11, 33 + (index * 22), 238, 21, 0xBBC); AddLabelCropped(13, 33 + (index * 22), 150, 21, 0, skill.Name); AddImageTiled(180, 34 + (index * 22), 50, 19, 0x52); AddImageTiled(181, 35 + (index * 22), 48, 17, 0xBBC); AddLabelCropped(182, 35 + (index * 22), 234, 21, 0, skill.Base.ToString("F1")); if (from.AccessLevel >= AccessLevel.Player) { AddButton(231, 35 + (index * 22), 0x15E1, 0x15E5, i + 1, GumpButtonType.Reply, 0); } else { AddImage(231, 35 + (index * 22), 0x2622); } ++index; } } }
public static Item GetItem(int productNumber) { Item item = null; switch (productNumber) { case 16173: item = new EtherealHorseAoS(); break; case 16174: item = new EtherealLlamaAoS(); break; case 16175: item = new EtherealOstardAoS(); break; case 16176: item = new EtherealUnicornAoS(); break; case 16177: item = new GoldenDonationBoxAoS(); break; case 16178: item = new SilverDonationBoxAoS(); break; case 16179: item = new ValoriteDonationBoxAoS(); break; case 16180: item = new MembershipTicketAoS(); ((MembershipTicketAoS)item).MemberShipTime = TimeSpan.FromDays(30); break; case 16181: item = new MembershipTicketAoS(); ((MembershipTicketAoS)item).MemberShipTime = TimeSpan.FromDays(90); break; case 16182: item = new MembershipTicketAoS(); ((MembershipTicketAoS)item).MemberShipTime = TimeSpan.FromDays(180); break; case 16183: item = new MembershipTicketAoS(); ((MembershipTicketAoS)item).MemberShipTime = TimeSpan.FromDays(360); break; case 16184: item = null; break; case 16185: item = new PotionBundleAoS(); break; //------- //case 16186 TO > 16201 are used by P15 Shard //------- case 16202: item = new DonationSkillBall( 1, false ); break; case 16203: item = new DonationSkillBall( 5, false ); break; case 16204: item = new DonationSkillBall( 10, false ); break; case 16205: item = new DonationSkillBall( 25, false ); break; case 16206: item = new DonationSkillBall( 50, false ); break; case 16207: item = new SerpentCrestAoS(); break; case 16208: item = new IronMaidenAoS(); break; case 16209: item = new GuillotineAoS(); break; case 16210: item = new BigMushroom1AoS(); break; case 16211: item = new BigMushroom2AoS(); break; case 16212: item = new BigMushroom3AoS(); break; case 16213: item = new BigMushroom4AoS(); break; case 16214: item = new LillyPad1AoS(); break; case 16215: item = new LillyPad2AoS(); break; case 16216: item = new LillyPad3AoS(); break; case 16217: item = new DonationDecorArmor1AoS(); break; case 16218: item = new DonationDecorArmor2AoS(); break; case 16219: item = new DonationDecorArmor3AoS(); break; case 16220: item = new DonationDecorArmor4AoS(); break; case 16254: item = new LunaWhiteDonationBoxAos(); break; case 16255: item = new InvulBlueDonationBoxAoS(); break; case 16256: item = new RumRedDonationBoxAos(); break; case 16257: item = new ParaGoldDonationBoxAoS(); break; case 16277: item = new EtherealPolarBearAOS(); break; case 16278: item = new KillResetDeedAOS(true); break; case 16279: item = new OneMillionBankCheckDeedAOS(); break; case 16280: item = new NameChangeDeedAOS(true); break; case 16281: item = new WarHorseBondingDeedAOS(true); break; case 16282: item = new SoulstoneToken(); break; case 16283: item = new SexChangeDeedAOS(true); break; case 16284: item = new SoulstoneToken(); break; case 16285: item = new SkillBall( 10, 120, false ); break; case 16286: item = new SkillBall( 20, 120, false ); break; case 16287: item = new SkillBall( 1, false ); break; case 16288: item = new SkillBall( 5, false ); break; case 16289: item = new SkillBall( 10, false ); break; case 16290: item = new SkillBall( 25, false ); break; case 16291: item = new SkillBall( 50, false ); break; case 16292: item = new SkillballBundleLarge_120_AOS(); break; case 16293: item = new SkillballBundleSmall_120_AOS(); break; case 16294: item = new SkillballBundleExtraLarge_100_AOS(); break; case 16295: item = new SkillballBundleLarge_100_AOS(); break; case 16296: item = new SkillballBundleSmall_100_AOS(); break; default: item = null; break; } return item; }
public SkilllimPickGump(SkillBall ball) : base(0, 0) { this.Closable = true; this.Disposable = true; this.Dragable = true; this.Resizable = true; m_SkillBall = ball; this.AddPage(0); this.AddBackground(39, 33, 750, 500, 9200); this.AddLabel(67, 41, 1153, @"Please select your 7 skills"); this.AddButton(80, 500, 2071, 2072, (int)Buttons.Close, GumpButtonType.Reply, 0); this.AddBackground(52, 60, 720, 430, 9350); this.AddPage(1); this.AddButton(690, 500, 2311, 2312, (int)Buttons.FinishButton, GumpButtonType.Reply, 0); this.AddCheck(55, 65, 210, 211, false, (int)SkillName.Alchemy); this.AddCheck(55, 90, 210, 211, false, (int)SkillName.Anatomy); this.AddCheck(55, 115, 210, 211, false, (int)SkillName.AnimalLore); this.AddCheck(55, 140, 210, 211, false, (int)SkillName.AnimalTaming); this.AddCheck(55, 165, 210, 211, false, (int)SkillName.Archery); this.AddCheck(55, 190, 210, 211, false, (int)SkillName.ArmsLore); this.AddCheck(55, 215, 210, 211, false, (int)SkillName.Begging); this.AddCheck(55, 240, 210, 211, false, (int)SkillName.Blacksmith); this.AddCheck(55, 265, 210, 211, false, (int)SkillName.Bushido); this.AddCheck(55, 290, 210, 211, false, (int)SkillName.Camping); this.AddCheck(55, 315, 210, 211, false, (int)SkillName.Carpentry); this.AddCheck(55, 340, 210, 211, false, (int)SkillName.Cartography); this.AddCheck(55, 365, 210, 211, false, (int)SkillName.Chivalry); this.AddCheck(55, 390, 210, 211, false, (int)SkillName.Cooking); this.AddCheck(55, 415, 210, 211, false, (int)SkillName.DetectHidden); this.AddCheck(55, 440, 210, 211, false, (int)SkillName.Discordance); this.AddCheck(55, 465, 210, 211, false, (int)SkillName.EvalInt); this.AddLabel(80, 65, 0, SkillName.Alchemy.ToString()); this.AddLabel(80, 90, 0, SkillName.Anatomy.ToString()); this.AddLabel(80, 115, 0, SkillName.AnimalLore.ToString()); this.AddLabel(80, 140, 0, SkillName.AnimalTaming.ToString()); this.AddLabel(80, 165, 0, SkillName.Archery.ToString()); this.AddLabel(80, 190, 0, SkillName.ArmsLore.ToString()); this.AddLabel(80, 215, 0, SkillName.Begging.ToString()); this.AddLabel(80, 240, 0, SkillName.Blacksmith.ToString()); this.AddLabel(80, 265, 0, SkillName.Bushido.ToString()); this.AddLabel(80, 290, 0, SkillName.Camping.ToString()); this.AddLabel(80, 315, 0, SkillName.Carpentry.ToString()); this.AddLabel(80, 340, 0, SkillName.Cartography.ToString()); this.AddLabel(80, 365, 0, SkillName.Chivalry.ToString()); this.AddLabel(80, 390, 0, SkillName.Cooking.ToString()); this.AddLabel(80, 415, 0, SkillName.DetectHidden.ToString()); this.AddLabel(80, 440, 0, SkillName.Discordance.ToString()); this.AddLabel(80, 465, 0, SkillName.EvalInt.ToString()); // ******************************************************** this.AddCheck(240, 65, 210, 211, false, (int)SkillName.Fencing); this.AddCheck(240, 90, 210, 211, false, (int)SkillName.Fishing); this.AddCheck(240, 115, 210, 211, false, (int)SkillName.Fletching); this.AddCheck(240, 140, 210, 211, false, (int)SkillName.Focus); this.AddCheck(240, 165, 210, 211, false, (int)SkillName.Forensics); this.AddCheck(240, 190, 210, 211, false, (int)SkillName.Healing); this.AddCheck(240, 215, 210, 211, false, (int)SkillName.Herding); this.AddCheck(240, 240, 210, 211, false, (int)SkillName.Hiding); this.AddCheck(240, 265, 210, 211, false, (int)SkillName.Inscribe); this.AddCheck(240, 290, 210, 211, false, (int)SkillName.ItemID); this.AddCheck(240, 315, 210, 211, false, (int)SkillName.Lockpicking); this.AddCheck(240, 340, 210, 211, false, (int)SkillName.Lumberjacking); this.AddCheck(240, 365, 210, 211, false, (int)SkillName.Macing); this.AddCheck(240, 390, 210, 211, false, (int)SkillName.Magery); this.AddCheck(240, 415, 210, 211, false, (int)SkillName.MagicResist); this.AddCheck(240, 440, 210, 211, false, (int)SkillName.Meditation); this.AddCheck(240, 465, 210, 211, false, (int)SkillName.Mining); this.AddLabel(265, 65, 0, SkillName.Fencing.ToString()); this.AddLabel(265, 90, 0, SkillName.Fishing.ToString()); this.AddLabel(265, 115, 0, SkillName.Fletching.ToString()); this.AddLabel(265, 140, 0, SkillName.Focus.ToString()); this.AddLabel(265, 165, 0, SkillName.Forensics.ToString()); this.AddLabel(265, 190, 0, SkillName.Healing.ToString()); this.AddLabel(265, 215, 0, SkillName.Herding.ToString()); this.AddLabel(265, 240, 0, SkillName.Hiding.ToString()); this.AddLabel(265, 265, 0, SkillName.Inscribe.ToString()); this.AddLabel(265, 290, 0, SkillName.ItemID.ToString()); this.AddLabel(265, 315, 0, SkillName.Lockpicking.ToString()); this.AddLabel(265, 340, 0, SkillName.Lumberjacking.ToString()); this.AddLabel(265, 365, 0, SkillName.Macing.ToString()); this.AddLabel(265, 390, 0, SkillName.Magery.ToString()); this.AddLabel(265, 415, 0, SkillName.MagicResist.ToString()); this.AddLabel(265, 440, 0, SkillName.Meditation.ToString()); this.AddLabel(265, 465, 0, SkillName.Mining.ToString()); // ******************************************************** this.AddCheck(425, 65, 210, 211, false, (int)SkillName.Musicianship); this.AddCheck(425, 90, 210, 211, false, (int)SkillName.Necromancy); this.AddCheck(425, 115, 210, 211, false, (int)SkillName.Ninjitsu); this.AddCheck(425, 140, 210, 211, false, (int)SkillName.Parry); this.AddCheck(425, 165, 210, 211, false, (int)SkillName.Peacemaking); this.AddCheck(425, 190, 210, 211, false, (int)SkillName.Poisoning); this.AddCheck(425, 215, 210, 211, false, (int)SkillName.Provocation); this.AddCheck(425, 240, 210, 211, false, (int)SkillName.RemoveTrap); this.AddCheck(425, 265, 210, 211, false, (int)SkillName.Snooping); this.AddCheck(425, 290, 210, 211, false, (int)SkillName.Spellweaving); this.AddCheck(425, 315, 210, 211, false, (int)SkillName.SpiritSpeak); this.AddCheck(425, 340, 210, 211, false, (int)SkillName.Stealing); this.AddCheck(425, 365, 210, 211, false, (int)SkillName.Stealth); this.AddCheck(425, 390, 210, 211, false, (int)SkillName.Swords); this.AddCheck(425, 415, 210, 211, false, (int)SkillName.Tactics); this.AddCheck(425, 440, 210, 211, false, (int)SkillName.Tailoring); this.AddCheck(425, 465, 210, 211, false, (int)SkillName.TasteID); this.AddLabel(450, 65, 0, SkillName.Musicianship.ToString()); this.AddLabel(450, 90, 0, SkillName.Necromancy.ToString()); this.AddLabel(450, 115, 0, SkillName.Ninjitsu.ToString()); this.AddLabel(450, 140, 0, SkillName.Parry.ToString()); this.AddLabel(450, 165, 0, SkillName.Peacemaking.ToString()); this.AddLabel(450, 190, 0, SkillName.Poisoning.ToString()); this.AddLabel(450, 215, 0, SkillName.Provocation.ToString()); this.AddLabel(450, 240, 0, SkillName.RemoveTrap.ToString()); this.AddLabel(450, 265, 0, SkillName.Snooping.ToString()); this.AddLabel(450, 290, 0, SkillName.Spellweaving.ToString()); this.AddLabel(450, 315, 0, SkillName.SpiritSpeak.ToString()); this.AddLabel(450, 340, 0, SkillName.Stealing.ToString()); this.AddLabel(450, 365, 0, SkillName.Stealth.ToString()); this.AddLabel(450, 390, 0, SkillName.Swords.ToString()); this.AddLabel(450, 415, 0, SkillName.Tactics.ToString()); this.AddLabel(450, 440, 0, SkillName.Tailoring.ToString()); this.AddLabel(450, 465, 0, SkillName.TasteID.ToString()); //********************************************************** this.AddCheck(610, 65, 210, 211, false, (int)SkillName.Tinkering); this.AddCheck(610, 90, 210, 211, false, (int)SkillName.Tracking); this.AddCheck(610, 115, 210, 211, false, (int)SkillName.Veterinary); this.AddCheck(610, 140, 210, 211, false, (int)SkillName.Wrestling); this.AddLabel(635, 65, 0, SkillName.Tinkering.ToString()); this.AddLabel(635, 90, 0, SkillName.Tracking.ToString()); this.AddLabel(635, 115, 0, SkillName.Veterinary.ToString()); this.AddLabel(635, 140, 0, SkillName.Wrestling.ToString()); //********************************************************** }
public IncreaseSkillsGump(PlayerMobile mobile, SkillBall ball, bool first, int page) : base(50, 50) { m_Page = page; m_Ball = ball; m_Points = m_Ball.Points; m_Mobile = mobile; if (first) { int zz = Core.SA ? 58 : Core.ML ? 55 : Core.SE ? 54 : Core.AOS ? 52 : 49; m_StartValue = new double[zz]; m_Page = 0; for (int x = 0; x < zz; x++) m_StartValue[x] = m_Mobile.Skills[x].Base; } int maxPage = Core.AOS ? 5 : 4; m_Mobile.CloseGump(typeof(IncreaseSkillsGump)); AddPage(0); // AddBackground(0, 0, 476, 440, 0x13BE); AddBackground(0, 0, 476, 440, 3500); AddLabel(10, 7, 2100, "Choose Skills"); if (m_Page > 0) { AddButton(275, 7, 250, 251, 2, GumpButtonType.Reply, 0); // Prev Page } if (m_Page < maxPage) { AddButton(275, 395, 252, 253, 3, GumpButtonType.Reply, 0); // Next Page } AddLabel(160, 7, 2100, "Points Left: " + m_Points.ToString()); // We only need this "if" condition if we want to make them use it all up right now. // if ( m_Points == 0 ) // { AddButton(305, 335, 0xFB7, 0xFB9, 1, GumpButtonType.Reply, 0); // OK button // } AddImage(170, -10, 0x58A); m_StartPos = m_Page * 10; int z = 0; int max; if (m_Page == maxPage) max = Core.SA ? 8 : Core.ML ? 5 : Core.SE ? 4 : Core.AOS ? 2 : 9; else max = 10; for (int i = m_StartPos; i < m_StartPos + max; i++) { int y = 20 + (30 * (++z)); m_Skill = m_Mobile.Skills[i]; AddLabel(10, y, 2124, m_Skill.Name.ToString()); AddLabel(170, y, 2100, m_Skill.Base.ToString()); if (CanLowerSkill(m_Skill, i, 1)) AddButton(220, y, 0x1519, 0x1519, 1000 + i, GumpButtonType.Reply, 0); // Decrease if (CanRaiseSkill(m_Skill, i, 1)) AddButton(240, y, 0x151A, 0x151A, 2000 + i, GumpButtonType.Reply, 0); // Increase if (CanLowerSkill(m_Skill, i, 5)) AddButton(200, y - 2, 2229, 2229, 3000 + i, GumpButtonType.Reply, 0); // Decrease by 5 if (CanRaiseSkill(m_Skill, i, 5)) AddButton(256, y - 2, 2229, 2229, 4000 + i, GumpButtonType.Reply, 0); // Increase by 5 } }
public IncreaseSkillsGump(PlayerMobile mobile, SkillBall ball, double[] values, int page) : this(mobile, ball, false, page) { int zz = Core.SA ? 58 : Core.ML ? 55 : Core.SE ? 54 : Core.AOS ? 52 : 49; for (int x = 0; x < zz; x++) m_StartValue[x] = values[x]; }
public SkillBallGump( Mobile from, Mobile target, SkillBall ball ) : base(20, 30) { m_SkillBall = ball; m_Target = target; AddPage ( 0 ); AddBackground( 0, 0, 260, 351, 5054 ); AddImageTiled( 10, 10, 240, 23, 0x52 ); AddImageTiled( 11, 11, 238, 21, 0xBBC ); AddLabel( 45, 11, 0, "Select a skill to raise" ); AddPage( 1 ); int page = 1; int index = 0; Skills skills = m_Target.Skills; SkillName[] allowedskills = m_SkillBall.GetAllowedSkills( m_Target ); for ( int i = 0; i < allowedskills.Length; ++i ) { if ( index >= FieldsPerPage ) { AddButton( 231, 13, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1 ); ++page; index = 0; AddPage( page ); AddButton( 213, 13, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1 ); } Skill skill = skills[allowedskills[i]]; int skillcur = skill.BaseFixedPoint; int skillamt = skillcur + m_SkillBall.SkillBonusFixedPoint; int skillmax = m_SkillBall.MaxCapFixedPoint; int skillmin = m_SkillBall.MinCapFixedPoint; // SILVER: replaced skillamt requirement by skillcur. added red texthue for skills with high skillamt if ( skillcur <= skillmin && skillcur < skillmax && skillcur < skill.CapFixedPoint && skill.Lock == SkillLock.Up && ( allowedskills[i] != SkillName.Stealth || target.Skills.Hiding.BaseFixedPoint >= 800 ) ) { int textHue = 0; if( skillamt > skillmax || skillamt > skill.CapFixedPoint ) textHue = 33; AddImageTiled( 10, 32 + (index * 22), 240, 23, 0x52 ); AddImageTiled( 11, 33 + (index * 22), 238, 21, 0xBBC ); AddLabelCropped( 13, 33 + (index * 22), 150, 21, textHue, skill.Name ); AddImageTiled( 180, 34 + (index * 22), 50, 19, 0x52 ); AddImageTiled( 181, 35 + (index * 22), 48, 17, 0xBBC ); AddLabelCropped( 182, 35 + (index * 22), 234, 21, textHue, skill.Base.ToString( "F1" ) ); AddButton( 231, 35 + (index * 22), 0x15E1, 0x15E5, i + 1, GumpButtonType.Reply, 0 ); ++index; } } }
public TamerPickGump( SkillBall ball ) : base(0,0) { m_SkillBall = ball; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddBackground(35, 39, 183, 188, 9200); this.AddBackground(49, 48, 156, 168, 9350); this.AddLabel(99, 56, 0, @"Peacer-Vet"); this.AddLabel(99, 76, 0, @"Peacer-Med"); this.AddLabel(99, 96, 0, @"PvP Tamer-Vet"); this.AddLabel(99, 116, 0, @"Bola Tamer"); this.AddLabel(99, 136, 0, @"Scribe Tamer"); this.AddLabel(99, 156, 0, @"Alchy Tamer"); this.AddButton(71, 59, 2117, 2118, 1, GumpButtonType.Reply, 0); this.AddButton(71, 79, 2117, 2118, 2, GumpButtonType.Reply, 0); this.AddButton(71, 99, 2117, 2118, 3, GumpButtonType.Reply, 0); this.AddButton(71, 119, 2117, 2118, 4, GumpButtonType.Reply, 0); this.AddButton(71, 139, 2117, 2118, 5, GumpButtonType.Reply, 0); this.AddButton(71, 159, 2117, 2118, 6, GumpButtonType.Reply, 0); this.AddButton(112, 183, 4014, 4015, 7, GumpButtonType.Reply, 0); }
public DexPickGump( SkillBall ball ) : base(0,0) { m_SkillBall = ball; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddBackground(35, 39, 239, 412, 9200); this.AddBackground(49, 48, 211, 386, 9350); this.AddLabel(99, 56, 0, @"Lumberjacker"); this.AddLabel(99, 76, 0, @"Alchy-Dex-Swordsman"); this.AddLabel(99, 96, 0, @"Alchy-Dex-Fencer"); this.AddLabel(99, 116, 0, @"Alchy-Dex-Macer"); this.AddLabel(99, 136, 0, @"Alchy-Dex-Archer"); this.AddLabel(99, 156, 0, @"Axer with hiding"); this.AddLabel(99, 176, 0, @"Fencer with hiding"); this.AddLabel(99, 196, 0, @"Macer with hiding"); this.AddLabel(99, 216, 0, @"Archer with hiding"); this.AddLabel(99, 236, 0, @"Fencer with parrying"); this.AddLabel(99, 256, 0, @"Swordsman with parrying"); this.AddLabel(99, 276, 0, @"Macer with parrying"); this.AddLabel(99, 296, 0, @"Scribe Fencer"); this.AddLabel(99, 316, 0, @"Scribe Swordsman"); this.AddLabel(99, 336, 0, @"Scribe Macer"); this.AddLabel(99, 356, 0, @"Scribe Archer"); this.AddButton(71, 59, 2117, 2118, 1, GumpButtonType.Reply, 0); this.AddButton(71, 79, 2117, 2118, 2, GumpButtonType.Reply, 0); this.AddButton(71, 99, 2117, 2118, 3, GumpButtonType.Reply, 0); this.AddButton(71, 119, 2117, 2118, 4, GumpButtonType.Reply, 0); this.AddButton(71, 139, 2117, 2118, 5, GumpButtonType.Reply, 0); this.AddButton(71, 159, 2117, 2118, 6, GumpButtonType.Reply, 0); this.AddButton(71, 179, 2117, 2118, 7, GumpButtonType.Reply, 0); this.AddButton(71, 199, 2117, 2118, 8, GumpButtonType.Reply, 0); this.AddButton(71, 219, 2117, 2118, 9, GumpButtonType.Reply, 0); this.AddButton(71, 239, 2117, 2118, 10, GumpButtonType.Reply, 0); this.AddButton(71, 259, 2117, 2118, 11, GumpButtonType.Reply, 0); this.AddButton(71, 279, 2117, 2118, 12, GumpButtonType.Reply, 0); this.AddButton(71, 299, 2117, 2118, 13, GumpButtonType.Reply, 0); this.AddButton(71, 319, 2117, 2118, 14, GumpButtonType.Reply, 0); this.AddButton(71, 339, 2117, 2118, 15, GumpButtonType.Reply, 0); this.AddButton(71, 358, 2117, 2118, 16, GumpButtonType.Reply, 0); this.AddButton(141, 390, 4014, 4015, 17, GumpButtonType.Reply, 0); }
public MagePickGump( SkillBall ball ) : base(0,0) { m_SkillBall = ball; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddBackground(35, 39, 210, 257, 9200); this.AddBackground(49, 48, 183, 237, 9350); this.AddLabel(99, 56, 0, @"Duelist"); this.AddLabel(99, 76, 0, @"Heal-Mage"); this.AddLabel(99, 96, 0, @"Scribe-Mage"); this.AddLabel(99, 116, 0, @"Scribe-Alchy-Mage"); this.AddLabel(99, 136, 0, @"Alchy-Stun-Mage"); this.AddLabel(99, 156, 0, @"Hiding-Mage"); this.AddLabel(99, 176, 0, @"Stealth-Mage"); this.AddLabel(99, 196, 0, @"Poisonner"); this.AddLabel(99, 216, 0, @"Parry Mage"); this.AddButton(71, 59, 2117, 2118, 1, GumpButtonType.Reply, 0); this.AddButton(71, 79, 2117, 2118, 2, GumpButtonType.Reply, 0); this.AddButton(71, 99, 2117, 2118, 3, GumpButtonType.Reply, 0); this.AddButton(71, 119, 2117, 2118, 4, GumpButtonType.Reply, 0); this.AddButton(71, 139, 2117, 2118, 5, GumpButtonType.Reply, 0); this.AddButton(71, 159, 2117, 2118, 6, GumpButtonType.Reply, 0); this.AddButton(71, 179, 2117, 2118, 7, GumpButtonType.Reply, 0); this.AddButton(71, 199, 2117, 2118, 8, GumpButtonType.Reply, 0); this.AddButton(71, 219, 2117, 2118, 9, GumpButtonType.Reply, 0); this.AddButton(124, 249, 4014, 4015, 10, GumpButtonType.Reply, 0); }
public SkillPickGump( SkillBall ball ) : base( 0, 0 ) { this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; m_SkillBall = ball; this.AddPage(0); this.AddBackground(39, 33, 560, 500, 9200); this.AddLabel(67, 41, 1153, @"Please select your 7 skills"); this.AddButton(80, 500, 2071, 2072, (int)Buttons.Close, GumpButtonType.Reply, 0); this.AddBackground(52, 60, 530, 430, 9350); this.AddPage(1); this.AddButton(500, 500, 2311, 2312, (int)Buttons.FinishButton, GumpButtonType.Reply, 0); this.AddCheck(55, 65, 210, 211, false, 40); this.AddCheck(55, 90, 210, 211, false, 2); this.AddCheck(55, 115, 210, 211, false, 39); this.AddCheck(55, 140, 210, 211, false, 36); this.AddCheck(55, 165, 210, 211, false, 5); this.AddCheck(55, 190, 210, 211, false, 37); this.AddCheck(55, 215, 210, 211, false, 38); this.AddCheck(55, 240, 210, 211, false, 6); this.AddCheck(55, 265, 210, 211, false, 41); this.AddCheck(55, 290, 210, 211, false, 9); this.AddCheck(55, 315, 210, 211, false, 13); this.AddCheck(55, 340, 210, 211, false, 34); this.AddCheck(55, 365, 210, 211, false, 33); this.AddCheck(55, 390, 210, 211, false, 15); this.AddCheck(55, 415, 210, 211, false, 14); this.AddCheck(55, 440, 210, 211, false, 56); this.AddLabel(80, 65, 0, @"Tactics"); //40 this.AddLabel(80, 90, 0, @"Anatomy"); //2 this.AddLabel(80, 115, 0, @"Swordsmanship"); //39 this.AddLabel(80, 140, 0, @"Fencing"); //36 this.AddLabel(80, 165, 0, @"Archery"); //5 this.AddLabel(80, 190, 0, @"Macefighting"); //37 this.AddLabel(80, 215, 0, @"Parry"); //38 this.AddLabel(80, 240, 0, @"Arms Lore"); //6 this.AddLabel(80, 265, 0, @"Wrestling"); //41 this.AddLabel(80, 290, 0, @"Blacksmithing"); //9 this.AddLabel(80, 315, 0, @"Carpentry"); //13 this.AddLabel(80, 340, 0, @"Tinkering"); //34 this.AddLabel(80, 365, 0, @"Tailoring"); //33 this.AddLabel(80, 390, 0, @"Fishing"); //15 this.AddLabel(80, 415, 0, @"Cooking"); //14 this.AddLabel(80, 440, 0, @"Fletching"); //56 // ******************************************************** this.AddCheck(240, 65, 210, 211, false, 23); this.AddCheck(240, 90, 210, 211, false, 20); this.AddCheck(240, 115, 210, 211, false, 1); this.AddCheck(240, 140, 210, 211, false, 44); this.AddCheck(240, 165, 210, 211, false, 21); this.AddCheck(240, 190, 210, 211, false, 48); this.AddCheck(240, 215, 210, 211, false, 50); this.AddCheck(240, 240, 210, 211, false, 22); this.AddCheck(240, 265, 210, 211, false, 55); this.AddCheck(240, 290, 210, 211, false, 32); this.AddCheck(240, 315, 210, 211, false, 29); this.AddCheck(240, 340, 210, 211, false, 31); this.AddCheck(240, 365, 210, 211, false, 19); this.AddCheck(240, 390, 210, 211, false, 43); this.AddCheck(240, 415, 210, 211, false, 27); this.AddCheck(240, 440, 210, 211, false, 45); this.AddLabel(265, 65, 0, @"Mining"); //23 this.AddLabel(265, 90, 0, @"Lumberjacking"); //20 this.AddLabel(265, 115, 0, @"Alchemy"); //1 this.AddLabel(265, 140, 0, @"Inscription"); //44 this.AddLabel(265, 165, 0, @"Magery"); //21 this.AddLabel(265, 190, 0, @"Spirit Speak"); //48 this.AddLabel(265, 215, 0, @"Evaluating Intelligence"); //50 this.AddLabel(265, 240, 0, @"Meditation"); //22 this.AddLabel(265, 265, 0, @"Hiding"); //55 this.AddLabel(265, 290, 0, @"Stealth"); //32 this.AddLabel(265, 315, 0, @"Snooping"); //29 this.AddLabel(265, 340, 0, @"Stealing"); //31 this.AddLabel(265, 365, 0, @"Lockpicking"); //19 this.AddLabel(265, 390, 0, @"Detecting Hidden"); //43 this.AddLabel(265, 415, 0, @"Remove Trap"); //27 this.AddLabel(265, 440, 0, @"Tracking"); //45 //********************************************************** this.AddCheck(425, 65, 210, 211, false, 46); this.AddCheck(425, 90, 210, 211, false, 4); this.AddCheck(425, 115, 210, 211, false, 3); this.AddCheck(425, 140, 210, 211, false, 11); this.AddCheck(425, 165, 210, 211, false, 24); this.AddCheck(425, 190, 210, 211, false, 47); this.AddCheck(425, 215, 210, 211, false, 45); this.AddCheck(425, 240, 210, 211, false, 52); this.AddCheck(425, 265, 210, 211, false, 53); this.AddCheck(425, 290, 210, 211, false, 51); this.AddCheck(425, 315, 210, 211, false, 7); this.AddCheck(425, 340, 210, 211, false, 17); this.AddCheck(425, 365, 210, 211, false, 18); this.AddCheck(425, 390, 210, 211, false, 28); this.AddCheck(425, 415, 210, 211, false, 35); this.AddCheck(425, 440, 210, 211, false, 42); this.AddLabel(450, 65, 0, @"Poisoning"); //46 this.AddLabel(450, 90, 0, @"Animal Taming"); //4 this.AddLabel(450, 115, 0, @"Animal Lore"); //3 this.AddLabel(450, 140, 0, @"Camping"); //11 this.AddLabel(450, 165, 0, @"Musicianship"); //24 this.AddLabel(450, 190, 0, @"Provocation"); //47 this.AddLabel(450, 215, 0, @"Peacemaking"); //45 this.AddLabel(450, 240, 0, @"Item Identification"); //52 this.AddLabel(450, 265, 0, @"Taste Identification"); //53 this.AddLabel(450, 290, 0, @"Foresic Evaluation"); //51 this.AddLabel(450, 315, 0, @"Begging"); //7 this.AddLabel(450, 340, 0, @"Healing"); //17 this.AddLabel(450, 365, 0, @"Herding"); //18 this.AddLabel(450, 390, 0, @"Resisting Spells"); //28 this.AddLabel(450, 415, 0, @"Veterinary"); //35 this.AddLabel(450, 440, 0, @"Cartography"); //42 //********************************************************** this.AddButton(244, 498, 4008, 4009, 2, GumpButtonType.Reply, 0); this.AddLabel(281, 499, 0, @"Pre-Made Templates"); }
public TankPickGump( SkillBall ball ) : base( 0,0 ) { m_SkillBall = ball; this.Closable=true; this.Disposable=true; this.Dragable=true; this.Resizable=false; this.AddPage(0); this.AddBackground(35, 39, 181, 156, 9200); this.AddBackground(49, 48, 152, 132, 9350); this.AddLabel(99, 57, 0, @"Sword Mage"); this.AddLabel(99, 77, 0, @"Macer Mage"); this.AddLabel(99, 97, 0, @"Fencer Mage"); this.AddLabel(99, 117, 0, @"Archer Mage"); this.AddButton(71, 59, 2117, 2118, 1, GumpButtonType.Reply, 0); this.AddButton(71, 79, 2117, 2118, 2, GumpButtonType.Reply, 0); this.AddButton(71, 99, 2117, 2118, 3, GumpButtonType.Reply, 0); this.AddButton(71, 119, 2117, 2118, 4, GumpButtonType.Reply, 0); this.AddButton(107, 146, 4014, 4015, 5, GumpButtonType.Reply, 0); }
protected void AddBall(SkillBall ball) { DropItem(ball); ball.Location = new Point3D(20 * Items.Count, 100, 0); }
public static void PurgeList() { if ( m_Convert != null && m_Convert.Count > 0 ) { for ( int i = 0; i < m_Convert.Count; ++i ) { SkillBallAOS ball = m_Convert[i]; SkillBall copy = null; copy = new SkillBall( ball.SkillBonus ); copy.Flags = ball.Flags; copy.ExpireDate = ball.ExpireDate; copy.OwnerPlayer = ball.OwnerPlayer; copy.OwnerAccount = ball.OwnerAccount; copy.MoveToWorld( ball.Location, ball.Map ); copy.Parent = ball.Parent; } } }