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]));
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]
4.Where you see
Code:
if (WepType == 480)
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (WepType == 560)[/SIZE]
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;
}
}
}
Code:
else if (WepType == 490 && !Use)
Code:
(WepType == 560 && !Use)
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;
}
}
}
1.go to Database.cs and search for
Code:
public static void DefineSkills()
Code:
SkillAttributes[7020] = new ushort[10][];[7020]
4.A lil leason what each of the things in
Code:
SkillAttributes[7020][0] = new ushort[6] { 0, 2, 0, 110, 0, 20 };
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






