Ejemplo n.º 1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.GuildTitle != "Blue Team" && from.GuildTitle != "Red Team")
            {
                string GTSave = from.GuildTitle;
                from.GuildTitle = "Red Team";
                from.SendMessage("You are now on the Red Team!");

                Timer m_timer = new GuildTitleReset(from, GTSave);
                m_timer.Start();
            }
            else if (from.GuildTitle == "Red Team")
            {
                from.SendMessage("You are already on the Red Team!");
            }
            else
            {
                from.SendMessage("You cannot change from the Blue Team to the Red Team!");
            }
        }
Ejemplo n.º 2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.GuildTitle != "Blue Team" && from.GuildTitle != "Red Team")
            {
                string GTSave = from.GuildTitle;
                from.GuildTitle = "Red Team";
                from.SendMessage("You are now on the Red Team!");

                Timer m_timer = new GuildTitleReset(from, GTSave);
                m_timer.Start();
            }
            else if (from.GuildTitle == "Red Team")
            {
                from.SendMessage("You are already on the Red Team!");
            }
            else
            {
                from.SendMessage("You cannot change from the Blue Team to the Red Team!");
            }
        }