client.Enemy.Remove(enemy.ID); client.Send(new KnownPersons(true) { UID = enemy.ID, Type = KnownPersons.RemovePerson, Name = "", Online = false }); Database.KnownPersons.RemoveEnemy(client, enemy.ID); } } static void AddFriend(KnownPersons knownperson, Client.GameState client) { if (!client.Friends.ContainsKey(knownperson.UID)) { Client.GameState Client = ServerBase.Kernel.GamePool[knownperson.UID]; if (Client != null) { Client.OnMessageBoxOK = delegate { if (client != null) { if (client.Socket.Connected) { if (!Client.Friends.ContainsKey(client.Entity.UID)) { client.Friends.Add(Client.Entity.UID, new Conquer_Online_Server.Game.ConquerStructures.Society.Friend() { ID = Client.Entity.UID, Name = Client.Entity.Name }); Client.Friends.Add(client.Entity.UID, new Conquer_Online_Server.Game.ConquerStructures.Society.Friend() { ID = client.Entity.UID, Name = client.Entity.Name }); client.Send(new KnownPersons(true) { UID = Client.Entity.UID, Type = KnownPersons.AddFriend, Name = Client.Entity.Name, Online = true }); Client.Send(new KnownPersons(true) { UID = client.Entity.UID, Type = KnownPersons.AddFriend, Name = client.Entity.Name, Online = true }); Database.KnownPersons.AddFriend(client, client.Friends[Client.Entity.UID]); client.Screen.SendScreen(new Message(Client.Entity.Name + " has accepted " + client.Entity.Name + "'s friendship request.", System.Drawing.Color.Blue, Message.TopLeft), true); } } } }; Client.OnMessageBoxCANCEL = delegate { if (client != null) { if (client.Socket.Connected) { if (Client != null) { if (Client.Socket.Connected) { client.Send(new Message(Client.Entity.Name + " has rejected your friendship request.", System.Drawing.Color.Blue, Message.TopLeft)); } } } } }; Client.Send(new NpcReply(NpcReply.MessageBox, client.Entity.Name + " wants to be your friend.")); } } } public static void AddEnemy(Client.GameState client, Client.GameState enemy) { if (!client.Enemy.ContainsKey(enemy.Entity.UID)) { client.Enemy.Add(enemy.Entity.UID, new Conquer_Online_Server.Game.ConquerStructures.Society.Enemy() { ID = enemy.Entity.UID, Name = enemy.Entity.Name }); client.Send(new KnownPersons(true) { UID = enemy.Entity.UID, Type = KnownPersons.AddEnemy, Name = enemy.Entity.Name, Online = true }); Database.KnownPersons.AddEnemy(client, client.Enemy[enemy.Entity.UID]); } }
#endregion
this in Screen.cs
PHP Code:
public void SendScreen(Interfaces.IPacket buffer, bool self) { for (int c = 0; c < Objects.Count(); c++) { //For a multi threaded application, while we go through the collection //the collection might change. We will make sure that we wont go off //the limits with a check. if (c >= Objects.Count()) break; Interfaces.IMapObject _obj = Objects[c]; if (_obj == null) continue; if (_obj.UID != Owner.Entity.UID) { if (_obj.MapObjType == Game.MapObjectType.Player) { GameState client = _obj.Owner as GameState; if (Owner.WatchingGroup != null && client.WatchingGroup == null) continue; client.Send(buffer); } } }
Having an issue 06/18/2010 - Shaiya Private Server - 0 Replies On the server that I'm hosting, we've followed the tutorials to get the server to EP4 and gotten the server itself to work. All files attatched to SQL correctly (or so it said), using MSSQL 2005 Express.
Here's the issue:
All of the people who have our game.exe (which is staff only at the moment) who try to log on, make it to the character selection screen. All of their toons are there and able to be selected. However, when they click to start the game, it automatically DC's them. ...
[HELP]Log in issue. 06/13/2010 - EO PServer Hosting - 1 Replies Hey everyone, i am trying to log into my friend server and it works untill verifying account, then it closes. He is able to log in and he sent me a screenshot, so if anyone has a great idea or way too fix this, message me on MSN or on here or reply, thank you very much
HEY DC ISSUE !!!! 06/15/2007 - Silkroad Online - 7 Replies i Reinstalled the game and still getting DC ever 5 minutes when i log in game so y the hell is this please need help really 2 days like this !! please help and in specific details would be appreciated " sry if spam " but i cant hodl much longer sry all ...
<hr>Append on Jun 14 2007, 12:19<hr> Has to do sth with host or FireWall or Kaspersky !! i don't think so please need fast Solve solution ~!!!