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 01:06

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

Advertisement



[Guide]Add wep skills to your server O.O

Discussion on [Guide]Add wep skills to your server O.O within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
[Guide]Add wep skills to your server O.O

ok so i got kinda bored and decided to make a guide on how to add wep. skills into your server.

ok so lets begin, FIRST OF ALL, THIS GUIDE WAS! AND I MEAN WAS MADE BY ME, AND ONLY ME! do not copy plx O.O ty.

ok so....first of all the files that we'll need
1. the list of the skills (In powersource, you will find a txt file called "Commands" you go all of the skill lists there)
2. COItems.txt which can be found in powersource debug folder.

aww btw you'll need brains to...not a lot but u'll need some.

ok so....i'm going to use spear as an example
1.Open C# and open Character.cs and Database.cs (In powersource you need to open the external database, but i dun wanna explain how to do that)
2.in character.cs look for
Code:
int WepType = Other.WeaponType(uint.Parse(Splitter[0]));
3.You will see a the following code
Code:
if(WepType == 480)
{
if (Skills.Contains((short[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])7020)){[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] SkillLvl = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])Skills[([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]short[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])7020];[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Chance = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]ExternalDatabase[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].SkillAttributes[([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])7020][([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])SkillLvl][5];[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Other[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ChanceSuccess(Chance))[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]UseSkill(7020, 0, 0, 0);[/SIZE]
[SIZE=2]Use = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
Copy the code and paste it after the last "}"

4.Where you see
Code:
 if (WepType == 480)
edit the "480" to the spear weptype which is the 3 first numbers of any weapon in "COItems.txt" which in this case is "560" then it should look something like that
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (WepType == 560)[/SIZE]
5.Where you see "7020" in the code, you edit it to the skill number you want the spear to be using, which in this case its speed gun "1260".

6.When your done the code should look something like that
Code:
                else if (WepType == 560)
                {
                    if (Skills.Contains((short)1260))
                    {
                        byte SkillLvl = (byte)Skills[(short)1260];
                        byte Chance = (byte)ExternalDatabase.SkillAttributes[(int)1260][(int)SkillLvl][5];
                        if (Other.ChanceSuccess(Chance))
                        {
                            UseSkill(1260, 0, 0, 0);
                            Use = true;
                        }
                    }
                }
7.Copy the code, and search for
Code:
else if (WepType == 490 && !Use)
then after the code, paste the code that we just copied and add "&& !Use" to "(WepType == 560)" so it will look like that
Code:
(WepType == 560 && !Use)
so you the code should look like that
Code:
else if (WepType == 560 && !Use)
                {
                    if (Skills.Contains((short)1260))
                    {
                        byte SkillLvl = (byte)Skills[(short)1260];
                        byte Chance = (byte)ExternalDatabase.SkillAttributes[(int)1260][(int)SkillLvl][5];
                        if (Other.ChanceSuccess(Chance))
                        {
                            UseSkill(1260, 0, 0, 0);
                            Use = true;
                        }
                    }
                }
so you should have 2 codes, now to the kind of annoying part
1.go to Database.cs and search for
Code:
public static void DefineSkills()
2.you will see that
Code:
SkillAttributes[7020] = new ushort[10][];[7020]
3.Copy the whole code, and paste it after that.
4.A lil leason what each of the things in
Code:
SkillAttributes[7020][0] = new ushort[6] { 0, 2, 0, 110, 0, 20 };
mean.
The first 0, is skill type
Then the 2, is the range
The next 0, is sector
The 110, is Heal or in this case the Damage, depends on the skill type you use
The next 0, Mana Cost/Or stamina which in this case, none of them so its 0
And the last one the 20, is the activationn Chance

There are 12 Types, here they are :
RangeSkillMelee = 0,
RangeSkillRanged = 1,
SingleTargetSkillMagic = 2,
TargetRangeSkillMagic = 3,
DirectSkillMelee = 4,
RangeSectorSkillRanged = 5,
SingleTargetSkillMagicHeal = 6,
SelfUseSkill = 7,
BuffSkill = 8,
RangeSkillHeal = 11,
SingleTargetSkillMelee = 12,
SingleTargetSkillRanged = 13

5.Now lets get back to the guide, edit all of the "7020's" to the skill that we just got for the spear, which is "1290"

Debug it all, and it should work, enjoy and hope it helped any one
BlooD-BoY is offline  
Thanks
1 User
Old 10/13/2008, 20:06   #2
 
yourworstnightmare's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 75
Received Thanks: 12
Quote:
Originally Posted by BlooD-BoY View Post
ok so i got kinda bored and decided to make a guide on how to add wep. skills into your server.

ok so lets begin, FIRST OF ALL, THIS GUIDE WAS! AND I MEAN WAS MADE BY ME, AND ONLY ME! do not copy plx O.O ty.

ok so....first of all the files that we'll need
1. the list of the skills (In powersource, you will find a txt file called "Commands" you go all of the skill lists there)
2. COItems.txt which can be found in powersource debug folder.

aww btw you'll need brains to...not a lot but u'll need some.

ok so....i'm going to use spear as an example
1.Open C# and open Character.cs and Database.cs (In powersource you need to open the external database, but i dun wanna explain how to do that)
2.in character.cs look for
Code:
int WepType = Other.WeaponType(uint.Parse(Splitter[0]));
3.You will see a the following code
Code:
if(WepType == 480)
{
if (Skills.Contains((short[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])7020)){[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] SkillLvl = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])Skills[([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]short[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])7020];[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Chance = ([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]byte[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])[/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]ExternalDatabase[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].SkillAttributes[([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])7020][([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])SkillLvl][5];[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Other[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].ChanceSuccess(Chance))[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]UseSkill(7020, 0, 0, 0);[/SIZE]
[SIZE=2]Use = [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
Copy the code and paste it after the last "}"

4.Where you see
Code:
 if (WepType == 480)
edit the "480" to the spear weptype which is the 3 first numbers of any weapon in "COItems.txt" which in this case is "560" then it should look something like that
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (WepType == 560)[/SIZE]
5.Where you see "7020" in the code, you edit it to the skill number you want the spear to be using, which in this case its speed gun "1260".

6.When your done the code should look something like that
Code:
                else if (WepType == 560)
                {
                    if (Skills.Contains((short)1260))
                    {
                        byte SkillLvl = (byte)Skills[(short)1260];
                        byte Chance = (byte)ExternalDatabase.SkillAttributes[(int)1260][(int)SkillLvl][5];
                        if (Other.ChanceSuccess(Chance))
                        {
                            UseSkill(1260, 0, 0, 0);
                            Use = true;
                        }
                    }
                }
7.Copy the code, and search for
Code:
else if (WepType == 490 && !Use)
then after the code, paste the code that we just copied and add "&& !Use" to "(WepType == 560)" so it will look like that
Code:
(WepType == 560 && !Use)
so you the code should look like that
Code:
else if (WepType == 560 && !Use)
                {
                    if (Skills.Contains((short)1260))
                    {
                        byte SkillLvl = (byte)Skills[(short)1260];
                        byte Chance = (byte)ExternalDatabase.SkillAttributes[(int)1260][(int)SkillLvl][5];
                        if (Other.ChanceSuccess(Chance))
                        {
                            UseSkill(1260, 0, 0, 0);
                            Use = true;
                        }
                    }
                }
so you should have 2 codes, now to the kind of annoying part
1.go to Database.cs and search for
Code:
public static void DefineSkills()
2.you will see that
Code:
SkillAttributes[7020] = new ushort[10][];[7020]
3.Copy the whole code, and paste it after that.
4.A lil leason what each of the things in
Code:
SkillAttributes[7020][0] = new ushort[6] { 0, 2, 0, 110, 0, 20 };
mean.
The first 0, is skill type
Then the 2, is the range
The next 0, is sector
The 110, is Heal or in this case the Damage, depends on the skill type you use
The next 0, Mana Cost/Or stamina which in this case, none of them so its 0
And the last one the 20, is the activationn Chance

There are 12 Types, here they are :
RangeSkillMelee = 0,
RangeSkillRanged = 1,
SingleTargetSkillMagic = 2,
TargetRangeSkillMagic = 3,
DirectSkillMelee = 4,
RangeSectorSkillRanged = 5,
SingleTargetSkillMagicHeal = 6,
SelfUseSkill = 7,
BuffSkill = 8,
RangeSkillHeal = 11,
SingleTargetSkillMelee = 12,
SingleTargetSkillRanged = 13

5.Now lets get back to the guide, edit all of the "7020's" to the skill that we just got for the spear, which is "1290"

Debug it all, and it should work, enjoy and hope it helped any one
u jacked this of of
yourworstnightmare is offline  
Old 10/13/2008, 20:37   #3
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
Quote:
Originally Posted by yourworstnightmare View Post
u jacked this of of
zzz its my acc. on ******** O.O
BlooD-BoY is offline  
Old 10/13/2008, 21:22   #4
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
1. your a total noob
2. look at the nick noob
3. DONT ******* QUOTE ALL THE POST YOU IDIOT !
4. get a life !
5 Blood-boy Nice Guide ^_^ !
$HaDoW is offline  
Old 10/13/2008, 22:14   #5
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
Quote:
Originally Posted by $HaDoW View Post
1. your a total noob
2. look at the nick noob
3. DONT ******* QUOTE ALL THE POST YOU IDIOT !
4. get a life !
5 Blood-boy Nice Guide ^_^ !
tyvm, at first i thought you were calling me a noob O.O and btw my nicks are not the same i use diff. ones for diff. forums lolz ;P
BlooD-BoY is offline  
Old 10/14/2008, 02:37   #6
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
WILL YOU TARDS NEVER LEARN?

FROM NOW ON BEFORE POSTING YOU MUST MEET THE FOLLOWING CRITERIA:

1. Sentence structure
2. Grammar
3. Capitalization
4. Punctuation
5. Relevancy
6. Do NOT quote an entire post that is longer than 10 lines; instead, simply quote the first line or a line that defines the point of the post. Even the title of the post will work.
7. Reread your post before posting, if it sounds wrong, IT IS.
8. If you do not follow these criteria, your post is to be ignored, no exceptions.

If you do not ignore a post not following these simple criteria, you will never be helped on this site again. You will never hold reputation on this site, nor will your posts bare any merit or generate any responses.

THIS IS NOW THE LAW. SO SAYITH ME, DAMIAN, THE SON OF SATAN (also known as Jesus) HIMSELF!
Rechocto is offline  
Old 10/14/2008, 04:05   #7
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
Quote:
Originally Posted by Rechocto View Post
WILL YOU TARDS NEVER LEARN?

FROM NOW ON BEFORE POSTING YOU MUST MEET THE FOLLOWING CRITERIA:

1. Sentence structure
2. Grammar
3. Capitalization
4. Punctuation
5. Relevancy
6. Do NOT quote an entire post that is longer than 10 lines; instead, simply quote the first line or a line that defines the point of the post. Even the title of the post will work.
7. Reread your post before posting, if it sounds wrong, IT IS.
8. If you do not follow these criteria, your post is to be ignored, no exceptions.

If you do not ignore a post not following these simple criteria, you will never be helped on this site again. You will never hold reputation on this site, nor will your posts bare any merit or generate any responses.

THIS IS NOW THE LAW. SO SAYITH ME, DAMIAN, THE SON OF SATAN (also known as Jesus) HIMSELF!
lols, sry about the grammer and ****, was kinda late when i made the guide, i will fix it tommorow after school or something, lolz 666 ftw \,,/
BlooD-BoY is offline  
Old 10/14/2008, 22:44   #8
 
The_Real_Slim_Shady's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 170
Received Thanks: 8
so can u show how to make this for powerco ?
i mean how to open the ******* external database
The_Real_Slim_Shady is offline  
Old 10/15/2008, 00:43   #9
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Quote:
Originally Posted by The_Real_Slim_Shady View Post
so can u show how to make this for powerco ?
i mean how to open the ******* external database
Double-Click ExternalDatabase.cs whats so hard about that..
Zanzibar is offline  
Old 10/17/2008, 11:40   #10
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
very nice guide
this will help me and others alot + i got something to do for a few hours or days xD
~jochemke~ is offline  
Old 11/18/2008, 08:49   #11
 
elite*gold: 0
Join Date: Nov 2008
Posts: 1
Received Thanks: 0
how did you get 1260 for speedgun exactly i dont know how you got it exactly. if you dont mind add me on my msn name or pm me on here if you dont mind
himaniambored4213 is offline  
Old 11/21/2008, 01:27   #12
 
AngelusInkubus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 89
Received Thanks: 2
Quote:
Originally Posted by himaniambored4213 View Post
how did you get 1260 for speedgun exactly i dont know how you got it exactly. if you dont mind add me on my msn name or pm me on here if you dont mind
If you got LOTF source there is a file named skills.txt with the ID of all skills on it. Just look the ID for which skill you're trying to implement.
AngelusInkubus is offline  
Reply


Similar Threads Similar Threads
Guide to the Skills for Aion Beginners
02/17/2010 - User Submitted News - 0 Replies
It never matters which profession you would choose, and what remains the essential of Aion at the beginning is to make yourself clear of all your starter skills. Every character would be given a couple of starter skills, which also are basic skills, and then sent out into the wild. The setting of hotbar in Aion is the same as that in other games. You need to set the desired skill in the hotbar, and then hit the key you want to stand for it or simply click on the icon and then everything is OK....
Lv. 77 Mentalo Server 5, 4 G-Skills, tausche gg. Körper mit G-Skills
01/26/2010 - Metin2 Trading - 6 Replies
Hey E-Pvp Com, Ich biete euch hier meinen Lv. 77 Mentalkrieger auf dem Deutschen Server Antharos an. Der Account enthält kein Equip, 5 Drachenmünzen und 419 Drachenmarken. Der Charakter ist Perfekt geskillt und hat einen guten Ruf. Er befindet sich im Jinno-Reich. Der Charakter hat einen neutralen Rang. Zudem befindet sich auf dem Account ein Lv. 57 Körperkrieger auf dem Server Lechas: Skills: Aura M2, Kr M3, SW M3, Rang: Grausam Screenshots: http://666kb.com/i/bg3y1pjgpf67k4fsm.jpg ...
[Guide] Ninja Skills On CoEmu v2
06/15/2009 - CO2 PServer Guides & Releases - 10 Replies
I see Many People Say Ninja Skills Dont Work and it was with me i`ll tell you how to make it work really simple :D buy dragon gems from shoping mail go to pc here the command /scroll pc get the item u wanna socket a gem on it put the item put the 2 gems on all ur gears go and try ninja skills now
This is a guide to SKILLS!
10/23/2007 - GunZ - 1 Replies
DOwnlaod it and open it .... it has every skill inside it.... Download Link: zerowaitingtime.com



All times are GMT +1. The time now is 01:09.


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