Register for your free account! | Forgot your password?

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

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

Advertisement



Urgent help inneed please.

Discussion on Urgent help inneed please. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
diedwarrior's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
Urgent help inneed please.

Well, i've got a bug hope any of you can fix it.
Simply if you send two joinrequest to someone's guild and he doesnt press ok/cancel you auto get in guild.
Same with invite request
heres the code
Code:
 case GuildCommand.JoinRequest:
                                {
                                    if (ServerBase.Kernel.GamePool.ContainsKey(command.dwParam))
                                    {
                                        var Client = ServerBase.Kernel.GamePool[command.dwParam];
                                        if (Client.OnHoldGuildJoin == client.OnHoldGuildJoin && Client.OnHoldGuildJoin != 0)
                                        {
                                            if (Client.Guild != null)
                                            {
                                                if (Client.AsMember.Rank != Conquer_Online_Server.Game.Enums.GuildMemberRank.Member)
                                                {
                                                    Client.Guild.AddMember(client);
                                                    Client.OnHoldGuildJoin = 0;
                                                    client.OnHoldGuildJoin = 0;
                                                }
                                            }
                                            else
                                            {
                                                if (client.AsMember != null) if (client.AsMember.Rank != Conquer_Online_Server.Game.Enums.GuildMemberRank.Member)
                                                    {
                                                        client.Guild.AddMember(Client);
                                                        Client.OnHoldGuildJoin = 0;
                                                        client.OnHoldGuildJoin = 0;
                                                    }
                                            }
                                            return;
                                        }
                                        if (client.Guild == null)
                                        {
                                            command.dwParam = client.Entity.UID;
                                            Client.Send(command);
                                            Client.OnHoldGuildJoin = (uint)new Random().Next();
                                            client.OnHoldGuildJoin = Client.OnHoldGuildJoin;
                                        }
                                    }
                                    break;
                                }
                            case GuildCommand.InviteRequest:
                                {
                                    if (ServerBase.Kernel.GamePool.ContainsKey(command.dwParam))
                                    {
                                        var Client = ServerBase.Kernel.GamePool[command.dwParam];
                                        if (Client.OnHoldGuildJoin == client.OnHoldGuildJoin && Client.OnHoldGuildJoin != 0)
                                        {
                                            if (Client.Guild != null)
                                            {
                                                if (Client.AsMember.Rank != Conquer_Online_Server.Game.Enums.GuildMemberRank.Member)
                                                {
                                                    Client.Guild.AddMember(client);
                                                    Client.OnHoldGuildJoin = 0;
                                                    client.OnHoldGuildJoin = 0;
                                                }
                                            }
                                            else
                                            {
                                                if (client.AsMember.Rank != Conquer_Online_Server.Game.Enums.GuildMemberRank.Member)
                                                {
                                                    client.Guild.AddMember(Client);
                                                    Client.OnHoldGuildJoin = 0;
                                                    client.OnHoldGuildJoin = 0;
                                                }
                                            }
                                            return;
                                        }
                                        if (client.Guild != null)
                                        {
                                            command.dwParam = client.Entity.UID;
                                            Client.Send(command);
                                            Client.OnHoldGuildJoin = (uint)new Random().Next();
                                            client.OnHoldGuildJoin = Client.OnHoldGuildJoin;
                                        }
                                    }
                                    break;
                                }
Simply what i wanna do it create a thingy like
If Client.Invited == 0
Thats it, can any one help me ?

Can some mode remove this ? i doubleposted by mistake.
diedwarrior is offline  
Old 10/13/2011, 12:13   #2
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Client.OnHoldGuildJoin = (uint)new Random().Next();
Why'd you make it random? Just use 1, unless it really have to be random for a reason.

This is where the problem occure, right?
if (Client.OnHoldGuildJoin == client.OnHoldGuildJoin && Client.OnHoldGuildJoin != 0)

Try change
Client.OnHoldGuildJoin != 0
To
Client.OnHoldGuildJoin > 0

Not that I think it will do much.
BaussHacker is offline  
Old 10/13/2011, 12:18   #3
 
diedwarrior's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
I already tried that once, same bug .
diedwarrior is offline  
Old 10/13/2011, 23:41   #4
 
elite*gold: 0
Join Date: Sep 2011
Posts: 40
Received Thanks: 8
try this
Code:
     if (Client.OnHoldGuildJoin == null)
                                    {
                                        return;
DontSpeakToMe is offline  
Reply


Similar Threads Similar Threads
URGENT-URGENT -LEAD PLS
08/31/2011 - Metin2 Private Server - 0 Replies
Guys I bought a dedicate yesterday but i don't know how to put my metin2 server inside of it! I pay if someone help me!!! skype: synxsoft msn: [email protected]
Urgent lol
05/03/2011 - General Gaming Discussion - 0 Replies
I need a Multiplayer Hack for company of heroes... Mainly Maphack. Can you help me thx.
Help me please. URGENT
04/14/2011 - EO PServer Hosting - 2 Replies
Type I tou creating a converter filled balloons in pack of 10 so that the drive is erasing empty ball I created so ID ID_NEXT ID_NEXTFAIL TYPE DATA PARAM 1 2 0 503 830000 But in this case there if I repeat 10 times he will get the same item 10 times, empty and full could someone help me? wanted to learn it :(:(:(:(:(:(:(:(
URGENT! ALL SPEEDHACKERS URGENT!
04/25/2007 - Eudemons Online - 9 Replies
Hi everyone. I am an avid player of Eudemons Online and the first time i discovered AndyX's speedhack i was so happy beyond describing. About 2 weeks ago, i got caught but i got off without paying. Then 1 week ago, i was caught for the second time and i tried pretending innocent so i didnt have to pay the fee of 2760 eps to get out but this time the gm told me i was speedhacking and the location+time. all the speedhackers are slowly starting to be botjailed and this is a warning to every1....



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


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.