public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                if (dd.StcT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m delStatic", CommandSystem.Prefix));
                    }
                    else
                    {
                        CommandSystem.Handle(pm, String.Format("{0}delStatic", CommandSystem.Prefix));
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }
                else
                {
                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }
            }
            }
        }
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                dd.ResetUOE(pm, dd);

                break;
            }
            }
        }
Exemple #3
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                dd.SendSYSBCK(pm, dd);

                break;
            }
            }
        }
Exemple #4
0
        public SubUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Sub;
            this.Y = dd.y_Sub;

            this.AddPage(0);

            this.AddBackground(0, 0, 101, 48, dd.s_Style);

            if (dd.StcT == false)
            {
                this.AddLabel(27, 2, dd.c_Font, @"Static Tile");
            }
            else
            {
                this.AddLabel(27, 2, 1153, @"Static Tile");
            }

            this.AddButton(5, 6, 1209, 1210, 1, GumpButtonType.Reply, 0);

            if (dd.LndT == false)
            {
                this.AddLabel(28, 23, dd.c_Font, @"Land Tile");
            }
            else
            {
                this.AddLabel(28, 23, 1153, @"Land Tile");
            }

            this.AddButton(5, 27, 1209, 1210, 2, GumpButtonType.Reply, 0);
        }
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                dd.CntBG++;

                dd.ResendPick(pm, dd);

                break;
            }

            case 2:
            {
                dd.CntBG--;

                dd.ResendPick(pm, dd);

                break;
            }

            case 3:
            {
                pm.SendMessage(pm.Name + ", New Style Loaded!");

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }
            }
        }
Exemple #6
0
        public CirUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = true;
            this.Resizable  = false;

            this.X = dd.x_Cir;
            this.Y = dd.y_Cir;

            this.AddPage(0);

            this.AddBackground(0, 0, 129, 34, dd.s_Style);

            if (dd.Cir_T == false)
            {
                this.AddLabel(27, 7, dd.c_Font, @"Set Cir");
            }
            else
            {
                this.AddLabel(27, 7, 1153, @"Set Cir");
            }

            if (dd.Cir_T == false)
            {
                this.AddButton(7, 10, 1209, 1210, 1, GumpButtonType.Reply, 0);
            }
            else
            {
                this.AddButton(7, 10, 1210, 1209, 1, GumpButtonType.Reply, 0);
            }

            this.AddTextEntry(80, 7, 40, 20, dd.Hue_G, 1, @"" + dd.Cir_V);
        }
        public MultiUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Multi;
            this.Y = dd.y_Multi;

            this.AddPage(0);

            this.AddBackground(0, 0, 100, 34, dd.s_Style);

            if (dd.MultiT == false)
            {
                this.AddLabel(24, 6, dd.c_Font, @"Multi CMD");
            }
            else
            {
                this.AddLabel(24, 6, 1153, @"Multi CMD");
            }

            if (dd.MultiT == false)
            {
                this.AddButton(5, 9, 1209, 1210, 1, GumpButtonType.Reply, 0);
            }
            else
            {
                this.AddButton(5, 9, 1210, 1209, 1, GumpButtonType.Reply, 0);
            }
        }
        public InfoUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Info;
            this.Y = dd.y_Info;

            this.AddPage(0);

            this.AddBackground(0, 0, 282, 70, dd.s_Style);

            this.AddLabel(7, 5, dd.Hue_T, @"Tile Info");

            this.AddLabel(20, 25, dd.c_Font, @"Get");
            this.AddButton(25, 47, 1209, 1210, 1, GumpButtonType.Reply, 0);

            this.AddLabel(60, 5, dd.c_Font, @"Name : " + dd.TempN);
            this.AddLabel(210, 5, dd.c_Font, @"ID : " + dd.TempID);
            this.AddLabel(60, 25, dd.c_Font, @"Loc : X : " + dd.TempX);
            this.AddLabel(160, 25, dd.c_Font, @"Y : " + dd.TempY);
            this.AddLabel(225, 25, dd.c_Font, @"Z : " + dd.TempZ);

            if (dd.StcT == true)
            {
                this.AddLabel(70, 45, dd.c_Font, @"Hue : " + dd.TempH);
            }

            this.AddButton(216, 45, 240, 239, 2, GumpButtonType.Reply, 0);
        }
        public PosUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Pos;
            this.Y = dd.y_Pos;

            this.AddPage(0);

            this.AddBackground(0, 0, 100, 129, dd.s_Style);

            this.AddLabel(22, 7, dd.Hue_T, @"POS Tile");

            this.AddLabel(20, 43, dd.c_Font, @"W");
            this.AddButton(4, 32, 1209, 1210, 1, GumpButtonType.Reply, 0);

            this.AddLabel(70, 43, dd.c_Font, @"N");
            this.AddButton(81, 32, 1209, 1210, 2, GumpButtonType.Reply, 0);

            this.AddLabel(20, 93, dd.c_Font, @"S");
            this.AddButton(4, 110, 1209, 1210, 3, GumpButtonType.Reply, 0);

            this.AddLabel(70, 93, dd.c_Font, @"E");
            this.AddButton(81, 110, 1209, 1210, 4, GumpButtonType.Reply, 0);

            this.AddTextEntry(45, 70, 30, 20, dd.Hue_G, 1, @"" + dd.M_Val);
        }
