Windows form...

11/14/2008 16:17 Kiyono#1
//
11/14/2008 17:26 taguro#2
Quote:
Originally Posted by Djago160 View Post
how do you add a windows form thingy in LOTF... i tried a few things but it doesn't seems to load.
The best solution to this problem is not to add one at all. Why waste the valuable memory on something that lame?
11/14/2008 17:27 Kiyono#3
yea good point... i could use commands to do the same thing
11/14/2008 20:06 KraHen#4
Although I found it useful back in time, when I was hosting a server and I wanted to send a GM message. It`s faster to send it via a panel then logging in a game and etc etc. But meh, as it was said before, it`s just waste of memory
11/14/2008 21:01 nTL3fTy#5
What about console commands...?

Code:
.msg Hey this is a GM broadcast
etc..
11/14/2008 21:08 KraHen#6
That is the proper way, this was back in time :P
11/14/2008 22:13 tao4229#7
My LOTF base had console commands, and my new one does too :>
11/14/2008 22:35 _Emme_#8
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
11/15/2008 11:59 MushyPeas#9
Quote:
Originally Posted by EmmeTheCoder View Post
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
switchhhhh
11/15/2008 23:04 © Haydz#10
Quote:
Originally Posted by MushyPeas View Post
switchhhhh ftw
...