Save Guild Enemies/Allies

09/30/2010 14:56 Fish*#61
Quote:
Originally Posted by marlyandedsel View Post
can you recode it to a working one, this code is not working to my source.
thanks in advance
just change Say,Link,Option to whatever u got in ur source :)
09/30/2010 17:06 Fish*#62
Quote:
Originally Posted by †he Knight §olari§ View Post
AddAlly needs definition you cocksucker fish , and yeah .. I Dont care if somebody bans me , i can do new account its not a problem
i hope u get ipbanned.
09/30/2010 21:23 BitzIn#63
Quote:
Originally Posted by †he Knight §olari§ View Post
AddAlly needs definition you cocksucker fish , and yeah .. I Dont care if somebody bans me , i can do new account its not a problem
Quote:
Originally Posted by †he Knight §olari§ View Post
I Wish your hope become true! HAHAHHA
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.o
u ask for help then insult people -.- <-FAIL at ur posts above
09/30/2010 21:56 BitzIn#64
Quote:
Originally Posted by †he Knight §olari§ View Post
YES! YES! I GOT IT FIXED! YEEEEEEEEHEAAAAAAAAA
pro4never rapes forever!
fail
10/01/2010 00:21 .Beatz#65
#Off Topics - Request clean
10/02/2010 14:21 ryuchetval#66
how do I take a guild out from the string? (string Ally = ReadString(Data);)
they are added as guildid, guild...suggestions?

EDIT: nvm i realized it was on page 4 :)
10/05/2010 12:42 FadMucker#67
ive followed the guide as best as i cud but i get these errors? any idea how to fix??
10/05/2010 12:46 _Vodka#68
They are not defined in ur guild.cs
10/05/2010 13:09 FadMucker#69
Quote:
Originally Posted by _Vodka View Post
They are not defined in ur guild.cs
wud you help with that?
10/05/2010 14:07 Arcо#70
Quote:
Originally Posted by FadMucker View Post
wud you help with that?
You didn't define these both;
public Dictionary<uint, string> Allies = new Dictionary<uint, string>();
public Dictionary<uint, string> Enemies = new Dictionary<uint, string>();
10/05/2010 14:14 FadMucker#71
Quote:
Originally Posted by Аrco View Post
You didn't define these both;
public Dictionary<uint, string> Allies = new Dictionary<uint, string>();
public Dictionary<uint, string> Enemies = new Dictionary<uint, string>();
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.
10/05/2010 14:16 Arcо#72
Erm, I don't know how I could have been more clear when I said;
Quote:
Well first define this in features/guilds.cs under public class Guilds
10/05/2010 14:25 FadMucker#73
Quote:
Originally Posted by Аrco View Post
Erm, I don't know how I could have been more clear when I said;
Quote:
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>();
thats what i have
10/05/2010 14:32 Arcо#74
Well, this is clearly my fault. I guided you guys wrong, its supposed to be in public class Guild, not public class Guilds
10/05/2010 15:23 marlyandedsel#75
Quote:
Originally Posted by .Beatz View Post
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.
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
If this doesn't work for you I will recode it using Tanels source.

its error in my source i duno why maybe you should recode using tanels source, please and thanks in advance