Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 13:08

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

Advertisement



[Release] Night Devil and Dance Skill books

Discussion on [Release] Night Devil and Dance Skill books within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 56
Received Thanks: 31
[Release] Night Devil and Dance Skill books

I think its nothing all the important right now. but i wanted to contribute in some way.

Side Notes:Not sure if the Night Devil skill even work, Since the XP skill isnt coded. Dance 4 gives you dance 7 =/ Not to sure why either. Since. The Skill ID and Item ID is for dance 4. but if anyone knows why and can fix it. please do.

Credits: scottdavey for the skill book structural idea

Go into Handler/Useitem.cs
Code:
 case 725016: //Night Devil
                    {
                        if (CSocket.Client.Level >= 70)
                        {
                            LearnSkill(1360, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;
                          
                        }
                        break;
                    }
                    case 725018: //Dance 2
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1380, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
                    case 725019: //Dance 3
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1385, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
                    case 725020: //Dance 4
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1390, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
                    case 725021:  //Dance 5
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1395, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
                    case 725022: //Dance 6
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1400, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
                    case 725023: //Dance 7
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1405, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
                    case 725024: //Dance 8
                    {
                        if (CSocket.Client.Level >= 40)
                        {
                            LearnSkill(1410, 0, CSocket);
                        }
                        else
                        {
                            Delete = false;

                        }
                        break;
                    }
~*Dutchess*~ is offline  
Thanks
11 Users
Old 06/02/2009, 20:49   #2
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
no point of it but still good job this just makes the game funny ^_^
$HaDoW is offline  
Thanks
2 Users
Old 06/03/2009, 05:04   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
lol agree
-Shunsui- is offline  
Old 06/03/2009, 05:10   #4
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,142
Quote:
Originally Posted by $HaDoW View Post
no point of it but still good job this just makes the game funny ^_^
Quote:
Originally Posted by flako27 View Post
lol agree
Point of it is, users are able to use the skill books instead of getting a ton of errors; duh?

It's still a release that gives usability to something that by default is not, so; Silence if you've no positive feedback or constructive critique
Zeroxelli is offline  
Thanks
1 User
Old 06/06/2009, 22:29   #5
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
i got this error
Error 1 The name 'LearnSkill' does not exist in the current context
nuhali is offline  
Old 06/06/2009, 22:50   #6
 
HunterT's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 16
Received Thanks: 0
Good job, I always wondered how that worked.
HunterT is offline  
Old 06/07/2009, 23:35   #7
 
elite*gold: 0
Join Date: Mar 2009
Posts: 56
Received Thanks: 31
Quote:
Originally Posted by nuhali View Post
i got this error
Error 1 The name 'LearnSkill' does not exist in the current context

Code:
public static void LearnSkill(int skillid, int level, ClientSocket CSocket) // By scottdavey
        {
            if (CSocket.Client.Skills.ContainsKey(skillid))
            {
                Struct.CharSkill Skill = CSocket.Client.Skills[skillid];
                Skill.Level = level;
                Skill.Exp = 0;
                Database.Database.SetSkill(Skill.ID, Skill.Level, Skill.Exp, CSocket.Client.ID, true);
            }
            else
            {
                Struct.CharSkill Skill = new Struct.CharSkill();
                Skill.Level = level;
                Skill.ID = skillid;
                CSocket.Client.Skills.Add(Skill.ID, Skill);
                Database.Database.SetSkill(skillid, level, 0, CSocket.Client.ID, false);
            }
            CSocket.Send(ConquerPacket.Skill(skillid, level, 0));
        }
    }
You will need that place it at the bottom of the useditem.cs
Credits go to scottydavey for it
~*Dutchess*~ is offline  
Thanks
6 Users
Old 07/05/2009, 05:13   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
Where do we paste public static void LearnSkill(int skillid, int level, ClientSocket CSocket) // By scottdavey
{
if (CSocket.Client.Skills.ContainsKey(skillid))
{
Struct.CharSkill Skill = CSocket.Client.Skills[skillid];
Skill.Level = level;
Skill.Exp = 0;
Database.Database.SetSkill(Skill.ID, Skill.Level, Skill.Exp, CSocket.Client.ID, true);
}
else
{
Struct.CharSkill Skill = new Struct.CharSkill();
Skill.Level = level;
Skill.ID = skillid;
CSocket.Client.Skills.Add(Skill.ID, Skill);
Database.Database.SetSkill(skillid, level, 0, CSocket.Client.ID, false);
}
CSocket.Send(ConquerPacket.Skill(skillid, level, 0));
}
}
Jay1029 is offline  
Old 07/05/2009, 05:15   #9
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
wouldnt you need the Delete = true; ( not at the else ik thats right ) but like after the learning of the skill? because if you do learn it im pretty sure the item should go away.
PeTe Ninja is offline  
Old 07/14/2009, 21:46   #10
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
Getting an error. It's easy to fix, I just don't know how yet =)
Error= LearnSkill does not exist in the current context
Jay1029 is offline  
Old 07/15/2009, 01:46   #11
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
LOOK UP AND STOP BUMPIN
f0am is offline  
Reply


Similar Threads Similar Threads
[Release]CoEmu Magic Skill books
03/22/2010 - CO2 PServer Guides & Releases - 7 Replies
I will be adding the Weapon Skillbooks soon. Before starting add this somewhere in your UseItem.cs if you don't already have it: public static void LearnSkill(int skillid, int level, ClientSocket CSocket) // By scottdavey { if (CSocket.Client.Skills.ContainsKey(skillid)) { Struct.CharSkill Skill = CSocket.Client.Skills; Skill.Level = level;
[Release]CoEmu Skill Books
07/10/2009 - CO2 PServer Guides & Releases - 11 Replies
Just add this into UseItem.cs and viola. EDIT: Added the level 5 prof req. for SS and FB. Delete = false; if you arent high enough level, or dont have enough spirit. Question: Could any1 tell me how to make it so that Any class warrior(intern, master) can be the only class to learn Flying moon. #region SkillBooks #region ScentSword case 725010://ScentSword {
were to find dance books?
08/08/2007 - Conquer Online 2 - 1 Replies
i was wondering were i could find dance 2,3,4,8,9..if u could tell em were to hunt to find them id be really thankful...and ill do the karma thing i guess
Dance books
06/05/2007 - Conquer Online 2 - 15 Replies
any suggestions on finding the dance books mainly dance 3 thats the one i wnt.
where do i find night devil books
03/25/2007 - Conquer Online 2 - 21 Replies
where do i find night devil skill books? does anybody know?



All times are GMT +2. The time now is 13:08.


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.