Exemple #10
0
        public void SYSGump(Mobile m, Item i)
        {
            PlayerMobile pm = m as PlayerMobile;

            UOETool dd = i as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            dd.SendSYSBCK(pm, dd);
        }
Exemple #11
0
        public GumpSelUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Sel;
            this.Y = dd.y_Sel;

            AddPage(0);

            AddBackground(0, 0, 278, 51, dd.s_Style);

            AddLabel(7, 5, dd.Hue_T, @"GUMP");
            AddLabel(12, 25, dd.Hue_T, @"POS");

            AddLabel(65, 5, dd.c_Font, @"" + dd.GmpN);
            AddButton(70, 25, 5538, 5537, 1, GumpButtonType.Reply, 0);             //Left
            AddButton(110, 25, 5541, 5542, 2, GumpButtonType.Reply, 0);            //Right

            AddLabel(150, 5, dd.c_Font, @"X");
            AddTextEntry(175, 5, 42, 20, dd.Hue_G, 1, @"" + dd.GmpX);
            AddLabel(150, 25, dd.c_Font, @"Y");
            AddTextEntry(175, 25, 42, 20, dd.Hue_G, 2, @"" + dd.GmpY);

            AddLabel(235, 5, dd.c_Font, @"Set");
            AddButton(239, 26, 2117, 2118, 3, GumpButtonType.Reply, 0);
        }
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                if (dd.MultiT == false)
                {
                    dd.MultiT = true;
                }
                else
                {
                    dd.MultiT = false;
                }

                if (dd.MultiT == true)
                {
                    dd.Cir_T = false;
                }

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }
            }
        }
Exemple #13
0
        public SetLocUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = true;
            this.Resizable  = false;

            this.X = dd.x_SetLoc;
            this.Y = dd.y_SetLoc;

            this.AddPage(0);

            this.AddBackground(0, 0, 220, 34, dd.s_Style);

            this.AddLabel(25, 7, dd.c_Font, @"Set");
            this.AddLabel(80, 8, dd.c_Font, @"X");
            this.AddLabel(145, 8, dd.c_Font, @"Y");
            this.AddLabel(200, 8, dd.c_Font, @"Z");

            this.AddTextEntry(50, 7, 40, 20, dd.Hue_G, 1, @"" + dd.StcX);
            this.AddTextEntry(100, 7, 40, 20, dd.Hue_G, 2, @"" + dd.StcY);
            this.AddTextEntry(160, 7, 40, 20, dd.Hue_G, 3, @"" + dd.StcZ);

            this.AddButton(5, 10, 1209, 1210, 1, GumpButtonType.Reply, 0);
        }
        public MainUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Main;
            this.Y = dd.y_Main;

            this.AddPage(0);

            this.AddImage(1, 0, 100);
            this.AddLabel(41, 18, dd.Hue_T, @"UO Editor");
            this.AddLabel(24, 67, dd.c_Font, @"Ver 2.0 UL v97");

            if (dd.in_Prog == false)
            {
                this.AddButton(39, 42, 247, 248, 1, GumpButtonType.Reply, 0);
            }
            else
            {
                this.AddButton(39, 42, 242, 241, 1, GumpButtonType.Reply, 0);
            }
        }
        public PickUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Pick;
            this.Y = dd.y_Pick;

            this.AddPage(0);

            this.AddBackground(0, 0, 100, 100, dd.s_Style);

            this.AddLabel(29, 15, dd.Hue_G, @"Style " + dd.CntBG);

            this.AddButton(29, 39, 1209, 1210, 1, GumpButtonType.Reply, 0);
            this.AddButton(53, 39, 1209, 1210, 2, GumpButtonType.Reply, 0);

            this.AddButton(19, 61, 247, 248, 3, GumpButtonType.Reply, 0);
        }
