Welcome to RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr) Mark forums read | View Forum Leaders
RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr)

Conquer Releases Discuss, How to add wep. skills at Conquer Online forum; ok so i got kinda bored and decided to make a guide on how to add wep. skills into your ...




Reply
Thread Tools
Guide How to add wep. skills
 
 
Average Member

Rank: Omicron


Reply With Quote
 
Join Date: Jun 2007
Posts: 59
10-13-2008, 06:09 PM
 
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)7020)){byte SkillLvl = (byte)Skills[(short)7020];
byte Chance = (byte)ExternalDatabase.SkillAttributes[(int)7020][(int)SkillLvl][5];
if (Other.ChanceSuccess(Chance))
{
UseSkill(7020, 0, 0, 0);
Use = true;
}
}
}
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:
if (WepType == 560)
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, **** 0, 20 };
mean.
The first 0, is skill type
Then the 2, is the range
The next 0, is sector
The **** 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

Last edited by kirila; 10-18-2008 at 12:53 AM.
 
 
permalink
 

RaGEZONE is proudly sponsored by
 
The Omega

Rank: New Blood


Reply With Quote
 
Join Date: Nov 2006
Posts: 100
10-18-2008, 12:35 AM
 
Quote:
if (Skills.Contains((short[/color][/size][/color][/size][size=2])7020))
What's this crap?
 
 
permalink
 

 
Member

Rank: Omicron


Reply With Quote
 
Join Date: Mar 2008
Posts: 35
10-18-2008, 02:37 AM
 
HTML error was trying to change color i bet
 
 
permalink
 


 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Jul 2008
Posts: 17
10-22-2008, 10:18 PM
 
i did all but the skill still doesnt work...
 
 
permalink
 

 
Member

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2008
Posts: 45
10-24-2008, 01:37 AM
 
thnx! you helped out alot! Only one thing What kind off attack is Speedgun? its not type:0 thats something like rage!
Wich attack type do u use for this? And if the skill is activated it always goes up! never goes the way it should go :p
 
 
permalink
 

 
Average Member

Rank: Omicron


Reply With Quote
 
Join Date: Jun 2007
Posts: 59
10-24-2008, 02:51 PM
 
Quote: Originally Posted by jonapl View Post
thnx! you helped out alot! Only one thing What kind off attack is Speedgun? its not type:0 thats something like rage!
Wich attack type do u use for this? And if the skill is activated it always goes up! never goes the way it should go :p
it is 0 because its a MeeleSkillRange
 
 
permalink
 

 
Newbie

Rank: Omicron


Reply With Quote
 
Join Date: Jul 2008
Posts: 17
10-24-2008, 05:29 PM
 
is it possible to make it like real speedgun?
 
 
permalink
 

 
Member

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2008
Posts: 45
10-25-2008, 04:18 PM
 
Quote: Originally Posted by kirila View Post
it is 0 because its a MeeleSkillRange
Yea i know, but MeeleSkillRange is a skill attack like 'Rage' so it attacks everyone in a range of 2 or 6 or ... (in what ever you set the range)
And SpeedGun attacks in a range on a line! not in a range circle! and if he uses speedgun then the image of speedgun goes up! It doesnt go the way you are attacking a beast! im trying my best to combine
MeelSkillRange (like rage -> skill with clubs) to combine with skill like ScentSword or FastBlade (Skill that attacks on a line but only when the player wants it)... if im done creating the new skilltype ill post this! Wish me luck!
 
 
permalink
 

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 12:08 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RaGEZONE © 2001 - 2008





 
Evade Blackbelt School