Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Conquer Online 2 › CO2 Private Server
You last visited: Today at 06:34

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

Advertisement



About SubClass Problem :rtfm:

Discussion on About SubClass Problem :rtfm: within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
wolf20100's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 35
Received Thanks: 1
About SubClass Problem :rtfm:

hi all i make Update 5730 and I get A Problem In Sup Class Luts See The Photos
When I Make A New Account The Sub Class Be Ready For A work Upg. Not Word Pro And When I Make It Level 9 The Swich Botton Hidden
This Photo Before Making Update


and I Try In It But I Under Stand This Before Update


And This Photo After Making Update 5730


And This After Update


I Need Any Help If He Small May Be Help Full But Dont Stop And Thx For Advanced

Is I Have A Problem In This File SubClass.cs
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Conquer_Online_Server.Interfaces;
using Conquer_Online_Server.Statement;

namespace 
Conquer_Online_Server.Network.GamePackets
{
    
#region Class Level
    
public class SubClassShowFull : Writer, Interfaces.IPacket
    
{
        public const 
byte
        SwitchSubClass 
= 0,
        
ActivateSubClass = 1,
        
LearnSubClass = 4,
        
ShowGUI = 7;

        
byte[] Buffer;
        public 
SubClassShowFull(bool Create)
        {
            if (
Create)
            {
                
Buffer = new byte[8 + 26];
                
WriteUInt16(26, 0, Buffer);
                
WriteUInt16(2320, 2, Buffer);
            }
        }

        public 
ushort ID
        
{
            
get { return BitConverter.ToUInt16(Buffer, 4); }
            
set { WriteUInt16(value, 4, Buffer); }
        }

        public 
byte Class
        {
            
get { return Buffer[6]; }
            
set { Buffer[6] = value; }
        }

        public 
byte Level
        
{
            
get { return Buffer[7]; }
            
set { Buffer[7] = value; }
        }

        public 
void Deserialize(byte[] buffer)
        {
            
this.Buffer = buffer;
        }

        public 
byte[] ToArray()
        {
            return 
Buffer;
        }

        public 
void Send(Client.GameState c)
        {
            
c.Send(Buffer);
        }
    }
    
#endregion
    #region Class Send
    
public class Game_SubClassInfo : IPacket
    
{
        private 
Byte[] mData;
        private 
Int32 Offset = 26;

        public 
Game_SubClassInfo(Game.Entity c, Game_SubClass.Types Type)
        {
            
this.mData = new Byte[26 + (c.SubClasses.Classes.Count * 3) + 8];
            
Writer.WriteUInt16((UInt16)(mData.Length - 8), 0, mData);
            
Writer.WriteUInt16((UInt16)2320, 2, mData);

            
Writer.WriteByte((Byte)Type, 4, mData);
            
Writer.WriteUInt16((UInt16)c.SubClasses.StudyPoints, 6, mData);
            
Writer.WriteUInt16((UInt16)c.SubClasses.Classes.Count, 22, mData);

            foreach (
Statement.SubClass subc in c.SubClasses.Classes.Values)
            {
                
Writer.WriteByte((Byte)subc.ID, Offset, mData); Offset++;
                
Writer.WriteByte((Byte)subc.Phase, Offset, mData); Offset++;
                
Writer.WriteByte((Byte)subc.Level, Offset, mData); Offset++;
            }
        }
        public 
void Deserialize(byte[] buffer)
        {
            
this.mData = buffer;
        }

        public 
byte[] ToArray()
        {
            return 
mData;
        }

        public 
void Send(Client.GameState c)
        {
            
c.Send(mData);
        }

    }
    public class 
Game_SubClass : IPacket
    
{
        private 
Byte[] mData;

        public 
Game_SubClass()
        {
            
this.mData = new Byte[29 + 8];
            
Writer.WriteUInt16((UInt16)(mData.Length - 8), 0, mData);
            
Writer.WriteUInt16((UInt16)2320, 2, mData);
        }

        public 
Types Type
        
{
            
get { return (Types)BitConverter.ToUInt16(mData, 4); }
            
set { Writer.WriteUInt16((Byte)value, 4, mData); }
        }
        public 
ID ClassId
        
{
            
get { return (ID)mData[6]; }
            
set { mData[6] = (Byte)value; }
        }
        public 
Byte Phase
        
{
            
get { return mData[7]; }
            
set { mData[7] = value; }
        }
        public 
void Deserialize(byte[] buffer)
        {
            
this.mData = buffer;
        }

        public 
byte[] ToArray()
        {
            return 
mData;
        }

        public 
void Send(Client.GameState c)
        {
            
c.Send(mData);
        }

        public 
enum Types : ushort
        
{
            Switch = 
0,
            
Activate = 1,
            
Upgrade = 2,
            
Learn = 4,
            
MartialPromoted = 5,
            
Show = 6,
            
Info = 7
        
}
        public 
enum ID : byte
        
{
            
None = 0,
            
MartialArtist = 1,
            
Warlock = 2,
            
ChiMaster = 3,
            
Sage = 4,
            
Apothecary = 5,
            
Performer = 6,
            
Wrangler = 9
        
}
    }
    public class 
SubClass : Writer, Interfaces.IPacket
    
{
        public const 
byte
        SwitchSubClass 
= 0,
        
ActivateSubClass = 1,
        
ShowSubClasses = 7,
        
MartialPromoted = 5,
        
LearnSubClass = 4;
        
Game.Entity Owner = null;

        
byte[] Buffer;
        
byte Type;
        public 
SubClass(Game.Entity E) { Owner = E; Type = 7; }

        public 
void Deserialize(byte[] buffer)
        {
            
this.Buffer = buffer;
        }

        public 
byte[] ToArray()
        {
            
Buffer = new byte[8 + 26 + (Owner.SubClasses.Classes.Count * 3)];
            
WriteUInt16((ushort)(Buffer.Length - 8), 0, Buffer);
            
WriteUInt16(2320, 2, Buffer);
            
WriteUInt16((ushort)Type, 4, Buffer);
            
WriteUInt16(Owner.SubClasses.StudyPoints, 6, Buffer);
            
WriteUInt16((ushort)Owner.SubClasses.Classes.Count, 22, Buffer);
            
int Position = 26;
            if (
Owner.SubClasses.Classes.Count > 0)
            {
                
Statement.SubClass[] Classes = new Statement.SubClass[Owner.SubClasses.Classes.Count];
                
Owner.SubClasses.Classes.Values.CopyTo(Classes, 0);
                foreach (
Statement.SubClass Class in Classes)
                {
                    
WriteByte(Class.ID, Position, Buffer); Position++;
                    
WriteByte(Class.Phase, Position, Buffer); Position++;
                    
WriteByte(Class.Level, Position, Buffer); Position++;
                }
            }
            
WriteString("TQServer", (Buffer.Length - 8), Buffer);
            return 
Buffer;
        }

        public 
void Send(Client.GameState c)
        {
            
c.Send(Buffer);
        }
    }
    
#endregion
} 
And Im So Sorry I Know I Ask About The Wrong Thing But Im Still Nop In This World And Im Try So Hard To Learn
XD:AboOsaama
wolf20100 is offline  
Old   #2
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,886
rtfm for C#
InfamousNoone is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 95
I just love retards who don't know what the smiley means.
Smaehtin is offline  
Thanks
1 User
Old   #4
 