Exemple #16
0
        public AltUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Alt;
            this.Y = dd.y_Alt;

            this.AddPage(0);

            this.AddBackground(0, 0, 46, 165, dd.s_Style);

            this.AddLabel(15, 10, dd.c_Font, @"Z+");
            this.AddButton(15, 38, 250, 251, 1, GumpButtonType.Reply, 0);
            this.AddTextEntry(10, 74, 25, 20, dd.Hue_G, 1, @"" + dd.A_Val);
            this.AddButton(15, 105, 252, 253, 2, GumpButtonType.Reply, 0);
            this.AddLabel(15, 136, dd.c_Font, @"Z-");
        }
        public DelUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Del;
            this.Y = dd.y_Del;

            this.AddPage(0);

            this.AddBackground(0, 0, 129, 29, dd.s_Style);

            this.AddLabel(28, 4, dd.c_Font, @"Delete Static");
            this.AddButton(7, 7, 1209, 1210, 1, GumpButtonType.Reply, 0);
        }
Exemple #18
0
        protected override void OnTarget(Mobile m, object targeted)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}", check);

                return;
            }

            UOETool dd = check as UOETool;

            if (targeted is LandTarget)
            {
                if (dd.LndT == true)
                {
                    dd.TempN  = ((LandTarget)targeted).Name;
                    dd.TempID = ((LandTarget)targeted).TileID;
                    dd.TempX  = ((LandTarget)targeted).X;
                    dd.TempY  = ((LandTarget)targeted).Y;
                    dd.TempZ  = ((LandTarget)targeted).Z;

                    SYSGump(pm, dd);
                    return;
                }
                else
                {
                    SYSGump(pm, dd);
                }
                return;
            }

            if (targeted is StaticTarget)
            {
                if (dd.StcT == true)
                {
                    dd.TempN  = ((StaticTarget)targeted).Name;
                    dd.TempID = ((StaticTarget)targeted).ItemID;
                    dd.TempX  = ((StaticTarget)targeted).X;
                    dd.TempY  = ((StaticTarget)targeted).Y;
                    dd.TempZ  = ((StaticTarget)targeted).Z;
                    //dd.TempH = ( (StaticTarget)targeted ).Hue;

                    SYSGump(pm, dd);
                    return;
                }
                else
                {
                    SYSGump(pm, dd);
                }
                return;
            }

            pm.SendMessage(pm.Name + ", Thats not a land or static tile!");

            SYSGump(pm, dd);

            return;
        }
Exemple #19
0
        public SettingUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Setting;
            this.Y = dd.y_Setting;

            this.AddPage(0);

            this.AddBackground(0, 0, 100, 258, dd.s_Style);

            this.AddLabel(22, 5, dd.Hue_T, @"Settings");

            this.AddLabel(28, 32, dd.c_Font, @"Style BG");
            this.AddButton(9, 35, 1209, 1210, 1, GumpButtonType.Reply, 0);

            this.AddLabel(3, 55, dd.c_Font, @"Font Hue");
            this.AddTextEntry(58, 54, 39, 20, dd.Hue_G, 1, @"" + dd.Hue_T);
            this.AddLabel(3, 75, dd.c_Font, @"Font Hue");
            this.AddTextEntry(58, 74, 39, 20, dd.Hue_G, 2, @"" + dd.c_Font);
            this.AddLabel(3, 95, dd.c_Font, @"Font Hue");
            this.AddTextEntry(58, 94, 39, 20, dd.Hue_G, 3, @"" + dd.Hue_G);

            if (dd.SndOn == true)
            {
                this.AddButton(9, 125, 1210, 1209, 2, GumpButtonType.Reply, 0);
                this.AddLabel(28, 122, 1153, @"Sound On");
            }
            else
            {
                this.AddButton(9, 125, 1209, 1210, 2, GumpButtonType.Reply, 0);
                this.AddLabel(28, 122, dd.c_Font, @"Sound Off");
            }

            this.AddButton(18, 149, 238, 240, 3, GumpButtonType.Reply, 0);
            this.AddButton(18, 180, 2033, 2032, 4, GumpButtonType.Reply, 0);

            this.AddButton(3, 234, 1209, 1210, 5, GumpButtonType.Reply, 0);
            this.AddLabel(3, 209, dd.c_Font, @"Version : 2.9.7");
            this.AddImage(21, 236, 2514);
        }
