private void SkinChange(object obj) { if (!(obj is Skin)) { return; } Data.GetData(Owner).MenuSkin = (Skin)obj; General.List(Owner, (int)c_ListPage); }
private void BecomeUser() { NewGump(); General.List(Owner, c_Target); }
private static void OnFriends(CommandInfo e) { General.List(e.Mobile, 3); }
public virtual void OnChat(Mobile m, string msg, bool spam) { if (msg == null || msg == "") { if (!CanChat(m, false)) { General.List(m, 0); return; } if (c_Mobiles.Contains(m)) { Data.GetData(m).CurrentChannel = this; } General.List(m, 1); return; } if (!CanChat(m, true)) { return; } if (c_Filter) { msg = Chat3.Filter.FilterText(m, msg); } if (!CanChat(m, false)) { return; } if (!c_Mobiles.Contains(m)) { m.SendMessage(Data.GetData(m).SystemC, General.Local(34)); return; } if (c_Delay && !TrackSpam.LogSpam(m, "Chat", TimeSpan.FromSeconds(Data.ChatSpam))) { if (spam) { m.SendMessage(Data.GetData(m).SystemC, General.Local(97)); } Timer.DelayCall(TimeSpan.FromSeconds(4), new TimerStateCallback(OnChat), new object[] { m, msg }); return; } AddHistory(m, msg); UpdateHistory(m); Events.InvokeChat(new ChatEventArgs(m, this, msg)); if (Data.LogChat) { Logging.LogChat(String.Format(DateTime.Now + " <{0}{1}> {2}: {3}", c_Name, (c_Style == ChatStyle.Regional && m.Region != null ? "-" + m.Region.Name : ""), m.Name, msg)); } Data.TotalChats++; Data.GetData(m).Karma++; Broadcast(m, msg); if (c_ToIrc && IrcConnection.Connection.Connected) { IrcConnection.Connection.SendUserMessage(m, "(" + c_Name + ") " + msg); } }
private static void OnMail(CommandInfo e) { General.List(e.Mobile, 2); }
private void Message() { General.List(Owner, 2); }
private static void OnView(CommandInfo e) { General.List(e.Mobile, 0); }