public MonsterAI(Monster monster, ChannelServer server) : base(monster, 1000) { this.Server = server; AITimer.Elapsed += new System.Timers.ElapsedEventHandler(AITimer_Elapsed); AITimer.Enabled = false; Random = new Random(); }
public ChannelServerMain() { InitializeComponent(); channelServer = new ChannelServer(Properties.Settings.Default.ChannelServerIP, Properties.Settings.Default.ChannelServerPort); channelServer.ClientConnected += new EventHandler<ClientConnectionEventArgs>(channelServer_ClientConnected); channelServer.ClientExceptionOccoured += new EventHandler<ClientExceptionEventArgs>(channelServer_ClientExceptionOccoured); channelServer.ClientUnknownPacket += new EventHandler<UnknownPacketEventArgs>(channelServer_ClientUnknownPacket); }
public ChannelServerMain() { InitializeComponent(); channelServer = new ChannelServer(Properties.Settings.Default.ChannelServerIP, Properties.Settings.Default.ChannelServerPort, Properties.Settings.Default.ExpRate, Properties.Settings.Default.ItemDropChance, Properties.Settings.Default.MoneyDropChance, Properties.Settings.Default.StoneDropChance, Properties.Settings.Default.BookDropChance, Properties.Settings.Default.PillDropChance, Properties.Settings.Default.StoneCombineChance); channelServer.ClientConnected += new EventHandler<ClientConnectionEventArgs>(channelServer_ClientConnected); channelServer.ClientExceptionOccoured += new EventHandler<ClientExceptionEventArgs>(channelServer_ClientExceptionOccoured); channelServer.ClientUnknownPacket += new EventHandler<UnknownPacketEventArgs>(channelServer_ClientUnknownPacket); channelServer.ClientLogPacket += new EventHandler<LogPacketEventArgs>(channelServer_ClientLogPacket); channelServer.ClientConnectionChanged += new EventHandler<PlayerConnectionChangedEventArgs>(channelServer_ClientConnectionChanged); }