Discussion on [Release] Extremely basic (but working/bugless) C# Source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
If you are using Rev 3+ Commands are exucted through the Commands.cs. Anyone could see this plainly. Sorry for lack of helping having a full-time job and full time gf is hard to work on my source. Tho i broke off of hybrids base to my own base. I still implemented some of hybrids theories and Idea's.
Commands are handled in the Commands.cs file add you commands there example
If you dont have the command.cs file please download Rev3 or Tao's rev , You always want to use try-catch blocks with commands and things , The way a try-catch block works if some-thing goes wrong with the command or code it will catch the code meaning it will go to the catch and still continue with the code , Example for @item command
Commands.cs include only players commands, it has nothing to do with console's command. The commands for console goes where you set the Console.ReadLine(); statment and you can do it like
string Command = Console.ReadLine();
switch(Command.ToLower())
{
case "close": Enviroment.Exit(Enviroment.ExitCode); break;
case "sendmsg": foreach(GameClient Cl in Kernel.GamePool.Values)
{
Cl.Send(new MessagePacket("Hello everyone", 0,MessagePacket.Center));
}Console.ReadLine();break;
default: Console.ReadLine(); break;
}
Commands.cs include only players commands, it has nothing to do with console's command. The commands for console goes where you set the Console.ReadLine(); statment and you can do it like
string Command = Console.ReadLine();
switch(Command.ToLower())
{
case "close": Enviroment.Exit(Enviroment.ExitCode); break;
case "sendmsg": foreach(GameClient Cl in Kernel.GamePool.Values)
{
Cl.Send(new MessagePacket("Hello everyone", 0,MessagePacket.Center));
}Console.ReadLine();break;
default: Console.ReadLine(); break;
}
Thanks, Im used to lotf. This is a change.
Oh and u made a typo at "Enviroment" should be Environment
If anyone needs help coding with hybrids source please feel free to ask , i would be more than willing to help you with anything ( not updating it to 518+ tho) hehe
*** why cant anyone one make a source that doesnt take some of my life away to set up a server and have friends play with out bugs is that too hard to ask
*** why cant anyone one make a source that doesnt take some of my life away to set up a server and have friends play with out bugs is that too hard to ask
Then get a crappy source like LOTF where everything more or less works.
Then get a crappy source like LOTF where everything more or less works.
I agree 50 % , No source is perfect, and most certain no source is better or the best. I would have to say all source have a or are a diy self deal.(do it yourself) Why people do not understand the real importance of this, and the level of programing required for this is why people call them newbs.
If your going to complain , whine , or flame about something , you just wasted 2 minutes of you life , that you could have used more productively one progressing in something. . .
[Huge-Release] All-In-One Basic NPC Scripts For The 5165 Source! 02/19/2010 - CO2 PServer Guides & Releases - 30 Replies Well I'm sorry that I spammed the whole forum full of my posts So pro4never and .Ryu gave me the idea of making this All-In-One thread about all my NPC's! THESE ARE UPDATED DAILY!
NOTE: TO PEOPLE... SOME OF THE CODES ARE NOT MADE BY ME! I USUALLY JUST FIXED/UPDATED THE BASIC ONES! SORRY I'M LEARNING ON HOW TO CODE!
1. Birth-Island-NPC's(The NPC text is not from "REAL CONQUER" SORRY!...)
#region BirthOldGeneralYang
case 425:
{
[RELEASE] Basic LOTF Source 09/03/2009 - CO2 PServer Guides & Releases - 17 Replies hey this is a basic lotf source edited based off shadowco, if you dont like it then dont post here... flames will be told on!!! :D i will tell on you to the mods if you flame
What it has...
- LuckyTime
- Guard
- 24/7 GW