Save Guild Enemies/Allies

08/31/2010 14:40 .Beatz#31
Quote:
Originally Posted by ☆★Zuper★☆ View Post
option to control
aint that a convert? :)

and later I will take the npc and make it work real.
Like you need to be in team with the one you want to allie.
It depends what source he is using. For me my source uses option. My other source uses case 1: etc and another one I have on my old HDD uses Control.

This is why I said it depends what source he is using all of them are different and just because the source you are using uses Control doesn't mean his does.

Yeah this might be his problem I don't know I am not a mind reader sir as he didn't give us anymore details other than "this doesn't work".
09/01/2010 00:35 koko425#32
Quote:
Originally Posted by mattyc2580 View Post
Not necessarily a conversion problem. Looked at that and it would work on my source with no problems.

@koko425 What are the problems you are having? Does it just not make allies? or does it not work at all? A little more information helps.
when i talk to npc didnt make a box to write allies guild to make it ally with my guild

and i maked team and joined the the guild i want to make it ally


plzz help
09/21/2010 22:39 †he Knight#33
Good Job , Even i dont like you i respect some of ur relases
09/21/2010 22:43 Fish*#34
Quote:
Originally Posted by JuiceDCodeR View Post
Good Job , Even i dont like you i respect some of ur relases
serious, u got no reason to hate on arco.
he aint flaming u, or talking bad to u.
[Only registered and activated users can see links. Click Here To Register...]
09/21/2010 23:04 †he Knight#35
Quote:
Originally Posted by Fish* View Post
serious, u got no reason to hate on arco.
he aint flaming u, or talking bad to u.
[Only registered and activated users can see links. Click Here To Register...]
I didn't say that I hate him , I just Don't like him ..
He has all my respect for some of his Threads.. :handsdown:
09/22/2010 03:06 peterpiper99#36
Got it all converted:
Code:
if (Control == 20)
                                    {
                                        GC.AddSend(Packets.NPCSay("Who would you like to ally?"));
                                        GC.AddSend(Packets.NPCLink("Ally", 21));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (Control == 21)
                                        if (GC.MyChar.MyGuild != null && GC.MyChar.GuildRank == NewestCOServer.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));
                                                                GC.AddSend(Packets.NPCSay(g.GuildName + " is now your ally!"));
                                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                            }
                                                            else
                                                            {
                                                                GC.AddSend(Packets.NPCSay(g.GuildName + " is already your ally."));
                                                                GC.AddSend(Packets.NPCLink("Damn.", 255));
                                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                                GC.AddSend(Packets.NPCFinish());
                                                            }
                                                        }
                                                        else
                                                        {
                                                            GC.AddSend(Packets.NPCSay("Make sure the guild leader of the Features guild is in your team."));
                                                            GC.AddSend(Packets.NPCLink("Okay", 255));
                                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                            GC.AddSend(Packets.NPCFinish());
                                                        }
                                                    }
                                                }
                                            }
                                            break;
                                        }
But error at:
Code:
GC.MyChar.MyGuild.AddAlly(Ally);
Has anyone fixed this?
09/22/2010 03:07 Arcо#37
Yup, you need to add it to the dictionary yourself.
09/22/2010 03:09 peterpiper99#38
Lol, how?
09/22/2010 03:19 Arcо#39
Quote:
Originally Posted by peterpiper99 View Post
Lol, how?
Gc.Mychar.myguild.allies.add(uint, string);
09/22/2010 12:20 alaa410#40
Tanel source where the source
09/22/2010 12:25 Fish*#41
in sticky threads
09/22/2010 14:57 { Angelius }#42
[Only registered and activated users can see links. Click Here To Register...]
09/22/2010 15:41 Fish*#43
use Guild.Name
09/23/2010 13:42 †he Knight §olari§#44
Hello Every1 !!
I'm n00b at C# , and i need a npc for it so if some1 can make it i would appericiate that , thanks
09/23/2010 13:54 .Beatz#45
Quote:
Originally Posted by †he Knight §olari§ View Post
Hello Every1 !!
I'm n00b at C# , and i need a npc for it so if some1 can make it i would appericiate that , thanks
No one will give you an NPC for this so please learn some programming first and then you will learn how to make it your self. There is a usefull "how to make a NPC" thread in my sig.