I bring these commands ... I am very happy that the commands are echos for me! in 3 days I've seen how this source and I fix it like I have a lot = D
1.-In order to apply them to your server must have this source ofcourse.
2.-Open prollecto HellmouthCo in Microsoft Visual Studio C # 2010 Expres
3.-Search Program.cs in visual studio and open it
4.-Give control + f and search: case "/ exit"
5.-Paste the following code just above this command:
Code:
case "/reloadnpc":
Database.LoadNpcs();
break;
case "/reloadspawns":
Database.GetSpawns();
break;
case "/reloadarenaranks":
Database.LoadTop10();
break;
Code:
public static void HandleCmd(string[] Cmd)
{
switch (Cmd[0])
{
case "/reloadnpc":
Database.LoadNpcs();
break;
case "/reloadspawns":
Database.GetSpawns();
break;
case "/reloadarenaranks":
Database.LoadTop10();
break;
case "/exit":
case "/close":
case "/stop":
foreach (Client C in Dictionary.Clients.Values)
Database.LogoutSave(C);
Environment.Exit(0);
break;
case "/debug":
Program.ThreadDebug = !Program.ThreadDebug;
Console.WriteLine("Thread debug: " + Program.ThreadDebug);
break;
}
}
/reloadnpc # work to relogging all npc and not have to restart the entire database to put a npc =).
/reloadspawns # work for monsterspawns relohear all, for if they get more spawns and not have to restart the complete data =D.
/reloadarenaranks # used to be actualisen the ranks in the sand table and not have to reset the data =O.
I think are basic but it's one of my early work in c #
Credits to me! =D
sorry for my bad English