Exemple #20
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.Hue_T = si;
            }

            TextRelay entry2 = info.GetTextEntry(2);
            string    text2  = (entry2 == null ? "" : entry2.Text.Trim());
            bool      r2     = Int32.TryParse(text2, out si);

            if (r2 != false)
            {
                dd.c_Font = si;
            }

            TextRelay entry3 = info.GetTextEntry(3);
            string    text3  = (entry3 == null ? "" : entry3.Text.Trim());
            bool      r3     = Int32.TryParse(text3, out si);

            if (r3 != false)
            {
                dd.Hue_G = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                if (pm.HasGump(typeof(PickUOE)))
                {
                    pm.CloseGump(typeof(PickUOE));
                }
                pm.SendGump(new PickUOE(pm, dd.p_Page));

                if (pm.HasGump(typeof(SettingUOE)))
                {
                    pm.CloseGump(typeof(SettingUOE));
                }
                pm.SendGump(new SettingUOE(pm, dd.p_Page));

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }

            case 2:
            {
                if (dd.SndOn == false)
                {
                    dd.SndOn = true;
                }
                else
                {
                    dd.SndOn = false;
                }

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }

            case 3:
            {
                bool HueCK = dd.HueCKUOE(pm, dd);

                if (HueCK == false)
                {
                    pm.SendMessage(pm.Name + ", You can only enter 1-3000 for the value!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                pm.SendMessage(pm.Name + ", Font Color Loaded!");

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }

            case 4:
            {
                pm.SendGump(new HelpUOE(pm, dd.p_Page));
                pm.SendGump(new SettingUOE(pm, dd.p_Page));

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }

            case 5:
            {
                string UpdateBR = "http://www.golddraco13.com/UO/UOEUD.swf";

                pm.LaunchBrowser(UpdateBR);

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }
            }
        }
Exemple #21
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.StcX = si;
            }

            TextRelay entry2 = info.GetTextEntry(2);
            string    text2  = (entry2 == null ? "" : entry2.Text.Trim());
            bool      r2     = Int32.TryParse(text2, out si);

            if (r2 != false)
            {
                dd.StcY = si;
            }

            TextRelay entry3 = info.GetTextEntry(3);
            string    text3  = (entry3 == null ? "" : entry3.Text.Trim());
            bool      r3     = Int32.TryParse(text3, out si);

            if (r3 != false)
            {
                dd.StcZ = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                //ToDo del static then add static to new loc?
                pm.SendMessage(pm.Name + ", Not in yet, Coming Soon!");

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }
            }
        }
Exemple #22
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.Cir_V = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                bool CirCK = dd.CirCKUOE(pm, dd);

                if (CirCK == false)
                {
                    pm.SendMessage(pm.Name + ", You can only enter 1-10 for the value!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                if (dd.Cir_T == false)
                {
                    dd.Cir_T = true;
                }
                else
                {
                    dd.Cir_T = false;
                }

                if (dd.Cir_T == true)
                {
                    dd.MultiT = false;
                }

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }
            }
        }
Exemple #23
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.A_Val = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                bool MapAlt = dd.MapAltUOE(pm, dd);

                if (MapAlt == false)
                {
                    pm.SendMessage(pm.Name + ", You entered improper value in the Z field!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                if (dd.StcT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m incStaticAlt {1}", CommandSystem.Prefix, dd.A_Val));
                    }
                    else
                    {
                        CommandSystem.Handle(pm, String.Format("{0}incStaticAlt {1}", CommandSystem.Prefix, dd.A_Val));
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }

                if (dd.LndT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m incLandAlt {1}", CommandSystem.Prefix, dd.A_Val));
                    }
                    else
                    {
                        CommandSystem.Handle(pm, String.Format("{0}incLandAlt {1}", CommandSystem.Prefix, dd.A_Val));
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 2:
            {
                bool MapAlt = dd.MapAltUOE(pm, dd);

                if (MapAlt == false)
                {
                    pm.SendMessage(pm.Name + ", You entered improper value in the Z field!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                if (dd.StcT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m incStaticAlt -{1}", CommandSystem.Prefix, dd.A_Val));
                    }
                    else
                    {
                        CommandSystem.Handle(pm, String.Format("{0}incStaticAlt -{1}", CommandSystem.Prefix, dd.A_Val));
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }

                if (dd.LndT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m incLandAlt -{1}", CommandSystem.Prefix, dd.A_Val));
                    }
                    else
                    {
                        CommandSystem.Handle(pm, String.Format("{0}incLandAlt -{1}", CommandSystem.Prefix, dd.A_Val));
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }

                dd.SendSYSBCK(pm, dd);

                break;
            }
            }
        }
