Register for your free account! | Forgot your password?

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

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

Advertisement



hel whit subclass 5375

Discussion on hel whit subclass 5375 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
rockymiperro's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 95
Received Thanks: 2
hel whit subclass 5375

good I have a problem with sub classes when I take a class I get everything right but when I disconnect and re-entered the helper class is disappearing
look at this first photo appear with Level 1 sub class



and in this second picture off me and went back inside and I have no sub class need help please



this is my database of subclass what i need?

PHP Code:
using System;
using Conquer_Online_Server.Game;

namespace 
Conquer_Online_Server.Database
{
    public class 
SubClassTable
    
{
        public static 
void Load(Entity Entity)
        {
            
MySqlCommand Command = new MySqlCommand(MySqlCommandType.SELECT);
            
Command.Select("subclasses").Where("id"Entity.UID);
            
MySqlReader Reader = new MySqlReader(Command);
            while (
Reader.Read())
            {
                
Statement.SubClass Sub = new Statement.SubClass();
                
Sub.ID Reader.ReadByte("uid");
                
Sub.Level Reader.ReadByte("level");
                
Sub.Phase Reader.ReadByte("phase");
                
Entity.SubClasses.Class(Sub.IDSub);
            }
        }

        public static 
bool Contains(Entity Entitybyte id)
        {
            
bool Return = false;
            
MySqlCommand Command = new MySqlCommand(MySqlCommandType.SELECT);
            
Command.Select("subclasses").Where("id"Entity.UID).And("uid"id);
            
MySqlReader Reader = new MySqlReader(Command);
            if (
Reader.Read())
            {
                if (
Reader.ReadByte("uid") == id)
                if (
Reader.ReadByte("level") == id)
                if (
Reader.ReadByte("phase") == id)
                    Return = 
true;
            }

            return Return;
        }

        public static 
void Insert(Entity Entitybyte id)
        {
            
MySqlCommand Command = new MySqlCommand(MySqlCommandType.INSERT);
            
Command.Insert("subclasses")
                .
Insert("uid"id)
                .
Insert("id"Entity.UID)
                .
Execute();
        }

        public static 
void Update(Entity EntityStatement.SubClass SubClass)
        {
            
MySqlCommand Command = new MySqlCommand(MySqlCommandType.UPDATE);
            
Command.Update("subclasses")
                .
Set("phase"SubClass.Phase)
                .
Set("level"SubClass.Level)
                .
Where("id"Entity.UID)
                .And(
"uid"SubClass.ID)
                .
Execute();
        }

        public static 
void Update(Entity Entity)
        {
            
MySqlCommand Command = new MySqlCommand(MySqlCommandType.UPDATE);
            
Command.Update("entities")
                .
Set("StudyPoints"Entity.SubClasses.StudyPoints)
                .
Where("UID"Entity.UID)
                .
Execute();
        }
    }
           

its for versio 5375
rockymiperro is offline  
Old 06/07/2011, 07:14   #2
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Learn C# and do it yourself. super lol!!!
thesamuraivega is offline  
Old 06/07/2011, 07:25   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Check your loading and saving of your Entity or your SubClassTable be sure that after you get subclass entity will save and when you log on back besure to load it back your subclass

it goes like this:
Flor Loading
Quote:
Public static void LoadEntity................
{
existing code here
.
.
client.Entity.Subclass = r.ReadUInt32("SubClass"),
client.Entity.Subclasslevel = r.ReadUInt32("Subclasslevel)
r.close();
SubClassTable.Load(client.Entity);
for saving..... You Figure that out how to save....



something like that... dont jus't copy and paste that, be sure to figure it out okay...
marlyandedsel is offline  
Old 06/09/2011, 07:15   #4
 
rockymiperro's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 95
Received Thanks: 2
please chek my database of subclass and tell me what i need?
rockymiperro is offline  
Old 06/09/2011, 10:08   #5
 
rockymiperro's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 95
Received Thanks: 2
fixed close this ;D
rockymiperro is offline  
Old 06/10/2011, 23:47   #6
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
Can you tell me The Slove of thi pro
|xabi| is offline  
Reply


Similar Threads Similar Threads
WTT ISRO whit SWSRO2 clean or whit a noobie in it
06/28/2010 - Silkroad Online Trading - 0 Replies
lvl70 ISRO char server Eldorado name: IAmTheGame FF whit 190k sp and gold dragon flag WTT whit clean swsro2 account or whit a noob char in it thanks MSN: [email protected] Country: sweden
What is the best subclass?
05/12/2010 - Conquer Online 2 - 4 Replies
I was thinking, do the subclass critical % and minus poison damage % stack on with the refinery system critical % and poison %? ... because if they do all meele chars should have anti-poison sub-class, let me explain... Stats: -Anti-Poison (SubClass) = - 75% - HeadGear + Boot Detoxication(Super) = - 30% = 105% Detoxication, so poison should do no damage.
Need help whit MySro Whit connections
11/15/2008 - SRO Private Server - 6 Replies
uhhm i need help whit mysro i can play got account got a char lvl 6 but maybe 5 mins playing i got dc is that i live to far from the hoster ? Or what plz post it here thnx:mofo:
L2j Subclass
02/22/2006 - Lineage 2 - 7 Replies
How i can have 2 subclasses and use all skills ? .. BD+SPS ? any exploit . or . bug ?



All times are GMT +1. The time now is 17:44.


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