Register for your free account! | Forgot your password?

You last visited: Today at 15:55

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

Advertisement



[Question]skills

Discussion on [Question]skills within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
[Question]skills

where do u code the skills into i have the skills added into the skilladder but where do u code the effect of the skill like reflect

does anyone know the StatusEffectEn for reflect
coreymills is offline  
Old 01/25/2010, 01:24   #2
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Quote:
Originally Posted by coreymills View Post
where do u code the skills into i have the skills added into the skilladder but where do u code the effect of the skill like reflect
Skills.cs search for SkillUse
I had trouble finding it to... but i made a thread and peps helped me
.Ryu is offline  
Old 01/25/2010, 06:16   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by coreymills View Post
where do u code the skills into i have the skills added into the skilladder but where do u code the effect of the skill like reflect

does anyone know the StatusEffectEn for reflect
StatusEffectEn should be in Character.cs.
If not then Navigate to definition.
Arcо is offline  
Old 01/25/2010, 11:14   #4
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
Cyclone = 0x800000
Reflect = ????? the ????? is what i'm asking for
coreymills is offline  
Old 01/25/2010, 22:17   #5
 
gulpi_de_gulat's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
Quote:
Originally Posted by coreymills View Post
no i mean like Cyclone = 0x800000, but for reflect
Code:
 }
            else if (COServer_Project.MyMath.PointDistance(PosX, PosY, Target.LocX, Target.LocY) <= MinRange)
                if (Target.Alive)
                {
                    if (COServer_Project.Other.ChanceSuccess(50) || MType == 1)
                    {
                        if (Target.PackedSkills.Contains("3060"))
                        {
                            if (Other.ChanceSuccess(30))
                            {
                                Target.ReflectOn = true;
                            }
                            else
                            {
                                Target.ReflectOn = false;
                            }
                        }
                        double reborn = 1;
                        if (Target.RBCount == 1)
                        {
                            reborn = 0.7;
                        }
                        if (Target.RBCount == 2)
                        {
                            reborn = 0.4;
                        }
                        double DMG = General.Rand.Next((int)MinAtk, (int)MaxAtk) - ((int)Target.Defense + (int)Target.Level);

                        DMG *= reborn;
                        if (DMG < 1)
                            DMG = 1;

                        if (Target.GetHitDie((uint)DMG))
                        {
                            if (MType == 1)
                            {
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                                if (Target.PKPoints > 100)
                                {
                                    Target.Teleport(6000, 028, 071);
                                    World.SendMsgToAll(Target.Name + " was captured and sent to jail.", "SYSTEM", 2000);
                                    World.SendMsgToAll(Target.Name + " was captured and sent to jail.", "SYSTEM", 2011);

                                }
                            }
                            if (MType == 4)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 1000, 0);
                            if (MType == 8)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 1290, 4);
                            if (MType == 6)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 1000, 3);
                            if (MType == 9)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            if (MType == 10)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            if (MType == 11)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            else
                            {
                                if (Target.LuckTime >= 1)
                                {
                                    if (COServer_Project.Other.ChanceSuccess(3))
                                    {
                                        DMG = 0;
                                        Target.MyClient.SendPacket(General.MyPackets.SendMsg(Target.MyClient.MessageId, "SYSTEM", Target.Name, "LuckyTime! You were immune to the damage of the hit!", 2020));
                                        foreach (DictionaryEntry DE in COServer_Project.World.AllChars)
                                        {
                                            COServer_Project.Character Chaar = (COServer_Project.Character)DE.Value;
                                            if (Chaar.Name != Target.Name)
                                                if (Chaar.LocMap == Target.LocMap)
                                                    if (COServer_Project.MyMath.PointDistance(Chaar.LocX, Chaar.LocY, Target.LocX, Target.LocY) < 20)
                                                        Chaar.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "LuckyGuy"));
                                        }
                                        Target.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "LuckyGuy"));
                                        World.MobAttacksChar(this, Target, 2, (uint)DMG);
                                    }
                                    else
                                        World.MobAttacksChar(this, Target, 2, (uint)DMG);
                                }
                                if (Target.ReflectOn == true)
                                {
                                    Target.CurHP -= 0;
                                    this.CurHP -= (uint)DMG;
                                    foreach (DictionaryEntry DE in COServer_Project.World.AllChars)
                                    {
                                        Target.CurHP -= 0;
                                        this.CurHP -= (uint)DMG;
                                        COServer_Project.Character Chaar = (COServer_Project.Character)DE.Value;
                                        if (Chaar.Name != Target.Name)
                                            if (Chaar.LocMap == Target.LocMap)
                                                if (COServer_Project.MyMath.PointDistance(Chaar.LocX, Chaar.LocY, Target.LocX, Target.LocY) < 20)
                                                    Chaar.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "MagicReflect"));
                                    }
                                    Target.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "MagicReflect"));
                                    DMG = 0;
                                }
                                else
                                    World.MobAttacksChar(this, Target, 2, (uint)DMG);
                            }
                            World.MobAttacksChar(this, Target, 14, (uint)DMG);
                        }
                        else
                        {
                            if (MType == 1)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            if (MType == 8)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 1290, 4);
                            if (MType == 9)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            if (MType == 4)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 1000, 0);
                            if (MType == 6)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 1000, 3);
                            if (MType == 10)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            if (MType == 11)
                                World.MobAttacksCharSkill(this, Target, (uint)DMG, 8036, 0);
                            else
                            {
                                if (Target.LuckTime >= 1)
                                {
                                    if (COServer_Project.Other.ChanceSuccess(3))
                                    {
                                        DMG = 0;
                                        Target.MyClient.SendPacket(General.MyPackets.SendMsg(Target.MyClient.MessageId, "SYSTEM", Target.Name, "LuckyTime! You were immune to the damage of the hit!", 2020));
                                        foreach (DictionaryEntry DE in COServer_Project.World.AllChars)
                                        {
                                            COServer_Project.Character Chaar = (COServer_Project.Character)DE.Value;
                                            if (Chaar.Name != Target.Name)
                                                if (Chaar.LocMap == Target.LocMap)
                                                    if (COServer_Project.MyMath.PointDistance(Chaar.LocX, Chaar.LocY, Target.LocX, Target.LocY) < 20)
                                                        Chaar.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "LuckyGuy"));
                                        }
                                        Target.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "LuckyGuy"));
                                        World.MobAttacksChar(this, Target, 2, (uint)DMG);
                                    }
                                    else
                                        World.MobAttacksChar(this, Target, 2, (uint)DMG);
                                }
                                if (Target.ReflectOn)
                                {
                                    Target.CurHP -= 0;
                                    this.CurHP -= (uint)DMG;
                                    foreach (DictionaryEntry DE in COServer_Project.World.AllChars)
                                    {
                                        Target.CurHP -= 0;
                                        this.CurHP -= (uint)DMG;
                                        COServer_Project.Character Chaar = (COServer_Project.Character)DE.Value;
                                        if (Chaar.Name != Target.Name)
                                            if (Chaar.LocMap == Target.LocMap)
                                                if (COServer_Project.MyMath.PointDistance(Chaar.LocX, Chaar.LocY, Target.LocX, Target.LocY) < 20)
                                                    Chaar.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "MagicReflect"));
                                    }
                                    Target.MyClient.SendPacket(General.MyPackets.String(Target.UID, 10, "MagicReflect"));
                                    DMG = 0;
                                }
                                else
                                    World.MobAttacksChar(this, Target, 2, (uint)DMG);
                            }
                        }
                        Target = null;
                    }
                }
                else
                {
                    Target = null;
                }

        }