Exemple #24
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            if (dd.StcT == true)
            {
                TextRelay entry1 = info.GetTextEntry(1);
                string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
                bool      r1     = Int32.TryParse(text1, out si);
                if (r1 != false)
                {
                    dd.StcID = si;
                }

                if (dd.MultiT == false)
                {
                    TextRelay entry2 = info.GetTextEntry(2);
                    string    text2  = (entry2 == null ? "" : entry2.Text.Trim());
                    bool      r2     = Int32.TryParse(text2, out si);
                    if (r2 != false)
                    {
                        dd.StcX = si;
                    }

                    TextRelay entry3 = info.GetTextEntry(3);
                    string    text3  = (entry3 == null ? "" : entry3.Text.Trim());
                    bool      r3     = Int32.TryParse(text3, out si);
                    if (r3 != false)
                    {
                        dd.StcY = si;
                    }

                    TextRelay entry4 = info.GetTextEntry(4);
                    string    text4  = (entry4 == null ? "" : entry4.Text.Trim());
                    bool      r4     = Int32.TryParse(text4, out si);
                    if (r4 != false)
                    {
                        dd.StcZ = si;
                    }
                }
            }

            if (dd.LndT == true)
            {
                TextRelay entry1 = info.GetTextEntry(1);
                string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
                bool      r1     = Int32.TryParse(text1, out si);
                if (r1 != false)
                {
                    dd.LndID = si;
                }

                if (dd.MultiT == false)
                {
                    TextRelay entry2 = info.GetTextEntry(2);
                    string    text2  = (entry2 == null ? "" : entry2.Text.Trim());
                    bool      r2     = Int32.TryParse(text2, out si);
                    if (r2 != false)
                    {
                        dd.LndX = si;
                    }

                    TextRelay entry3 = info.GetTextEntry(3);
                    string    text3  = (entry3 == null ? "" : entry3.Text.Trim());
                    bool      r3     = Int32.TryParse(text3, out si);
                    if (r3 != false)
                    {
                        dd.LndY = si;
                    }

                    TextRelay entry4 = info.GetTextEntry(4);
                    string    text4  = (entry4 == null ? "" : entry4.Text.Trim());
                    bool      r4     = Int32.TryParse(text4, out si);
                    if (r4 != false)
                    {
                        dd.LndZ = si;
                    }
                }
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                bool MapCheck = dd.MapCKUOE(pm, dd);

                if (MapCheck == false)
                {
                    pm.SendMessage(pm.Name + ", You entered improper values in the XYZ fields!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                bool IDCheck = dd.IDCKUOE(pm, dd);

                if (IDCheck == false)
                {
                    pm.SendMessage(pm.Name + ", You entered improper values in the ID field!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                bool HueCK = dd.HueCKUOE(pm, dd);

                if (HueCK == false)
                {
                    pm.SendMessage(pm.Name + ", You can only enter 1-3000 for the value!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                if (dd.StcT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m addStatic {1}", CommandSystem.Prefix, dd.StcID));
                    }
                    if (dd.StcX == 0 || dd.StcY == 0)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}addStatic {1}", CommandSystem.Prefix, dd.StcID));
                    }
                    else
                    {
                        new UltimaLive.AddStatic(pm.Map.MapID, dd.StcID, dd.StcZ, dd.StcX, dd.StcY, dd.Hue_S).DoOperation();
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }

                if (dd.LndT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m setLandId {1}", CommandSystem.Prefix, dd.LndID));
                    }
                    if (dd.StcX == 0 || dd.StcY == 0)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}setLandId {1}", CommandSystem.Prefix, dd.LndID));
                    }
                    if (IDCheck == true)
                    {
                        new UltimaLive.SetLandID(dd.LndX, dd.LndY, pm.Map.MapID, dd.LndID).DoOperation();
                        new UltimaLive.SetLandAltitude(dd.LndX, dd.LndY, pm.Map.MapID, dd.LndZ).DoOperation();
                    }

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd5);
                    }

                    break;
                }

                dd.SendSYSBCK(pm, dd);

                break;
            }
            }
        }
