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".
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;
}
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.
[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