//
.msg Hey this is a GM broadcast etc..
switchhhhhQuote:
Console commands are EASY to do,this is how it would look like,after the start shit where it loads everything,do this:
string Command = Console.ReadLine();
if (Command.StartsWith("/")
{
if (Command == "/time")
{
Console.WriteLine("Time is now : " + DateTime.Now);
}
if (Command == "/close")
{
World.SaveAllChars();
DataBase.AllOffline();
Environment.Exit(Environment.ExitCode);
}
if (Command == "/sendmsg")
{
Console.Write("Message : ")
string Msg = Console.ReadLine();
World.SendMsgToAll(Msg, "FromConsole", 2011);
}
}
else
{
Console.WriteLine("Always start an command with an '/' ");
}
I could go on and on with all fancy commands,those were just examples and done directly here on epvp so it could not be working,hope it helped someone.
Emme