Register for your free account! | Forgot your password?

You last visited: Today at 18:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Guild Name

Discussion on Guild Name within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Guild Name

Well once i login if any player in my screen in guild ..it doesnt show me his guild name whats the problem ?

shadowman123 is offline  
Old 06/21/2012, 03:56   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,142
You have to send the guild data packet for that guild ID first.
Zeroxelli is offline  
Old 06/21/2012, 04:05   #3
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by Zeroxelli View Post
You have to send the guild data packet for that guild ID first.
Guild Data packet ?? Do u mean packet 1106 ?
shadowman123 is offline  
Old 06/21/2012, 05:17   #4
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,142
Quote:
Originally Posted by shadowman123 View Post
Guild Data packet ?? Do u mean packet 1106 ?
Yes. And if I remember right, you also have to send a string packet corresponding to whether the guild is neutral, enemy, or ally. If you don't do that, the client won't know what color to make the name.

Edit: You send the ally/enemy info on login. Here's what I sent when a character logged on in my old 4274 source (might be buggy..)

Code:
        public static void SendGuildInfo(EndClient Client)
        {
            if (Client.Char.Guild == 0)
            {
                Client.Send(GamePackets.Guild(Client));
                return;
            }
            if (Pool.ContainsKey(Client.Char.Guild))
            {
                Guild MyGuild = Pool[Client.Char.Guild];
                Client.Send(GamePackets.Guild(Client));
                Client.Send(GamePackets.String(MyGuild.GuildID, MyGuild.Name, (int)StringType.GuildName));
                Client.Send(GamePackets.Chat(Convert.ToString(MyGuild.GuildID), Client.Char.Name, MyGuild.Bulletin, 0, ChatType.GuildBulletin));

                foreach (Guild G in Pool.Values)
                {
                    if (G.GuildID != Client.Char.Guild)
                    {
                        Client.Send(GamePackets.GuildData(GuildType.Neutral, G.GuildID));

                        if (MyGuild.EnemyList.Contains(G.GuildID))
                        {
                            Guild EnemyGuild = Pool[G.GuildID];
                            Client.Send(GamePackets.String(G.GuildID, EnemyGuild.Name, (int)StringType.GuildEnemies));
                            Client.Send(GamePackets.GuildData(GuildType.Enemied, G.GuildID));
                        }

                        if (MyGuild.AllyList.Contains(G.GuildID))
                        {
                            Guild AllyGuild = Pool[G.GuildID];
                            Client.Send(GamePackets.String(G.GuildID, AllyGuild.Name, (int)StringType.GuildAllies));
                            Client.Send(GamePackets.GuildData(GuildType.Allied, G.GuildID));
                        }
                    }
                }
            }
        }
Edit: Also, obviously, it would have been better to loop through the ally list and enemy list instead of the whole pool, but I wasn't too bright back then.
Zeroxelli is offline  
Reply


Similar Threads Similar Threads
WTS Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys for sale
02/19/2013 - Guild Wars Trading - 4 Replies
Hi, i want to sell Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys.If someone is interested , you can email me and add my msn. We can talk details there. I will give u a low price of Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys including weapons. I am serious. Email:[email protected] MSN:[email protected] Thank you for reading my post.
WTS - Guild wars account Proph/Factions/NF/Eotn 1 £6.99 Costume Guild[Full GH]
02/17/2011 - Guild Wars Trading - 1 Replies
Includes Proph/factions/NF/Eotn Guild /1 6.99 costume/1 Lvl 20 ranger It is NCsoft Registerd and i do not use it anymore. I need ingame Ecto's around 80-100 for it no irl money Comment below or Pm me ingame: Sure shot babe



All times are GMT +2. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.