Register for your free account! | Forgot your password?

You last visited: Today at 12:41

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

Advertisement



[Database]Load Skills

Discussion on [Database]Load Skills within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
[Database]Load Skills

Well I got some problems loading skills in 5165 with my ini system, if anybody could point me in the right direction?

The save works fine, it saves the skills like this (Im using hybrids ini writer/reader).
But loading nah :S

<Example for fastblade and scentsword>
Code:
[Skill]
Count=0
[0]
ID=1046
Level=4
Exp=0
[1]
ID=1045
Level=4
Exp=0
And my loadcode:
Code:
        public static void LoadSkill(Game.Character C)
        {
            MyIni SkillReader = new MyIni(@"C:\OldCODB\Database\Skills\" + C.Name + ".ini");
            byte count = SkillReader .ReadByte("Skill", "Count", 0);
            for (int i = 0; i < count; i++)
            {
                ushort id = SkillReader .ReadUInt16(i.ToString(), "ID", 0);
                byte level = SkillReader .ReadByte(i.ToString(), "Level", 0);
                uint exp = SkillReader .ReadUInt32(i.ToString(), "Exp", 0);
                C.RWSkill(new Game.Skill() { ID = id, Lvl = level, Exp = exp });
            }
        }
Any help?
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 11/17/2010, 19:33   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
'Count=0'?
Basser is offline  
Old 11/17/2010, 19:34   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
It dosn't even call the for loop o.O

and the 0 is default.
is set to 2 for this.

Here is how I call it:
Code:
IDatabase.LoadSkill(GC.MyChar);

Okay nevermind smythe, is fixed <3
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 11/17/2010, 20:34   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by 1337 H4X0R View Post
It dosn't even call the for loop o.O

and the 0 is default.
is set to 2 for this.

Here is how I call it:
Code:
IDatabase.LoadSkill(GC.MyChar);

Okay nevermind smythe, is fixed <3
Did my solution work?
Pretty sure the '0' should have been a '2' or '1'.
Basser is offline  
Old 11/17/2010, 21:11   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
nah it wasnt that.
I changed it from readstring to readuint etc. and worked.
Syst3m_W1z4rd is offline  
Reply


Similar Threads Similar Threads
[ZSZC] DB-BOT dont load skills etc.
07/01/2010 - SRO Private Server - 7 Replies
Hey, Like 3 days I can't use dbot 0.8. Before anything works great and then I full skilled me the Bot doesn't accept "get coordinates", don't load skills and autopotion doesn't work. I have win7 64 Bit, but anything works great before 3 days. Anyone have solution?
My bot on zszc wont load skills and pot going haywire plz help!!!!
06/27/2010 - SRO Private Server - 6 Replies
my bot has been working just fine until today at a random time my bot decided it wanted to just keep potting even tho my health was full so logged out and logged back in now my skills wont show the bot keeps potting repeatedly can someone please help ive deleted everything and re installed ive tried different versions of sro db bot and nothing is working :(
Skills Database
04/13/2009 - CO2 Private Server - 0 Replies
Hey there, I've got a slight problem. Got a private server up and running, yet the Skills don't appear to be in the Database. The NPC's Skillbooks wont allow You to learn any, /awardmagic fails and from the Promotional NPC's the Skills still wont learn. Anybody got any ideas? Thanks.
[HELP] Pet Skills for the Halloween database
01/04/2009 - EO PServer Hosting - 3 Replies
Ok i have translated my itemtype.dat file and Now my pets skills isnt working. Does anyone know how to fix this. Im not so good using winHex so Please give answer in a format that is like speaking to a child so i can understand thanks.



All times are GMT +2. The time now is 12:41.


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.