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

09/29/2011 10:51 somecode#1
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[8 + 28];
                
WriteUInt16(28, 0, Buffer);
                
WriteUInt16(1107, 2, Buffer);
            }
        }

        public 
uint Type
        
{
            
get { return BitConverter.ToUInt32(Buffer, 4); }
            
set { WriteUInt32(value, 4, Buffer); }
        }

        public 
uint dwParam
        
{
            
get { return BitConverter.ToUInt32(Buffer, 8); }
            
set { WriteUInt32(value, 8, Buffer); }
        }
        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(Buffer, 26, Buffer[25]);
            }
            
set
            
{
                
byte[] Saved = Buffer;
                
this.Buffer = new byte[28 + 8 + value.Length];
                if (
Saved != null) Saved.CopyTo(Buffer, 0);
                
WriteUInt16((ushort)(Buffer.Length - 8), 0, Buffer);
                
WriteUInt16(1107, 2, Buffer);
                
Buffer[25] = (byte)value.Length;
                
WriteString(value, 26, Buffer);
            }
        }

        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??
[Only registered and activated users can see links. Click Here To Register...]
09/30/2011 17:17 somecode#2
ANY ONE CAN HELP THIS ?