if (str.ToLower().IndexOf("!status") != -1 && c_NextStatus < DateTime.Now)
{
c_NextStatus = DateTime.Now + TimeSpan.FromSeconds(15);
s_Connection.SendMessage(String.Format("PRIVMSG {0} : {1}", Data.IrcRoom, Status));
BroadcastSystem(Status);
}
if (str.ToLower().IndexOf("!seen") != -1 && c_NextStatus < DateTime.Now)
{
string s1 = str;
int s2 = str.ToLower().IndexOf("!seen")+6;
int checklength = s1.Length - s2;
int found = 0;
int found2 = 0;
if (checklength > 0) //catch invalid values
{
s1 = s1.Substring(s2, checklength); //everything after "!seen_" is who they are looking for
c_NextStatus = DateTime.Now + TimeSpan.FromSeconds(15);
//now look for s1 online
List<NetState> states = NetState.Instances;
for (int i = 0; i < states.Count; ++i )
{
Mobile m = states[i].Mobile;
if (m !=null)
if (m.Name.ToLower() == s1.ToLower())
found = 1;
}
//------------
if (found > 0) //ok it was found online. return the results
s_Connection.SendMessage(String.Format("PRIVMSG {0} : {1}{2}", Data.IrcRoom, s1, " is currently in-game." ));
else //it wasnt found online. Is it a player at all??
{
List<Mobile> mobs = new List<Mobile>( World.Mobiles.Values );
foreach ( Mobile m in mobs ) //lets look through the mobs list
{
if ( m is PlayerMobile ) //is it a player?
{
if (m.Name.ToLower() == s1.ToLower())
{
Account acct = m.Account as Account;
found2 = 1; //a player with that name was found. Return the last logged in date and time.
s_Connection.SendMessage(String.Format("PRIVMSG {0} : {1}{2}{3}{4}", Data.IrcRoom, s1, " was last seen on: ", acct.LastLogin, " (GMT+1 Server Local Time)" ));
}
}
}
if ((found == 0) && (found2 == 0)) //a character with that name was not found in the mobiles list. It does not exist on this shard.
s_Connection.SendMessage(String.Format("PRIVMSG {0} : {1}{2}{3}", Data.IrcRoom, "The name: ", s1, " is not being used by any players registered at Aeternum." ));
}
//------------
}
else // no name was given, or an invalid name was given.
s_Connection.SendMessage(String.Format("PRIVMSG {0} : {1}", Data.IrcRoom, "You have specified an invalid name. " ));
}
Summary:
Version 3.0 Beta 9
Supports RunUO 2.0 RC1, RunUO 1.0 Final
*** This version may work with the current RunUO 2.0 SVN, and this may change as the SVN changes. Please report this to me, as I can add patches to allow functionality.
kmwill23;667157 said:My players reported it too =) Try this update out.
killsom3thing;676828 said:I'm experiencing a problem where no matter what character I'm on, if I use [i the server crashes and reboots. The thing is, if I use [c before using [i it works fine
Here is the log:
Server Crash Report
===================
RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 4/23/2007 11:07:39 AM
Mobiles: 54
Items: 1622
Clients:
- Count: 1
+ (IP) (account) (mobile = 0x5 'Kalias')
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Knives.Chat3.ListGump10.BuildTabs(Int32 width, Int32 y)
at Knives.Chat3.ListGump10.BuildGump()
at Knives.Chat3.GumpPlus.NewGump(Boolean clear)
at Knives.Chat3.GumpPlus.NewGump()
at Server.Timer.DelayCallTimer.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)
Also, non-crash related, is there a way to change the color of the message upon logging in that displays your mail so it isnt yellow?
Many thanks
+ Custom/Chat 3.0 Beta 9/General/MultiConnection.cs:
CS0168: Line 65: The variable 'e' is declared but never used
CS0168: Line 134: The variable 'e' is declared but never used
CS0168: Line 165: The variable 'e' is declared but never used
CS0168: Line 184: The variable 'e' is declared but never used
CS0168: Line 201: The variable 'e' is declared but never used
CS0168: Line 252: The variable 'e' is declared but never used
+ Custom/Chat 3.0 Beta 9/Gumps/Error Reporting/Errors.cs:
CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202'
CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202'
CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202'
qwerty84;677149 said:Code:+ Custom/Chat 3.0 Beta 9/General/MultiConnection.cs: CS0168: Line 65: The variable 'e' is declared but never used CS0168: Line 134: The variable 'e' is declared but never used CS0168: Line 165: The variable 'e' is declared but never used CS0168: Line 184: The variable 'e' is declared but never used CS0168: Line 201: The variable 'e' is declared but never used CS0168: Line 252: The variable 'e' is declared but never used + Custom/Chat 3.0 Beta 9/Gumps/Error Reporting/Errors.cs: CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202' CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202' CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202'
killsom3thing;677138 said:Thanks for the updated file it works great
and I see what you meant with the system color, but is there a way to overide the text colors (in chat and system) for everyone?
kmwill23;677209 said:If you want you can go into the script file and change it there. You'll have to play around with colors. What I do is change the hue of an item in game to get the color I want.
The setting is in General.cs, search for this:
args.Mobile.SendMessage(Data.GetData(args.Mobile).SystemC, General.Local(258), Data.GetData(args.Mobile).Messages.Count, Data.MaxMsgs);
And replace Data.GetData(args.Mobile).SystemC with your hue number.