try to figure this out maybe this help to reflect skill
gulpi_de_gulat is offline  
Reply


Similar Threads Similar Threads
[Question] Add New Skills
08/16/2010 - Eudemons Online - 1 Replies
Hello, how do I add new skills or what files do I edit or add entries? I want to add g0d skills, I know I only in cq_action and cq_magictype and cq_itemtype entries must be added. But I have no idea to where I need to add some client side or missing database tables that is not in my specification.
[Question about Skills]
08/12/2010 - EO PServer Hosting - 2 Replies
i got anew DB With Client Side from 4fcom i ripped the skills from it but i am facing aproblem or two. 1- Askill called Storm which is awarrior's skill i guess its the same as dragon storm doesn't have the probable effect as other server's as well as the new thunder Skill its not like the revo DB/Client Side has adrker effect.<< What control those nd how can i fix those skill's effect. 2- how to control those new skill's power and hit rate per 1 spell casting. if any 1 knows and can help me...
[question]skills
07/20/2009 - CO2 Private Server - 2 Replies
where do u code the skills in like rage and that in the CoEmu V2 Source.
Question About skills
06/18/2009 - 12Sky2 - 2 Replies
I was wondering if its possible to get lets say katana buff called rigid winds working with double blades. Or dantes fire wall with katana. I dont think the combination would be server sided so id think id be possible to hack it wouldnt it?
Question Regarding Skills
02/12/2006 - Conquer Online 2 - 2 Replies
Ok when CO2 first came in i learned all the 2H skills being a tao so i can have something to do, but they just seem to take up alot of space so is there a way to rearrange them?. so on my top list i can have like my Dances SS and FB up top and on the second colum where you can scroll down all the Useless 2h skill symbols. Sorry for not being able to explain this well. And thank you all for any help in the Subject.



All times are GMT +2. The time now is 15:55.


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