|
You last visited: Today at 20:33
Advertisement
[Help/Request] Skill books
Discussion on [Help/Request] Skill books within the CO2 Private Server forum part of the Conquer Online 2 category.
06/14/2009, 07:16
|
#1
|
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
|
[Help/Request] Skill books
Can anyone start with a template on the skillbook on how?
If someone can help me here for just one skill book c# code then it'll be helpful for me as a reference for the other skill books...
Thanks a lot...
|
|
|
06/16/2009, 08:02
|
#2
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
Okay this is my first time doing this so it might not be good xD
In ItemUse.cs find:
Code:
default:
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[ERROR] Please report: Unable to handle item ID: " + Item.ItemID, Struct.ChatType.Top));
Delete = false;
break;
}
Above add:
Code:
case 725013: //Penetration
{
LearnSkill(1290, 0, CSocket); // Skill to learn. 1290 = skillid, 0 = level
break;
}
Lastly, add this at the bottom of useditem.cs
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));
}
}
|
|
|
06/16/2009, 11:04
|
#3
|
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
|
It's cool.. but need to have somethin that says... you've learned somethin blah blah.. lemme fix that.. hehehe .. thanks again
Quote:
Originally Posted by CIRASH
Okay this is my first time doing this so it might not be good xD
In ItemUse.cs find:
Code:
default:
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[ERROR] Please report: Unable to handle item ID: " + Item.ItemID, Struct.ChatType.Top));
Delete = false;
break;
}
Above add:
Code:
case 725013: //Penetration
{
LearnSkill(1290, 0, CSocket); // Skill to learn. 1290 = skillid, 0 = level
break;
}
Lastly, add this at the bottom of useditem.cs
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));
}
}
|
|
|
|
06/16/2009, 12:20
|
#4
|
elite*gold: 0
Join Date: Jun 2007
Posts: 69
Received Thanks: 2
|
It's cool.. but need to have somethin that says... you've learned somethin blah blah.. lemme fix that.. hehehe .. thanks again
Quote:
Originally Posted by CIRASH
Okay this is my first time doing this so it might not be good xD
In ItemUse.cs find:
Code:
default:
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[ERROR] Please report: Unable to handle item ID: " + Item.ItemID, Struct.ChatType.Top));
Delete = false;
break;
}
Above add:
Code:
case 725013: //Penetration
{
LearnSkill(1290, 0, CSocket); // Skill to learn. 1290 = skillid, 0 = level
break;
}
Lastly, add this at the bottom of useditem.cs
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));
}
}
|
|
|
|
06/16/2009, 16:51
|
#5
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
Yeah i wanna do that to. When you do it, can you provide me with an example? I just learn from other peoples work and continue it xD
|
|
|
06/16/2009, 20:12
|
#6
|
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
|
If you really don't know anything about coding just follow the code that learns the skill for PMs/GMs...
I take no responsibility if it takes more RAM Memory from hosting the source -_-
See it, try it, learn it, make fun of it!
|
|
|
06/16/2009, 21:56
|
#7
|
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
|
Code:
case 725005: //fastblade
{
if (CSocket.Client.Level >= 10)
{
LearnSkill(1045, 0, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You learned FastBlade!", Struct.ChatType.Top));
}
else
{
Delete = false;
}
break;
}
How i do that you need blade req 5 to use it?
|
|
|
06/16/2009, 22:26
|
#8
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
Quote:
Originally Posted by nuhali
Code:
case 725005: //fastblade
{
if (CSocket.Client.Level >= 10)
{
LearnSkill(1045, 0, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You learned FastBlade!", Struct.ChatType.Top));
}
else
{
Delete = false;
}
break;
}
How i do that you need blade req 5 to use it?
|
Thats what im trying to figure out now.
|
|
|
|
Similar Threads
|
List Of Useful Skill Books
03/17/2010 - 9Dragons - 5 Replies
Most of the books in Hefei are useless active skills or smashes that players can buy from the base map. If the description of a book includes the words "For 2nd Role", it is worthless. At the top of each clan/role list are the rare and most demanded books, then in orange are all secondary books for skills that are up to you to train. List doesn't contain the most insignificant skills.
Some books can be used by several other roles too: fast heal works for healer and hybrid, wis buff for...
|
[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
{
|
I need a help with skill books
05/20/2009 - CO2 Private Server - 2 Replies
I want that char learn the skill if the char doesnt have it, else cant learn and show a message, and for fastblade,scentsword if Weapon prof level x.
Normal fastblade book learn.
|
Holy/Hell Skill Books Request
03/13/2009 - Perfect World - 2 Replies
im looking for list of witch bosses in holy/hell dungeuns drop witch skill books
for farming skill books , ty
|
Skill Books xD... US fertigkeitsbücher
03/04/2009 - Metin2 - 4 Replies
Hi liebe community ...
Ich hab nen Problem... =(
Ich hab jetzt US angefangen...
Aber ich weiß nicht was welches fb ist ...
Skill book heißt ja anscheinen Fertigkeitsbuch...
Ich hab gedacht " is doch ganz leicht Starker körper = strong body "
aber is ja net so ich wollte mal fragen ob jemand mal eine liste mit allen übersetzen fb`s reinstellen kann ??
Hab SF geguckt doch da gibs nichts...
Hab gerade Frenzy skill book gedroppt ... (Übersetzung = Ekstase xD)
|
All times are GMT +2. The time now is 20:33.
|
|