Esempio n. 1
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.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;
                }
            }
            }
        }
Esempio n. 2
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;
            }
            }
        }
Esempio n. 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:
            {
                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;
            }
            }
        }
Esempio n. 4
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;
            }
            }
        }
Esempio n. 5
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.ResetUOE(pm, dd);

                break;
            }
            }
        }
Esempio n. 6
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);
        }
Esempio n. 7
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;
            }
            }
        }
Esempio n. 8
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;
            }
            }
        }
Esempio n. 9
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;
            }
            }
        }
Esempio n. 10
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;
            }
            }
        }
Esempio n. 11
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;
            }
            }
        }
Esempio n. 12
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;
            }
            }
        }
Esempio n. 13
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;
            }
            }
        }
Esempio n. 14
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;
            }
            }
        }
Esempio n. 15
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:
            {
                pm.Target = new UOETarget();

                dd.SendSYSBCK(pm, dd);

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

                break;
            }

            case 2:
            {
                if (dd.StcT == true)
                {
                    dd.StcID = dd.TempID;
                    dd.StcX  = dd.TempX;
                    dd.StcY  = dd.TempY;
                    dd.StcZ  = dd.TempZ;
                    dd.Hue_S = dd.TempH;
                }

                if (dd.LndT == true)
                {
                    dd.LndID = dd.TempID;
                    dd.LndX  = dd.TempX;
                    dd.LndY  = dd.TempY;
                    dd.LndZ  = dd.TempZ;
                }

                dd.SendSYSBCK(pm, dd);

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

                break;
            }
            }
        }