Register for your free account! | Forgot your password?

You last visited: Today at 10:17

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


Guild Name

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,524
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
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,139
You have to send the guild data packet for that guild ID first.


Zeroxelli is offline  
Old 06/21/2012, 04:05   #3
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,524
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
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,139
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
WTS Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys for sale
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...
4 Replies - Guild Wars Trading
WTS - Guild wars account Proph/Factions/NF/Eotn 1 6.99 Costume Guild[Full GH]
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...
1 Replies - Guild Wars Trading



All times are GMT +2. The time now is 10:17.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.