hello guyz
could anyone of you help me to add the guilds enemies and allies i have made the one which reallesed by Arco before but its not work for me my source is Newsetco version 2 patch 5165
thanks anyway....
Save Guild Enemies/Allies 12/07/2010 - CO2 PServer Guides & Releases - 131 Replies First and foremost this is for 5165 Tanel source. NewestCOServer.
Well first define this in features/guilds.cs under public class Guild
public Dictionary<uint, string> Allies = new Dictionary<uint, string>();
public Dictionary<uint, string> Enemies = new Dictionary<uint, string>();
public static void CreateNewGuild(string GName, ushort GID, Character Creator)
And at the bottom of this void, put this
[Problem]Guild Allies and Enemies 08/16/2010 - CO2 Private Server - 2 Replies Well after two days of having a go at this, and one day of asking people for help, I finally decided it was time to ask the community for help.
Well I am trying to load allies from the Guilds.dat file.
They are defined as public Dictionary<uint, string> Allies = new Dictionary<uint, string>();
When something is added to the dictionary its like this.
Allies.Add(GuildID, GuildName);
Now when saving to the guild.dat file, its saved like this.
BW.Write((int)Allies.Count);
...