public ConfirmRemovalGump(Soulstone stone) : base(50, 50) { m_Stone = stone; AddBackground(0, 0, 520, 440, 0x13BE); AddImageTiled(10, 10, 500, 20, 0xA40); AddImageTiled(10, 40, 500, 360, 0xA40); AddImageTiled(10, 410, 500, 20, 0xA40); AddAlphaRegion(10, 10, 500, 420); AddHtmlLocalized(10, 12, 500, 20, 1070725, 0x7FFF, false, false); // <CENTER>Confirm Soulstone Skill Removal</CENTER> /* WARNING!<BR><BR> * * You are about to permanently remove all skill points stored in this Soulstone. * You WILL NOT absorb these skill points. They will be DELETED.<BR><BR> * * Are you sure you wish to do this? If not, press the Cancel button. */ AddHtmlLocalized(10, 42, 500, 110, 1070724, 0x7FFF, false, true); AddButton(10, 380, 0xFA5, 0xFA6, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 382, 450, 20, 1052072, 0x7FFF, false, false); // Continue AddButton(10, 410, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 412, 450, 20, 1060051, 0x7FFF, false, false); // CANCEL }
public SelectSkillGump(Soulstone stone, Mobile from) : base(50, 50) { m_Stone = stone; AddPage(0); AddBackground(0, 0, 520, 440, 0x13BE); AddImageTiled(10, 10, 500, 20, 0xA40); AddImageTiled(10, 40, 500, 360, 0xA40); AddImageTiled(10, 410, 500, 20, 0xA40); AddAlphaRegion(10, 10, 500, 420); AddHtmlLocalized(10, 12, 500, 20, 1061087, 0x7FFF, false, false); // Which skill do you wish to transfer to the Soulstone? AddButton(10, 410, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 412, 450, 20, 1060051, 0x7FFF, false, false); // CANCEL for (int i = 0, n = 0; i < from.Skills.Length; i++) { Skill skill = from.Skills[i]; if (skill.Base > 0.0) { int p = n % 30; if (p == 0) { int page = n / 30; if (page > 0) { AddButton(260, 380, 0xFA5, 0xFA6, 0, GumpButtonType.Page, page + 1); AddHtmlLocalized(305, 382, 200, 20, 1011066, 0x7FFF, false, false); // Next page } AddPage(page + 1); if (page > 0) { AddButton(10, 380, 0xFAE, 0xFAF, 0, GumpButtonType.Page, page); AddHtmlLocalized(55, 382, 200, 20, 1011067, 0x7FFF, false, false); // Previous page } } int x = (p % 2 == 0) ? 10 : 260; int y = (p / 2) * 20 + 40; AddButton(x, y, 0xFA5, 0xFA6, i + 1, GumpButtonType.Reply, 0); AddHtmlLocalized(x + 45, y + 2, 200, 20, 1044060 + i, 0x7FFF, false, false); n++; } } }
public ConfirmTransferGump(Soulstone stone, Mobile from) : base(50, 50) { m_Stone = stone; AddBackground(0, 0, 520, 440, 0x13BE); AddImageTiled(10, 10, 500, 20, 0xA40); AddImageTiled(10, 40, 500, 360, 0xA40); AddImageTiled(10, 410, 500, 20, 0xA40); AddAlphaRegion(10, 10, 500, 420); AddHtmlLocalized(10, 12, 500, 20, 1070709, 0x7FFF, false, false); // <CENTER>Confirm Soulstone Transfer</CENTER> /* <CENTER>Soulstone</CENTER><BR> * You are using a Soulstone. This powerful artifact allows you to remove skill points * from your character and store them in the stone for later retrieval. In order to use * the stone, you must make sure your Skill Lock for the indicated skill is pointed downward. * Click the "Skills" button on your Paperdoll to access the Skill List, and double-check * your skill lock.<BR><BR> * * Once you activate the stone, all skill points in the indicated skill will be removed from * your character. These skill points can later be retrieved. IMPORTANT: When retrieving * skill points from a Soulstone, the Soulstone WILL REPLACE any existing skill points * already on your character!<BR><BR> * * This is an Account Bound Soulstone. Skill pointsstored inside can be retrieved by any * character on the same account as the character who placed them into the stone. */ AddHtmlLocalized(10, 42, 500, 110, 1061067, 0x7FFF, false, true); AddHtmlLocalized(10, 200, 390, 20, 1070718, 0x7FFF, false, false); // Skill Stored: AddHtmlLocalized(210, 200, 390, 20, 1044060 + (int)stone.Skill, 0x7FFF, false, false); Skill fromSkill = from.Skills[stone.Skill]; AddHtmlLocalized(10, 220, 390, 20, 1062298, 0x7FFF, false, false); // Current Value: AddLabel(210, 220, 0x481, fromSkill.Base.ToString("0.0")); AddHtmlLocalized(10, 240, 390, 20, 1062299, 0x7FFF, false, false); // Current Cap: AddLabel(210, 240, 0x481, fromSkill.Cap.ToString("0.0")); AddHtmlLocalized(10, 260, 390, 20, 1062300, 0x7FFF, false, false); // New Value: AddLabel(210, 260, 0x481, stone.SkillValue.ToString("0.0")); AddButton(10, 360, 0xFA5, 0xFA6, 2, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 362, 450, 20, 1070719, 0x7FFF, false, false); // Activate the stone. I am ready to retrieve the skill points from it. AddButton(10, 380, 0xFA5, 0xFA6, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 382, 450, 20, 1070723, 0x7FFF, false, false); // Remove all skill points from this stone and DO NOT absorb them. AddButton(10, 410, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 412, 450, 20, 1060051, 0x7FFF, false, false); // CANCEL }
public ErrorGump(Soulstone stone, int title, int message) : base(50, 50) { m_Stone = stone; AddBackground(0, 0, 520, 440, 0x13BE); AddImageTiled(10, 10, 500, 20, 0xA40); AddImageTiled(10, 40, 500, 360, 0xA40); AddImageTiled(10, 410, 500, 20, 0xA40); AddAlphaRegion(10, 10, 500, 420); AddHtmlLocalized(10, 12, 500, 20, title, 0x7FFF, false, false); AddHtmlLocalized(10, 42, 500, 110, message, 0x7FFF, false, true); AddButton(10, 380, 0xFA5, 0xFA6, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 382, 450, 20, 1052072, 0x7FFF, false, false); // Continue AddButton(10, 410, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0); AddHtmlLocalized(45, 412, 450, 20, 1060051, 0x7FFF, false, false); // CANCEL }