|
You last visited: Today at 12:17
Advertisement
Save Guild Enemies/Allies
Discussion on Save Guild Enemies/Allies within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
08/31/2010, 14:40
|
#31
|
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
|
Quote:
Originally Posted by ☆★Zuper★☆
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
|
#32
|
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
|
Quote:
Originally Posted by mattyc2580
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
|
#33
|
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
|
Good Job , Even i dont like you i respect some of ur relases
|
|
|
09/21/2010, 22:43
|
#34
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
Quote:
Originally Posted by JuiceDCodeR
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.
|
|
|
09/21/2010, 23:04
|
#35
|
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
|
Quote:
Originally Posted by Fish*
serious, u got no reason to hate on arco.
he aint flaming u, or talking bad to u.
|
I didn't say that I hate him , I just Don't like him ..
He has all my respect for some of his Threads..
|
|
|
09/22/2010, 03:06
|
#36
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
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
|
#37
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Yup, you need to add it to the dictionary yourself.
|
|
|
09/22/2010, 03:09
|
#38
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
Lol, how?
|
|
|
09/22/2010, 03:19
|
#39
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by peterpiper99
Lol, how?
|
Gc.Mychar.myguild.allies.add(uint, string);
|
|
|
09/22/2010, 12:20
|
#40
|
elite*gold: 0
Join Date: Dec 2009
Posts: 87
Received Thanks: 2
|
Tanel source where the source
|
|
|
09/22/2010, 12:25
|
#41
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
in sticky threads
|
|
|
09/22/2010, 14:57
|
#42
|
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
|
|
|
|
09/22/2010, 15:41
|
#43
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
|
use Guild.Name
|
|
|
09/23/2010, 13:42
|
#44
|
elite*gold: 0
Join Date: Sep 2010
Posts: 13
Received Thanks: 0
|
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
|
#45
|
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
|
Quote:
Originally Posted by †he Knight §olari§
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.
|
|
|
|
|
Similar Threads
|
[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);
...
|
allies and enemies
03/31/2010 - CO2 Private Server - 1 Replies
Anybody know if Guild Allie and Enemy code is released for LOTF?
The status are added, but not codes for npc.
And im to lazy to make it, so if is not released ill just leave it untill i got time to make it ^^
Thanks
|
[Help]Guild Allies
02/14/2010 - CO2 Private Server - 9 Replies
could someone help me with allies this is what i have so far
if (MyChar.GuildPosition == 100)
{
if (MyChar.MyGuild.Allies.Count <= 6)
{
string Allies = "";
for (int i = 14; i < 14 + Data; i++)
{
Allies +=...
|
[Question]Guild Allies
02/02/2010 - CO2 Private Server - 0 Replies
could someone help me with adding allies
its for 5017
|
guild and allies
12/29/2007 - CO2 Weapon, Armor, Effects & Interface edits - 0 Replies
hi all
i was thinking
does anyone know if its possible to make allie colors yellow and guild green
cause i like the green more
grtz
|
All times are GMT +2. The time now is 12:17.
|
|