Exemple #25
0
        public AddUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.X = dd.x_Add;
            this.Y = dd.y_Add;

            this.AddPage(0);

            this.AddBackground(0, 0, 100, 163, dd.s_Style);

            this.AddLabel(14, 5, dd.Hue_T, @"Add Tile");

            this.AddLabel(76, 29, dd.c_Font, @"ID");

            if (dd.StcT == true)
            {
                this.AddTextEntry(9, 28, 58, 20, dd.Hue_G, 1, @"" + dd.StcID);
            }
            if (dd.LndT == true)
            {
                this.AddTextEntry(9, 28, 58, 20, dd.Hue_G, 1, @"" + dd.LndID);
            }

            if (dd.MultiT == false)
            {
                if (dd.StcT == true)
                {
                    this.AddLabel(76, 54, dd.c_Font, @"X");
                    this.AddTextEntry(9, 55, 58, 20, dd.Hue_G, 2, @"" + dd.StcX);
                    this.AddLabel(76, 82, dd.c_Font, @"Y");
                    this.AddTextEntry(9, 82, 58, 20, dd.Hue_G, 3, @"" + dd.StcY);
                    this.AddLabel(76, 108, dd.c_Font, @"Z");
                    this.AddTextEntry(9, 109, 58, 20, dd.Hue_G, 4, @"" + dd.StcZ);
                }

                if (dd.LndT == true)
                {
                    this.AddLabel(76, 54, dd.c_Font, @"X");
                    this.AddTextEntry(9, 55, 58, 20, dd.Hue_G, 2, @"" + dd.LndX);
                    this.AddLabel(76, 82, dd.c_Font, @"Y");
                    this.AddTextEntry(9, 82, 58, 20, dd.Hue_G, 3, @"" + dd.LndY);
                    this.AddLabel(76, 108, dd.c_Font, @"Z");
                    this.AddTextEntry(9, 109, 58, 20, dd.Hue_G, 4, @"" + dd.LndZ);
                }
            }

            this.AddButton(7, 135, 247, 248, 1, GumpButtonType.Reply, 0);
        }
        public ListUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = true;
            this.Resizable  = false;

            this.X = dd.x_List;
            this.Y = dd.y_List;

            this.AddPage(0);

            this.AddBackground(0, 0, 100, 318, dd.s_Style);

            this.AddLabel(34, 6, dd.Hue_T, @"ID List");
            this.AddLabel(6, 30, dd.c_Font, @"1");
            this.AddLabel(6, 55, dd.c_Font, @"2");
            this.AddLabel(6, 81, dd.c_Font, @"3");
            this.AddLabel(6, 106, dd.c_Font, @"4");
            this.AddLabel(6, 131, dd.c_Font, @"5");
            this.AddLabel(6, 157, dd.c_Font, @"6");
            this.AddLabel(6, 182, dd.c_Font, @"7");
            this.AddLabel(6, 207, dd.c_Font, @"8");
            this.AddLabel(6, 233, dd.c_Font, @"9");
            this.AddLabel(6, 258, dd.c_Font, @"0");

            this.AddTextEntry(20, 30, 70, 20, dd.Hue_G, 1, @"" + dd.List1);
            this.AddTextEntry(20, 55, 70, 20, dd.Hue_G, 2, @"" + dd.List2);
            this.AddTextEntry(20, 80, 70, 20, dd.Hue_G, 3, @"" + dd.List3);
            this.AddTextEntry(20, 106, 70, 20, dd.Hue_G, 4, @"" + dd.List4);
            this.AddTextEntry(20, 131, 70, 20, dd.Hue_G, 5, @"" + dd.List5);
            this.AddTextEntry(20, 156, 70, 20, dd.Hue_G, 6, @"" + dd.List6);
            this.AddTextEntry(20, 181, 70, 20, dd.Hue_G, 7, @"" + dd.List7);
            this.AddTextEntry(20, 207, 70, 20, dd.Hue_G, 8, @"" + dd.List8);
            this.AddTextEntry(20, 232, 70, 20, dd.Hue_G, 9, @"" + dd.List9);
            this.AddTextEntry(20, 257, 70, 20, dd.Hue_G, 10, @"" + dd.List0);

            this.AddButton(23, 285, 247, 248, 1, GumpButtonType.Reply, 0);
        }
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.List1 = si;
            }

            TextRelay entry2 = info.GetTextEntry(2);
            string    text2  = (entry2 == null ? "" : entry2.Text.Trim());
            bool      r2     = Int32.TryParse(text2, out si);

            if (r2 != false)
            {
                dd.List2 = si;
            }

            TextRelay entry3 = info.GetTextEntry(3);
            string    text3  = (entry3 == null ? "" : entry3.Text.Trim());
            bool      r3     = Int32.TryParse(text3, out si);

            if (r3 != false)
            {
                dd.List3 = si;
            }

            TextRelay entry4 = info.GetTextEntry(4);
            string    text4  = (entry4 == null ? "" : entry4.Text.Trim());
            bool      r4     = Int32.TryParse(text4, out si);

            if (r4 != false)
            {
                dd.List4 = si;
            }

            TextRelay entry5 = info.GetTextEntry(5);
            string    text5  = (entry5 == null ? "" : entry5.Text.Trim());
            bool      r5     = Int32.TryParse(text5, out si);

            if (r5 != false)
            {
                dd.List5 = si;
            }

            TextRelay entry6 = info.GetTextEntry(6);
            string    text6  = (entry6 == null ? "" : entry6.Text.Trim());
            bool      r6     = Int32.TryParse(text6, out si);

            if (r6 != false)
            {
                dd.List6 = si;
            }

            TextRelay entry7 = info.GetTextEntry(7);
            string    text7  = (entry7 == null ? "" : entry7.Text.Trim());
            bool      r7     = Int32.TryParse(text7, out si);

            if (r7 != false)
            {
                dd.List7 = si;
            }

            TextRelay entry8 = info.GetTextEntry(8);
            string    text8  = (entry8 == null ? "" : entry8.Text.Trim());
            bool      r8     = Int32.TryParse(text8, out si);

            if (r8 != false)
            {
                dd.List8 = si;
            }

            TextRelay entry9 = info.GetTextEntry(9);
            string    text9  = (entry9 == null ? "" : entry9.Text.Trim());
            bool      r9     = Int32.TryParse(text9, out si);

            if (r9 != false)
            {
                dd.List9 = si;
            }

            TextRelay entry0 = info.GetTextEntry(0);
            string    text0  = (entry0 == null ? "" : entry0.Text.Trim());
            bool      r0     = Int32.TryParse(text0, out si);

            if (r0 != false)
            {
                dd.List0 = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                dd.ListT = true;

                pm.SendMessage(pm.Name + ", Tile ID's Loaded!");

                dd.SendSYSBCK(pm, dd);

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                break;
            }
            }
        }
