[Question]5119 Skills

01/19/2010 22:26 .Ryu#1
Soo i been trying to figure out where i code in skills in the 5119 source.. if any one knows can you peoples tell me thanks :)
01/19/2010 22:54 Kiyono#2
The 5119 source is pretty much the same as the 5165 one right?
If so check Features\Skills.cs
01/19/2010 22:57 .Ryu#3
Quote:
Originally Posted by Kiyono View Post
The 5119 is pretty much the same as the 5165 one right?
If so check Features\Skills.cs
Yeah there the same
01/21/2010 06:57 Arcо#4
Quote:
Originally Posted by .Ryu View Post
Yeah there the same

Then skills.cs should be the place to be right?
01/21/2010 22:05 .Ryu#5
Quote:
Originally Posted by Hepatitis C View Post

Then skills.cs should be the place to be right?
Im not sure i cant find where the skills need coded ^.^ if anyone could help meh pleas :)
01/21/2010 22:50 Zion~#6
CTRL + F -> Entire Solution => Search a skill ID: E.I- 1004.
01/21/2010 23:21 .Ryu#7
Quote:
Originally Posted by Zion~ View Post
CTRL + F -> Entire Solution => Search a skill ID: E.I- 1004.
Ohh wow i never thought of that
Thanks ~Zion
#Edit
It didnt work i tryed searching..
01/22/2010 09:49 Kiyono#8
Quote:
Originally Posted by .Ryu View Post
Ohh wow i never thought of that
Thanks ~Zion
#Edit
It didnt work i tryed searching..
CTRL+F and use 1045 as keyword.
01/22/2010 19:19 .Ryu#9
Quote:
Originally Posted by Kiyono View Post
CTRL+F and use 1045 as keyword.
Hmm ok i will try that i hope it works =P
01/22/2010 19:58 Kiyono#10
Quote:
Originally Posted by .Ryu View Post
Hmm ok i will try that i hope it works =P
It works for me so it should work for you.
01/23/2010 00:43 .Ryu#11
Quote:
Originally Posted by Kiyono View Post
It works for me so it should work for you.
Ok so i searched and got this
Is that where i code the codes?