wolf20100's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 35
Received Thanks: 1
But I Dont UnderStand What You Mean About "smiley means".
wolf20100 is offline  
Old   #5
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 95
Quote:
Originally Posted by wolf20100 View Post
But I Dont UnderStand What You Mean About "smiley means".
I don't think you understand anything
Smaehtin is offline  
Thanks
2 Users
Old   #6
 
2slam's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 586
Received Thanks: 337
smiley means for : D laughing :} smiling etc... About your problem i suppose you should update some offsets but i really hadnt tried.
2slam is offline  
Old   #7
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Offsets + 4 .. and its done .. length + 4 for sure
shadowman123 is offline  
Thanks
1 User
Old   #8
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 875
Received Thanks: 240
Quote:
Originally Posted by wolf20100 View Post
But I Dont UnderStand What You Mean About "smiley means".
if u used google to understand what he say u will know


Read the ****** manual

Quote:
Originally Posted by shadowman123 View Post
Offsets + 4 .. and its done .. length + 4 for sure
ty.
abdoumatrix is offline  
Thanks
1 User
Old   #9
 
wolf20100's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 35
Received Thanks: 1
Quote:
Originally Posted by abdoumatrix View Post
if u used google to understand what he say u will know


Read the ****** manual



ty.
Thx I Know Naw What He Means
wolf20100 is offline  
Old   #10
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 875
Received Thanks: 240
Quote:
Originally Posted by shadowman123 View Post
Offsets + 4 .. and its done .. length + 4 for sure
that is for 5730 or 5735?

cuz not working for 5730
i know that they add 1 uint at offset 4 for many packet 5735 is that was from patch 5370
abdoumatrix is offline  
Old   #11
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
thats the update for 5735
shadowman123 is offline  
Thanks
1 User
Old   #12
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 875
Received Thanks: 240
any one has it for 5730.
abdoumatrix is offline  
Reply


Similar Threads Similar Threads
:rtfm: Arbeitsspeicher (Ram) problem! :rtfm:
06/03/2012 - Technical Support - 8 Replies
Installierter arbeitsspeicher: 6,00 GB ( 2,41 GB Verwendbar) WARUM? HILFE!
[Problem]SubClass Ring Help
08/28/2010 - CO2 Private Server - 8 Replies
I right click. Do not wear rings Help Pls http://a.imageshack.us/img828/113/18076838.png
:rtfm::rtfm:ECSRO:rtfm::rtfm:
12/13/2009 - SRO Private Server - 14 Replies
Translate: I downloaded and installed servers Then, the Measure Is Not The Regi?? Who has a solution for the problem?? When Who Can Make me a ACC PN ME Deutsch:



All times are GMT +1. The time now is 06:34.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.