Console Commands for HellMouth source

03/15/2011 00:20 thesamuraivega#1
Hello
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;
Would look like with the other commands:
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;
            }
        }
these 3 commands work this way:

/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 :p
03/15/2011 13:33 sitdownson#2
Useful if some people are actually able to fix
their mobspawns [ not that I got them fixed but what so ever ].
Nice release i'd say!
03/15/2011 22:49 thesamuraivega#3
Quote:
Originally Posted by sitdownson View Post
Useful if some people are actually able to fix
their mobspawns [ not that I got them fixed but what so ever ].
Nice release i'd say!
Yup! Ty bro :)
03/15/2011 23:54 pro4never#4
No offense but these aren't even correct... For it to work you'd have to first clear all mob objects in the server and THEN reload database.

Same with the top 10 stuff. You'd have to clear the halo from whoever has it currently and then reload the top 10.

These commands to be honest don't really... 'do' anything.
03/16/2011 00:53 thesamuraivega#5
Quote:
Originally Posted by pro4never View Post
No offense but these aren't even correct... For it to work you'd have to first clear all mob objects in the server and THEN reload database.

Same with the top 10 stuff. You'd have to clear the halo from whoever has it currently and then reload the top 10.

These commands to be honest don't really... 'do' anything.
is true... =S maybe tomorrow work in the commands:p