Exemple #28
0
        public HelpUOE(Mobile m, int p) : base(0, 0)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm == null || pm.Backpack == null)
            {
                return;
            }

            m_Mob = pm;

            Item check = pm.Backpack.FindItemByType(typeof(UOETool));

            if (check == null)
            {
                pm.SendMessage(pm.Name + ", Contact Draco, System Error : Check Failed {0}/{1}", check);

                return;
            }

            UOETool dd = check as UOETool;

            i_Tool = dd;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = false;
            this.Resizable  = false;

            this.AddPage(0);
            this.AddBackground(0, 0, 796, 564, dd.s_Style);
            this.AddLabel(358, 14, dd.Hue_T, @"Help Menu");
            this.AddHtml(14, 46, 767, 475, @"

Welcome to Ultima Live Editor, built to compliment Ultima Live System built by Praxiiz!

Understanding our build version : Currently 2.9.7

2 = Second build of Ultima Live Editor!
9.7 = Current Ultima Online Version Supported!

Understanding the Editor!

The editor is broken into individual gumps that control seperate systems within the Ultma Live System!

Future plans are to incorperate complimentry systems!

Please reply with wishes/wants/changes/bugs to ServUO Forums (This Systems Post)


Controls :


Add Gump : 

On this menu you can add a land or static ID to a Location set in the XYZ, if XYZ left 0, you'll get a target curser just with add ID, but if XYZ set, then the ID will be added at that location!

Multi Command Supported on ID only!

Hue Linkable if On!


Alt Gump

On this gump you can lower or raise the land or static tile, you have to set the distance to move in the center box between the up and down arrows!

Multi Command Supported!


Delete Gump

Just as the name applies, but this will only work on static tiles!

Multi Command Supported!


Gump Selection Gump

This is a gump repositioning gump, use this to set the XY position of any gump in the editor, as you change the gump name to the gump menu you want to move, a grid will appear, use this grid to get a ruff number, X goes Left to Right and Y is Top to Bottom!


Hue Gump

This is to set the hue for Static tiles, this can be used with the add tool to preset a statics hue on add!

Multi Command Supported!


Info Gump

This is a menu to gain information on a land or static tile, use the get button to load the menu, if you want to transfer the info to the rest of your menus, hit apply, this will populate all menus with the menus information.


Main Gump

This is where you activate the system, this is also where you close the system, to close the main gump, make sure the systems closed, then double click the tool to close!


Move Gump

This does just as it says, right now it only moves a static tile, future plans to add land tiles too!


Multi Gump

When toggled on will add the multi command to other commands within the system!


Pick Gump

This is a sub gump for the settings gump, you can use this gump to set a background for your gumps!


Pos Gump

This gump allows you to move static tiles on the XY, enter a number in the middle then use the directional arrows to move a static.

Multi Command Supported!


Reset Gump

If the system isn't working right or you think you messed up the menus, hit this to reset the system, everything reset to default!


Set ID Gump

As the gump implies, enter a static or land ID, hit enter!

Multi Command Supported!


Setting Gump

This is where you can set the Background, Text Hues (Title, General, Entry), Turn Sound on/off, Check for updates, Find Help!


Sub Gump

This is the tile submission menu, this defines what type of tiles you want to work on, at the moment you can either pick statics or land, in the future there is planned on more types like itme/mobs added here.


Well thats all the controls open in this release, if you peak in the scripts you'll see a sneak peak of whats coming in V3.9.X


GoldDraco13
			"            , (bool)true, (bool)true);

            AddButton(359, 530, 247, 248, 1, GumpButtonType.Reply, 0);
        }
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.Hue_S = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                bool HueCK = dd.HueCKUOE(pm, dd);

                if (HueCK == false)
                {
                    pm.SendMessage(pm.Name + ", You can only enter 1-3000 for the value!");

                    dd.SendSYSBCK(pm, dd);

                    if (dd.SndOn == true)
                    {
                        pm.PlaySound(dd.Snd7);
                    }

                    break;
                }

                if (dd.StcT == true)
                {
                    if (dd.MultiT == true)
                    {
                        CommandSystem.Handle(pm, String.Format("{0}m SetStaticHue {1}", CommandSystem.Prefix, dd.Hue_S));
                    }
                    else
                    {
                        CommandSystem.Handle(pm, String.Format("{0}SetStaticHue {1}", CommandSystem.Prefix, dd.Hue_S));
                    }

                    dd.SendSYSBCK(pm, dd);

                    pm.PlaySound(dd.Snd8);

                    break;
                }
                dd.SendSYSBCK(pm, dd);

                break;
            }
            }
        }
