Quote:
AddAlly needs definition you cocksucker fish , and yeah .. I Dont care if somebody bans me , i can do new account its not a problem
why bother even making a private server if ur this rude.. no1 wil even go to it... i wudnt if a GM were such a loser like u o.oQuote:
I Wish your hope become true! HAHAHHA
sry to be a pain but im useless with defining , if you cud please give me more details on how to define them thats wud be awesome.Quote:
You didn't define these both;
public Dictionary<uint, string> Allies = new Dictionary<uint, string>();
public Dictionary<uint, string> Enemies = new Dictionary<uint, string>();
Quote:
Well first define this in features/guilds.cs under public class Guilds
Quote:
Erm, I don't know how I could have been more clear when I said;
thats what i haveQuote:
public class Guilds
{
public static Hashtable AllTheGuilds = new Hashtable();
public Dictionary <uint, string> Allies = new Dictionary<uint, string>();
public Dictionary <uint, string> Enemies = new Dictionary<uint, string>();
Quote:
The NPC you already have should be fine for the allys/enemys just add this code into the NPC under Disband. Not sure if this will work for you but it works for me and has done for a while now. All you should need to do is change a few things.
NOTE! : This is JUST Allys you should be able to work out enemys for yourself.
If this doesn't work for you I will recode it using Tanels source.Code:#region Ally if (option == 20) { Say("Who would you like to ally?", GC); Link2("Ally", 21, GC); Done(30, GC); } if (option == 21) if (GC.MyChar.MyGuild != null && GC.MyChar.GuildRank == MayaCo.Features.GuildRank.GuildLeader) { string Ally = ReadString(Data); foreach (Features.Guild g in Features.Guilds.AllTheGuilds.Values) { if (g.GuildName == Ally) { if (g.Creator.Info != null) { if (g.Creator.Info.MyTeam.Members.Contains(GC.MyChar.EntityID)) { if (!GC.MyChar.MyGuild.Allies.ContainsValue(Ally)) { GC.MyChar.MyGuild.AddAlly(Ally); GC.AddSend(Packets.String(g.GuildID, 21, Ally)); Say(g.GuildName + " is now your ally!", GC); Link("Thanks.", 255, GC); } else { Say(g.GuildName + " is already your ally.", GC); Link("Damn.", 255, GC); } } else { Say("Make sure the guild leader of the Features guild is in your team.", GC); Link("Okay", 255, GC); } } } } break; } #endregion