Register for your free account! | Forgot your password?

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

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

Advertisement



Guild Promote Question?????help me pls!

Discussion on Guild Promote Question?????help me pls! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 105
Received Thanks: 9
Guild Promote Question?????help me pls!

this is the packet struct!!!
PHP Code:
public const uint
                    JoinRequest 
1,
                    
InviteRequest 2,
                    
Quit 3,
                    
Info 6,
                    
Allied 7,
                    
Neutral1 8,
                    
Enemied 9,
                    
Neutral2 10,
                    
DonateSilvers 11,
                    
Refresh 12,
                    
Disband 19,
                    
DonateConquerPoints 20,
                    
Bulletin 27,
                    
Discharge 30,
                    
Promote 37;

        private 
byte[] Buffer;
        private 
string _string;
        public 
GuildCommand(bool Create)
        {
            if (
Create)
            {
                
Buffer = new byte[28];
                
WriteUInt16(280Buffer);
                
WriteUInt16(11072Buffer);
            }
        }

        public 
uint Type
        
{
            
get { return BitConverter.ToUInt32(Buffer4); }
            
set WriteUInt32(value4Buffer); }
        }

        public 
uint dwParam
        
{
            
get { return BitConverter.ToUInt32(Buffer8); }
            
set WriteUInt32(value8Buffer); }
        }
        public 
byte ReqLevel
        
{
            
get { return Buffer[12]; }
            
set Buffer[12] = value; }
        }
        public 
byte ReqReborn
        
{
            
get { return Buffer[16]; }
            
set Buffer[16] = value; }
        }
        public 
byte ReqClass
        
{
            
get { return Buffer[20]; }
            
set Buffer[20] = value; }
        }
        public 
byte SecundaryType
        
{
            
get { return Buffer[24]; }
            
set Buffer[24] = value; }
        }
        public 
string String
        
{
            
get
            
{
                return 
Encoding.ASCII.GetString(Buffer26Buffer[25]);
            }
            
set
            
{
                
byte[] Saved Buffer;
                
this.Buffer = new byte[28 value.Length];
                if (
Saved != nullSaved.CopyTo(Buffer0);
                
WriteUInt16((ushort)(Buffer.Length 8), 0Buffer);
                
WriteUInt16(11072Buffer);
                
Buffer[25] = (byte)value.Length;
                
WriteString(value26Buffer);
            }
        }

        public 
void Deserialize(byte[] Data)
        {
            
Buffer Data;
        }

        public 
byte[] ToArray()
        {
            return 
Buffer;
        }
        public 
void Send(Client.GameState client)
        {
            
client.Send(Buffer);
        } 
and this is the handle code.
PHP Code:
case GuildCommand.Promote:
                                 {
                                     if (
client.Guild != null)
                                     {
                                         if (
client.AsMember.Rank == Conquer_Online_Server.Game.Enums.GuildMemberRank.GuildLeader)
                                         {
                                             
command = new GuildCommand(true);
                                             
command.Type 37;
                                             
command.SecundaryType 2;
                                             
string total "1000 1 1 0 0.990 0 2 0 0.980 0 1 0 650.880 0 1 0 320.8 40 0 1 0 270.680 0 1 0 100.602 0 2 0 0";
                                             
command.String total;
                                             
client.Send(command);
 }
                                     }
                                     break;
                                 } 
and this is the question!!!
why client only show one option
where did my code wrong??
somecode is offline  
Old 09/30/2011, 17:17   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 105
Received Thanks: 9
ANY ONE CAN HELP THIS ?
somecode is offline  
Reply


Similar Threads Similar Threads
[How To] Fix 2010er SF Guild War Bug [Question]
02/12/2011 - Metin2 Private Server - 7 Replies
Hi, can not go to the guild war map and war ends in a draw What is the name of the map name in map folder ? This is a serious problem.. Award :
[Question]Guild Allies
02/02/2010 - CO2 Private Server - 0 Replies
could someone help me with adding allies its for 5017
i need a guild... and i have a question for you all
04/10/2008 - SRO Private Server - 1 Replies
hey i need a guild.. anyone ? pls.. im lvl 35:( i would be like 45 if i wasnt farming... i started at lvl 31 and im getting to lvl 38 so i can have a lvl 7 gap :) does anyone think this is a good idea? and yes i know i should have farmed when i was a low lvl.. but i forgot and so yea... should i keep doing this? or just try to keep a 0 gap
Guild Wars Question
12/17/2006 - Guild Wars - 1 Replies
Hi my brother bought guild wars and have a account with the activation Key i wanna play GW on this PC 2. Must ii buy guildwars again to play it for 2 Pcs? i am a noob i know :cry:
Guild Leader Question
03/08/2006 - Conquer Online 2 - 12 Replies
hey everyone. ive got a really wierd question. i remember reading/hearing from somewhere that if a GL isnt active for a month or something, a guild member could donate 100k to the guild to become GL? does anyone know the details of this (how long, how much) and where and how to do it? thanks a lot guys! shadowHacker



All times are GMT +1. The time now is 00:13.


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