Exemple #30
0
        public override void OnResponse(NetState ns, RelayInfo info)
        {
            Mobile mob_m = ns.Mobile;

            PlayerMobile pm = mob_m as PlayerMobile;

            UOETool dd = i_Tool as UOETool;

            if (pm == null || dd == null)
            {
                return;
            }

            int si;

            TextRelay entry1 = info.GetTextEntry(1);
            string    text1  = (entry1 == null ? "" : entry1.Text.Trim());
            bool      r1     = Int32.TryParse(text1, out si);

            if (r1 != false)
            {
                dd.GmpX = si;
            }

            TextRelay entry2 = info.GetTextEntry(2);
            string    text2  = (entry2 == null ? "" : entry2.Text.Trim());
            bool      r2     = Int32.TryParse(text2, out si);

            if (r2 != false)
            {
                dd.GmpY = si;
            }

            switch (info.ButtonID)
            {
            case 0:
            {
                pm.SendMessage(pm.Name + ", Thanks for using the UO Editor!");

                dd.SendSYSBCK(pm, dd);

                break;
            }

            case 1:
            {
                dd.CntGN--;

                dd.GumpNameUOE(pm, dd);

                break;
            }

            case 2:
            {
                dd.CntGN++;

                dd.GumpNameUOE(pm, dd);

                break;
            }

            case 3:
            {
                if (dd.GmpX < 0 || dd.GmpX > 2000)
                {
                    pm.SendMessage(pm.Name + ", You entered in an improper X Value!");

                    dd.SendSYSBCK(pm, dd);

                    break;
                }

                if (dd.GmpY < 0 || dd.GmpY > 1100)
                {
                    pm.SendMessage(pm.Name + ", You entered in an improper Y Value!");

                    dd.SendSYSBCK(pm, dd);

                    break;
                }

                if (dd.SndOn == true)
                {
                    pm.PlaySound(dd.Snd5);
                }

                dd.SetGumpNameUOE(pm, dd);

                break;
            }
            }
        }