using Server.Network; using Server.Spells; using Server.Spells.Seventh; namespace Server.Gumps { public class PolymorphEntry { public static readonly PolymorphEntry Chicken = new PolymorphEntry(8401, 0xD0, 1015236, 15, 10); public static readonly PolymorphEntry Dog = new PolymorphEntry(8405, 0xD9, 1015237, 17, 10); public static readonly PolymorphEntry Wolf = new PolymorphEntry(8426, 0xE1, 1015238, 18, 10); public static readonly PolymorphEntry Panther = new PolymorphEntry(8473, 0xD6, 1015239, 20, 14); public static readonly PolymorphEntry Gorilla = new PolymorphEntry(8437, 0x1D, 1015240, 23, 10); public static readonly PolymorphEntry BlackBear = new PolymorphEntry(8399, 0xD3, 1015241, 22, 10); public static readonly PolymorphEntry GrizzlyBear = new PolymorphEntry(8411, 0xD4, 1015242, 22, 12); public static readonly PolymorphEntry PolarBear = new PolymorphEntry(8417, 0xD5, 1015243, 26, 10); public static readonly PolymorphEntry HumanMale = new PolymorphEntry(8397, 0x190, 1015244, 29, 8); public static readonly PolymorphEntry HumanFemale = new PolymorphEntry(8398, 0x191, 1015254, 29, 10); public static readonly PolymorphEntry Slime = new PolymorphEntry(8424, 0x33, 1015246, 5, 10); public static readonly PolymorphEntry Orc = new PolymorphEntry(8416, 0x11, 1015247, 29, 10); public static readonly PolymorphEntry LizardMan = new PolymorphEntry(8414, 0x21, 1015248, 26, 10); public static readonly PolymorphEntry Gargoyle = new PolymorphEntry(8409, 0x04, 1015249, 22, 10); public static readonly PolymorphEntry Ogre = new PolymorphEntry(8415, 0x01, 1015250, 24, 9); public static readonly PolymorphEntry Troll = new PolymorphEntry(8425, 0x36, 1015251, 25, 9); public static readonly PolymorphEntry Ettin = new PolymorphEntry(8408, 0x02, 1015252, 25, 8); public static readonly PolymorphEntry Daemon = new PolymorphEntry(8403, 0x09, 1015253, 25, 8); private readonly int m_Art; private readonly int m_Body; private readonly int m_Num; private readonly int m_X; private readonly int m_Y; private PolymorphEntry(int Art, int Body, int LocNum, int X, int Y) { m_Art = Art; m_Body = Body; m_Num = LocNum; m_X = X; m_Y = Y; } public int ArtID => m_Art; public int BodyID => m_Body; public int LocNumber => m_Num; public int X => m_X; public int Y => m_Y; } public class PolymorphGump : Gump { private static readonly PolymorphEntry[] m_Entries = { PolymorphEntry.Chicken, PolymorphEntry.Dog, PolymorphEntry.Wolf, PolymorphEntry.Panther, PolymorphEntry.Gorilla, PolymorphEntry.BlackBear, PolymorphEntry.GrizzlyBear, PolymorphEntry.PolarBear, PolymorphEntry.HumanMale, PolymorphEntry.HumanFemale, PolymorphEntry.Slime, PolymorphEntry.Orc, PolymorphEntry.LizardMan, PolymorphEntry.Gargoyle, PolymorphEntry.Ogre, PolymorphEntry.Troll, PolymorphEntry.Ettin, PolymorphEntry.Daemon }; private readonly Mobile m_Caster; private readonly Item m_Scroll; public PolymorphGump(Mobile caster, Item scroll) : base(0, 0) { m_Caster = caster; m_Scroll = scroll; AddPage(0); AddBackground(0, 0, 520, 404, 0x13BE); AddImageTiled(10, 10, 500, 20, 0xA40); AddImageTiled(10, 40, 500, 324, 0xA40); AddImageTiled(10, 374, 500, 20, 0xA40); AddAlphaRegion(10, 10, 500, 384); AddHtmlLocalized(14, 12, 500, 20, 1015234, 0x7FFF, false, false); //