Esempio n. 1
0
        public override void OnResponse(Mobile mob, string text)
        {
            text = text.Trim();

            if (text.Length > 40)
            {
                text = text.Substring(0, 40);
            }

            if (text.Length > 0)
            {
                SR_Rune rune = null;
                if (this.IsRunebook)
                {
                    rune = new SR_Rune(text, true);
                }
                else
                {
                    rune = new SR_Rune(text, this.TargetMap, this.TargetLoc);
                }

                if (this.RuneAcc.ChildRune == null)
                {
                    this.RuneAcc.AddRune(rune);
                }
                else
                {
                    this.RuneAcc.ChildRune.AddRune(rune);
                }
            }

            SR_Gump.Send(mob, this.RuneAcc);
        }
Esempio n. 2
0
        public static void SR_OnCommand(CommandEventArgs e)
        {
            Mobile mob = e.Mobile;

            SR_Gump.Send(mob, SR_Utilities.FetchInfo(mob.Account));
        }