|
You last visited: Today at 13:08
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.
06/02/2009, 20:45
|
#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;
}
|
|
|
06/02/2009, 20:49
|
#2
|
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 ^_^
|
|
|
06/03/2009, 05:04
|
#3
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
lol agree
|
|
|
06/03/2009, 05:10
|
#4
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,142
|
Quote:
Originally Posted by $HaDoW
no point of it but still good job this just makes the game funny ^_^
|
Quote:
Originally Posted by flako27
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
|
|
|
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
|
|
|
06/06/2009, 22:50
|
#6
|
elite*gold: 0
Join Date: Mar 2009
Posts: 16
Received Thanks: 0
|
Good job, I always wondered how that worked.
|
|
|
06/07/2009, 23:35
|
#7
|
elite*gold: 0
Join Date: Mar 2009
Posts: 56
Received Thanks: 31
|
Quote:
Originally Posted by nuhali
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
|
|
|
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));
}
}
|
|
|
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.
|
|
|
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
|
|
|
07/15/2009, 01:46
|
#11
|
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
|
LOOK UP AND STOP BUMPIN
|
|
|
|
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.
|
|