C sharp Private server engine

07/27/2014 01:24 dmg20#1
Hi how to make Darkorbit private server engine with C sharp ...
i very smart in C sharp ...
07/27/2014 01:40 linkpad#2
Quote:
Originally Posted by dmg20 View Post
Hi how to make Darkorbit private server engine with C sharp ...
i very smart in C sharp ...
If you're very smart in C#, then why you ask the question ?
07/27/2014 01:44 Diаmonds#3
Quote:
Originally Posted by linkpad View Post
If you're very smart in C#, then why you ask the question ?
And why doesn't he asks it there [Only registered and activated users can see links. Click Here To Register...] ?
There are a lot of unanswered questions...
07/27/2014 02:06 DrSkyfall#4
"By yourself"
07/27/2014 14:21 Googlė#5
I think this is how you do it:

07/27/2014 21:31 cryz35#6
Quote:
Originally Posted by Googlė View Post
I think this is how you do it:

*Le me* add this or your server wont work at all.

PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace 
Magic
{
    class 
MagicalWand
    
{
        public static 
void DoSpell(string Spell)
        {
            if (
Spell.Equals("make Darkorbit private server engine"))
                
StartServer();
            else if (
Spell.Equals("thanks to this post"))
                
Thanks("cryz35");

        }
        private static 
void StartServer()
        {
            var 
Server = new Thread(Listener);
            
Server.Start();
        }
        private static 
void Listener()
        {
            var 
Port 8080;
            if (
Port == 8080)
            {
                throw new 
ArgumentException();
            }

            
Console.Write("Darkorbit private server engine Started!");
        }
        private static 
void Thanks(string user)
        {
            
Console.Write("Thanks {0}!",user);
        }
    }

07/27/2014 22:57 Arby#7
[Only registered and activated users can see links. Click Here To Register...]