Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 08:24

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

Advertisement



[HELP]How to Change Guild to Squad

Discussion on [HELP]How to Change Guild to Squad within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
[HELP]How to Change Guild to Squad

So my server is based off of the Anime "Bleach" And I want to make it more like "Bleach" So how do I tweak it so when people make a guild instead of making a random name they Create EX: "Squad 11" instead of EX: "Cookies" I had it going before thanks to I think the name was Toshiro Something he did it for me and it worked but I lost the source so I moved to 5165 so how would I do all that with 5165.

Thanks your help is Appreciated.
shadow8994 is offline  
Old 10/10/2010, 15:13   #2
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
basically, u would have to change everything that says "Guild Leader" to "Squad Leader" and also the client-sided files( I think). but, I, wouldn't know how to do that
killersub is offline  
Old 10/10/2010, 21:32   #3
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Alight =) Thanks I'll try it
shadow8994 is offline  
Old 10/10/2010, 21:46   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
client\ini\strres.ini has the Guild Leader / Deputy Leader strings in it.

Change it to whatever you want
_tao4229_ is offline  
Old 10/10/2010, 21:50   #5
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Well I changed all the "Guild" Stuff to "Squad" but people can still Put random names down like "Cookies" I need them to say "Squad(Random Number)" when they make it Help =(
shadow8994 is offline  
Old 10/10/2010, 21:56   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,775
Received Thanks: 5,296
Quote:
Originally Posted by shadow8994 View Post
Well I changed all the "Guild" Stuff to "Squad" but people can still Put random names down like "Cookies" I need them to say "Squad(Random Number)" when they make it Help =(
Thats not client sided then. When they make the guild, just make the guild
director take away the 1kk silver, then make
public Random rnd = new Random();

guild name Squad rnd.Next(1, 50);

Get it?
Arcо is offline  
Old 10/10/2010, 22:03   #7
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Quote:
Originally Posted by Аrco View Post
Thats not client sided then. When they make the guild, just make the guild
director take away the 1kk silver, then make
public Random rnd = new Random();

guild name Squad rnd.Next(1, 50);

Get it?

I'll try thats now and get back to you.


Edit:

I tryed what you said but I get 1 error guild name Squad rnd.Next(1, 50);
It says Type Expected Help =P
shadow8994 is offline  
Old 10/10/2010, 23:01   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,775
Received Thanks: 5,296
Like when they say yes they wanna make a guild, do this

Random rnd = new Random();
GC.MyChar.MyGuild.Name = "Squad" +rnd.Next(1,50);
Get it? So it adds a random number to the string "Squad", then make sure the guild name isn't taken, if it is, then loop through it again.
Arcо is offline  
Old 10/10/2010, 23:20   #9
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Quote:
Originally Posted by Аrco View Post
Like when they say yes they wanna make a guild, do this

Random rnd = new Random();
GC.MyChar.MyGuild.Name = "Squad" +rnd.Next(1,50);
Get it? So it adds a random number to the string "Squad", then make sure the guild name isn't taken, if it is, then loop through it again.
Ok let me try

Edit:

I need a bit of help =P Add my msn =( sorry But I'm dumb when it comes to this i'll keep trying though till I talk to you.
shadow8994 is offline  
Old 10/11/2010, 02:05   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,775
Received Thanks: 5,296
Post your guild npc here.
Arcо is offline  
Old 10/11/2010, 03:27   #11
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Quote:
Originally Posted by Аrco View Post
Post your guild npc here.
Sorry Went to Church Here you go



Code:
#region Squad NPC
                            case 10003:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello.I create and manage Squads in the Society. So what do you want to do?"));
                                        GC.AddSend(Packets.NPCLink("Create Squad", 1));
                                        GC.AddSend(Packets.NPCLink("Add ViceCaptain", 3));
                                        GC.AddSend(Packets.NPCLink("Disband my Squad", 5));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    #region Create
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.MySquad == null)
                                        {
                                            GC.AddSend(Packets.NPCSay("I don't know why, but you have to be level 95 or higher and need 1 million silvers to create one."));
                                            GC.AddSend(Packets.NPCLink2("Create", 2));
                                            GC.AddSend(Packets.NPCLink("No, i changed my mind.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You are already in a Squad. You cannot create a Squad."));
                                            GC.AddSend(Packets.NPCLink("Oh, i forgot...", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 2)
                                    {
                                        if (GC.MyChar.Level >= 95 && GC.MyChar.MySquad == null)
                                        {
                                            if (GC.MyChar.Silvers >= 1000000)
                                            {
                                                string SquadName = ReadString(Data);
                                                if (Features.Squads.ValidName(SquadName))
                                                {
                                                    GC.MyChar.Silvers -= 1000000;
                                                    ushort NewSquadID = (ushort)Rnd.Next(ushort.MaxValue);
                                                    while (Features.Squads.AllTheSquads.Contains(NewSquadID))
                                                        NewSquadID = (ushort)Rnd.Next(ushort.MaxValue);
                                                    Features.Squads.CreateNewSquad(SquadName, NewSquadID, GC.MyChar);
                                                    Game.World.Spawn(GC.MyChar, false);

                                                    GC.AddSend(Packets.SquadInfo(GC.MyChar.MySquad, GC.MyChar));
                                                    GC.AddSend(Packets.String(GC.MyChar.MySquad.SquadID, (byte)Game.StringType.SquadName, GC.MyChar.MySquad.SquadName));

                                                    GC.AddSend(Packets.NPCSay("Congratulations! You now have your own Squad."));
                                                    GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("Choose another name, this name is taken or has invalid length."));
                                                    GC.AddSend(Packets.NPCLink2("Create", 2));
                                                    GC.AddSend(Packets.NPCLink("I changed my mind.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("I said you need 1 Million Silvers and you don't have enough."));
                                                GC.AddSend(Packets.NPCLink("Ok ok, i'll go bring the money.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Forget it! You're too weak."));
                                            GC.AddSend(Packets.NPCLink("Alright, I will get stronger.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    #endregion
                                    #region ViceCaptains
                                    else if (Control == 3)
                                    {
                                        if (GC.MyChar.MySquad != null && GC.MyChar.SquadRank == SoulSocietyCoServer.Features.SquadRank.SquadLeader)
                                        {
                                            GC.AddSend(Packets.NPCSay("Insert the name of the player in your Squad you want to make a ViceCaptain."));
                                            GC.AddSend(Packets.NPCLink2("There", 4));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You are not a Squad Captain."));
                                            GC.AddSend(Packets.NPCLink("Ohhh...", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 4)
                                    {
                                        string PlayerName = ReadString(Data);
                                        Features.MemberInfo M = GC.MyChar.MySquad.MembOfName(PlayerName);
                                        if (M != null && M.MembName == PlayerName && ((Hashtable)GC.MyChar.MySquad.Members[(byte)90]).Count < 5)
                                        {
                                            M.Rank = SoulSocietyCoServer.Features.SquadRank.DeputyManager;
                                            ((Hashtable)GC.MyChar.MySquad.Members[(byte)50]).Remove(M.MembID);
                                            ((Hashtable)GC.MyChar.MySquad.Members[(byte)90]).Add(M.MembID, M);
                                            Game.Character C = M.Info;
                                            if (C != null)
                                            {
                                                C.SquadRank = SoulSocietyCoServer.Features.SquadRank.DeputyManager;
                                                Game.World.Spawn(C, false);
                                                C.MyClient.AddSend(Packets.SquadInfo(GC.MyChar.MySquad, GC.MyChar));
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("The player is not in your Squad or is not a normal member. By the way, the max number ViceCaptains there can be is 5."));
                                            GC.AddSend(Packets.NPCLink("Oh, sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    #endregion
                                    else if (Control == 5)
                                    {
                                        if (GC.MyChar.MySquad != null && GC.MyChar.SquadRank == SoulSocietyCoServer.Features.SquadRank.SquadLeader)
                                        {
                                            GC.AddSend(Packets.NPCSay("Are you sure you want to disband your Squad?"));
                                            GC.AddSend(Packets.NPCLink("Yes, I want to disband my Squad.", 6));
                                            GC.AddSend(Packets.NPCLink("I've changed my mind.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You are not a Squad Captain, therefore you cannot disband this Squad."));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 6)
                                    {
                                        if (GC.MyChar.MySquad != null && GC.MyChar.SquadRank == SoulSocietyCoServer.Features.SquadRank.SquadLeader)
                                        {
                                            GC.MyChar.MySquad.Disband();
                                        }
                                    }
                                    break;
                                }
                            #endregion
shadow8994 is offline  
Old 10/11/2010, 03:50   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,775
Received Thanks: 5,296
Change control 1 with this
PHP Code:
                                    else if (Control == 1)
                                    {
                                        if (
GC.MyChar.MySquad == null)
                                        {
                                            
GC.AddSend(Packets.NPCSay("I don't know why, but you have to be level 95 or higher and need 1 million silvers to create one."));
                                            
GC.AddSend(Packets.NPCLink("Create"2));
                                            
GC.AddSend(Packets.NPCLink("No, i changed my mind."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You are already in a Squad. You cannot create a Squad."));
                                            
GC.AddSend(Packets.NPCLink("Oh, i forgot..."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    } 
replace control2 with
PHP Code:
else if (Control == 2)
                                    {
                                        if (
GC.MyChar.Level >= 95 && GC.MyChar.MySquad == null)
                                        {
                                            if (
GC.MyChar.Silvers >= 1000000)
                                            {
                                                
String SquadName "Squad" Rnd.Next(150);
                                                while()
                                                if (
Features.Squads.ValidName(SquadName))
                                                {
                                                    
GC.MyChar.Silvers -= 1000000;
                                                    
ushort NewSquadID = (ushort)Rnd.Next(ushort.MaxValue);
                                                    while (
Features.Squads.AllTheSquads.Contains(NewSquadID))
                                                        
NewSquadID = (ushort)Rnd.Next(ushort.MaxValue);
                                                    
Features.Squads.CreateNewSquad(SquadNameNewSquadIDGC.MyChar);
                                                    
Game.World.Spawn(GC.MyCharfalse);

                                                    
GC.AddSend(Packets.SquadInfo(GC.MyChar.MySquadGC.MyChar));
                                                    
GC.AddSend(Packets.String(GC.MyChar.MySquad.SquadID, (byte)Game.StringType.SquadNameGC.MyChar.MySquad.SquadName));

                                                    
GC.AddSend(Packets.NPCSay("Congratulations! You now have your own Squad."));
                                                    
GC.AddSend(Packets.NPCLink("Thanks."255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    
GC.AddSend(Packets.NPCSay("Choose another name, this name is taken or has invalid length."));
                                                    
GC.AddSend(Packets.NPCLink("Create"2));
                                                    
GC.AddSend(Packets.NPCLink("I changed my mind."255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                            else
                                            {
                                                
GC.AddSend(Packets.NPCSay("I said you need 1 Million Silvers and you don't have enough."));
                                                
GC.AddSend(Packets.NPCLink("Ok ok, i'll go bring the money."255));
                                                
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                
GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("Forget it! You're too weak."));
                                            
GC.AddSend(Packets.NPCLink("Alright, I will get stronger."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    
#endregion 
Arcо is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[TuT] How to Change your own Guild Mark with a Modified One.
01/29/2021 - Grand Chase Philippines - 12 Replies
Hi to you all guys. I`m posting a TuT how to change your Guild Mark of your Guild or changing the Guild Mark of your enemy Guild. :D Note: You can do this even you are not a Guild Master and when you see you`re other Guild Mates, you can see your modified Guild Mark. 1. Search or make your own Modified Guild Mark and must be 32x32. 2. Patch your Grand Chase Client. 3. After that it is full patched, go to your Guild Mark folder in your Grand Chase Folder. 4. Search for you`re Guild Mark...
Does any one know how to change guild text?
02/12/2010 - Archlord - 0 Replies
Does any one know how to change guild text?:cool: I want to make guild pvp text smaller....... The big text is not good for my eyes :-)
Is there a way Change Guild war times?
01/29/2010 - CO2 Private Server - 7 Replies
Im kinda newb at this still would like some help, was kinda wondering if theres anyway to change the guildwar times im still relatively new to the whole coding situatuation but i wanna turn guild war on and its bugging me i cant figure out how any help would be very appreciated.:(
How to change 'Guild Leader'
08/01/2009 - CO2 Private Server - 3 Replies
Alright, i'm making the 'clan' system. I kind of have it made, because i mostly made it from the guild, but it can't find out how to change 'guild leader' to 'clan leader'. i searched 'guild leader' in my source in entire source, there is nothing. any help?
how to change guild leader after ban ?
05/29/2007 - Silkroad Online - 3 Replies
hey guys i have a question ... im banned on olympus at lvl 72 -.-* but dosnt metter can some1 tell me how i can change the guild leader now ? and how long i have to wait till i can vote for one ?



All times are GMT +1. The time now is 08:24.


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.