Register for your free account! | Forgot your password?

You last visited: Today at 16:37

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

Advertisement



reove dl

Discussion on reove dl within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
remove dl

anybody know whats wrong with the code?
It gives no errors, but it dont add them as member again.
Code:
                                    #region RemoveDeputize
                                    if (Control == 35)
                                    {
                                        if (GC.MyChar.MyGuild != null && GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader)
                                        {
                                            GC.AddSend(Packets.NPCSay("Insert the name of the player in your guild you want to remove from DeputyLeader."));
                                            GC.AddSend(Packets.NPCLink2("Here", 36));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You are not a guild leader."));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (Control == 36)
                                    {
                                        string PlayerName = ReadString(Data);
                                        Features.MemberInfo M = GC.MyChar.MyGuild.MembOfName(PlayerName);
                                            if (M.Rank == NewestCOServer.Features.GuildRank.DeputyManager && M.MembName == PlayerName) 
                                            {
                                                M.Rank = NewestCOServer.Features.GuildRank.Member;
                                                ((Hashtable)GC.MyChar.MyGuild.Members[(byte)90]).Remove(M.MembID);
                                                ((Hashtable)GC.MyChar.MyGuild.Members[(byte)50]).Add(M.MembID, M);
                                                Game.Character C = M.Info;
                                                    C.GuildRank = NewestCOServer.Features.GuildRank.Member;
                                                    Game.World.Spawn(C, false);
                                                    C.MyClient.AddSend(Packets.GuildInfo(GC.MyChar.MyGuild, GC.MyChar));
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("The player is not in your guild or is not deputy."));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    #endregion
.Summer is offline  
Old 06/12/2010, 20:53   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
What about after they relog?
Arcо is offline  
Old 06/12/2010, 21:49   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
they are still assigned as dl :S

#sorry for wrong spell at title reove = remove*
.Summer is offline  
Old 06/12/2010, 22:24   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
And what about when the server is restarted?
Cause remember, all guild info is saved in Guilds.dat
Arcо is offline  
Old 06/12/2010, 22:28   #5
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Haven't tried
I will let you know when i try
.Summer is offline  
Old 06/12/2010, 22:30   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Alright.
always got to remember how certain things are saved.
Arcо is offline  
Reply




All times are GMT +1. The time now is 16:38.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.