Code:
public static void Load()
        {            
            if (File.Exists(@"C:\OldCODB\Skills.dat"))
            {
                FileStream FS = new FileStream(@"C:\OldCODB\Skills.dat", FileMode.Open);
                BinaryReader BR = new BinaryReader(FS);
                int SkillCount = BR.ReadInt32();
                for (int i = 0; i < SkillCount; i++)
                {
                    SkillInfo S = new SkillInfo();
                    S.LoadThis(BR);
                    SkillInfos.Add(S.ID + " " + S.Level, S);
                }
                BR.Close();
                FS.Close();
            }
            WepSkillIDs.Add((ushort)480, (ushort)7020);
            WepSkillIDs.Add((ushort)420, (ushort)5030);
            WepSkillIDs.Add((ushort)421, (ushort)5030);
            WepSkillIDs.Add((ushort)510, (ushort)1250);
            WepSkillIDs.Add((ushort)530, (ushort)5050);
            WepSkillIDs.Add((ushort)561, (ushort)5010);
            WepSkillIDs.Add((ushort)560, (ushort)1260);
            WepSkillIDs.Add((ushort)721, (ushort)1290);
            WepSkillIDs.Add((ushort)460, (ushort)5040);
            WepSkillIDs.Add((ushort)540, (ushort)1300);
            WepSkillIDs.Add((ushort)430, (ushort)7000);
            WepSkillIDs.Add((ushort)450, (ushort)7010);
            WepSkillIDs.Add((ushort)481, (ushort)7030);
            WepSkillIDs.Add((ushort)440, (ushort)7040);

            /*if (File.Exists(@"C:\OldCODB\MagicType.txt"))
            {
                string[] Lines = File.ReadAllLines(@"C:\OldCODB\MagicType.txt");

                foreach (string Line in Lines)
                {
                    string[] Info = Line.Split(' ');

                    SkillsClass.SkillInfo S = new SkillInfo();
                    S.ID = ushort.Parse(Info[0]);
                    if (((Extra.SkillIDs)S.ID).ToString() != Info[0])
                    {
                        S.Level = byte.Parse(Info[7]);
                        S.ActivationChance = byte.Parse(Info[11]);
                        S.Damageing = DamageType.Magic;
                        S.Targetting = TargetType.Single;
                        S.ExtraEff = ExtraEffect.None;

                        if (Info[1] == "5")
                        {
                            if (S.ID == 1165 || S.ID == 1125 || S.ID == 5001 || S.ID == 1010 || S.ID == 8030)
                                S.Targetting = TargetType.FromSingle;
                            else
                                S.Targetting = TargetType.Range;
                        }
                        else if (Info[1] == "19")
                            S.ExtraEff = ExtraEffect.Transform;
                        else if (Info[1] == "23")
                            S.ExtraEff = ExtraEffect.Summon;
                        else if (Info[1] == "4" || Info[1] == "14")
                            S.Targetting = TargetType.Sector;
                        else if (Info[1] == "7")
                            S.ExtraEff = ExtraEffect.Revive;
                        else if (Info[1] == "16")
                        {
                            S.Targetting = TargetType.Single;
                            S.Damageing = DamageType.Melee;
                        }
                        ushort dmg = ushort.Parse(Info[33]);
                        if (dmg >= 400 && dmg <= 499)
                            S.Damageing = DamageType.Melee;
                        else if (dmg >= 800 && dmg <= 899)
                            S.Damageing = DamageType.Ranged;
                        else if (dmg >= 900 && dmg <= 999)
                            S.Damageing = DamageType.Magic;
                            
                        if (int.Parse(Info[9]) > 0)
                        {
                            if (int.Parse(Info[9]) >= 30000)
                                S.EffectValue = (float)(int.Parse(Info[9]) - 30000) / 100;
                            else
                            {
                                S.EffectValue = 1;
                                S.Damage = uint.Parse(Info[9]);
                            }
                        }
                        S.ManaCost = ushort.Parse(Info[8]);
                        S.UpgReqExp = uint.Parse(Info[17]);
                        S.UpgReqLvl = byte.Parse(Info[18]);
                        S.MaxDist = byte.Parse(Info[13]);
                        Game.StatusEffectEn Eff = (Game.StatusEffectEn)ulong.Parse(Info[15]);
                        if (Eff == StatusEffectEn.SuperMan)
                            S.ExtraEff = ExtraEffect.Superman;
                        else if (Eff == StatusEffectEn.Cyclone)
                            S.ExtraEff = ExtraEffect.Cyclone;
                        else if (Eff == StatusEffectEn.Invisible)
                            S.ExtraEff = ExtraEffect.Invisibility;
                        else if (Eff == StatusEffectEn.Accuracy)
                            S.ExtraEff = ExtraEffect.Accuracy;
                        else if (Eff == StatusEffectEn.Fly)
                            S.ExtraEff = ExtraEffect.Fly;
                        else if (Eff == StatusEffectEn.Stigma)
                            S.ExtraEff = ExtraEffect.Stigma;
                        else if (Eff == StatusEffectEn.Shield)
                            S.ExtraEff = ExtraEffect.MagicShield;
                        else if (Eff == StatusEffectEn.FatalStrike)
                            S.ExtraEff = ExtraEffect.FatalStrike;
                        else if (Eff == StatusEffectEn.ShurikenVortex)
                            S.ExtraEff = ExtraEffect.ShurikenVortex;
                        S.EffectLasts = ushort.Parse(Info[12]);
                        if (S.ID == 8001)
                            S.SectorSize = (byte)(105 + S.Level * 15);
                        else
                            S.SectorSize = (byte)(90 + S.Level * 5);
                        if (S.ID == 1045 || S.ID == 1046)
                            S.Targetting = TargetType.Linear;
                        S.StaminaCost = byte.Parse(Info[27]);
                        if (!SkillInfos.Contains(S.ID.ToString() + " " + S.Level.ToString()))
                        {
                            if (SkillInfos.Contains(S.ID.ToString() + " " + S.Level.ToString()))
                                SkillInfos.Remove(S.ID.ToString() + " " + S.Level.ToString());
                            SkillInfos.Add(S.ID.ToString() + " " + S.Level.ToString(), S);
                        }
                    }
                }
            }*/
        }
01/23/2010 01:40 Korvacs#12
It will be in skills.cs like was suggested on the first page....
01/23/2010 01:46 .Ryu#13
Quote:
Originally Posted by Korvacs View Post
It will be in skills.cs like was suggested on the first page....
Read the post above yours korvacs im trying to figure out if thats where i codem =P
01/23/2010 01:59 Korvacs#14
Quote:
Originally Posted by .Ryu View Post
Read the post above yours korvacs im trying to figure out if thats where i codem =P
I did, and it isnt, its in skills.cs like was mentioned on the first page...and again in my post :p
01/23/2010 02:03 .Ryu#15
Quote:
Originally Posted by Korvacs View Post
I did, and it isnt, its in skills.cs like was mentioned on the first page...and again in my post :p
Those codes are from Skill.cs :D look heres a screen shot

Screen: [Only registered and activated users can see links. Click Here To Register...]