Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:15

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

Advertisement



[Help] 5165 Profiency/Skill/Attack Bug(s).

Discussion on [Help] 5165 Profiency/Skill/Attack Bug(s). within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
[Help] 5165 Profiency/Skill/Attack Bug(s).

alright so I've been quickly modifying this source for a few days now. YES, it's 5165. but I've had a few problems wit it lately. to make the long story short, I attack mobs and my profiency does not increase like it's supposed to (not even to level 1) and also, my skills wont appear once I do the command ( idk wat dat has to do with anything but I guess it's a bug?).

Profiencies Bug:

I get this error:

Quote:
System.NullReferenceException: Object not set to an instance of an object
here are the voids I get the errors in ( errors marked in red ):

Code:
public void AddProfExp(ushort Wep, uint Amount)
        {
            [COLOR="DarkRed"]if (Profs.Contains(Wep))[/COLOR]
            {
                Prof P = (Prof)Profs[Wep];
                if (P.Lvl < 20)
                {
                    Profs.Remove(Wep);
                    Amount *= World.Server.ProfExpRate;
                    P.Exp += Amount;
                    if (P.Exp >= Database.ProfExp[P.Lvl])
                    {
                        P.Lvl++;
                        P.Exp = 0;
                        MyClient.LocalMessage(2000, System.Drawing.Color.Yellow, "Your proficiency level has gone up!.");
                        Database.SaveProfs(P, this);
                    }
                    Profs.Add(Wep, P);
                    MyClient.AddSend(Packets.Prof(P));
                }
            }
            else
            {
                Prof P = new Prof();
                P.ID = Wep;
                P.Lvl = 0;
                P.Exp = 0;
                NewProf(P);
            }
        }
Code:
Attacker.IncreaseExp(MaxHP / 10, false);
                    if (!IsSkill)
                    {
                        if (AT == AttackType.Ranged || AT == AttackType.Melee || AT == AttackType.FatalStrike)
                        {
                            if (Attacker.Equips.RightHand.ID != 0)
                                [COLOR="#8b0000"]Attacker.AddProfExp((ushort)Game.ItemIDManipulation.Part(Attacker.Equips.RightHand.ID, 0, 3), Benefit);
            [/COLOR]                if (Attacker.Equips.LeftHand.ID != 0)
                                Attacker.AddProfExp((ushort)Game.ItemIDManipulation.Part(Attacker.Equips.LeftHand.ID, 0, 3), Benefit / 3 * 2);
                        }
                    }
Code:
if (PossMob != null && PossMob.Alive && (MyMath.PointDistance(GC.MyChar.Loc.X, GC.MyChar.Loc.Y, PossMob.Loc.X, PossMob.Loc.Y) <= 3 || AttackType == 28 && MyMath.PointDistance(GC.MyChar.Loc.X, GC.MyChar.Loc.Y, PossMob.Loc.X, PossMob.Loc.Y) <= 15 || GC.MyChar.StatEff.Contains(Game.StatusEffectEn.FatalStrike)))
                                {
                                    if (!GC.MyChar.WeaponSkill(PossMob.Loc.X, PossMob.Loc.Y, PossMob.EntityID))
                                        [COLOR="#8b0000"]PossMob.TakeAttack(GC.MyChar, ref Damage, (Game.AttackType)AttackType, false);[/COLOR]
                                }
any ideas out of that lol?
killersub is offline  
Old 10/19/2010, 10:34   #2
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
You set Profs to null somewhere...
ryuchetval is offline  
Old 10/19/2010, 22:02   #3
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by ryuchetval View Post
You set Profs to null somewhere...
last time I checked my profiencies were alright.

mind telling me where I set it to null at?
killersub is offline  
Reply


Similar Threads Similar Threads
5165 Attack bugs
08/12/2010 - CO2 Private Server - 4 Replies
it not like real conquer.. PlayerOne level : 140 Reborn : 2 All equipment is Super +12 2socket 2supergem Steed is +12 PlayerTwo level : 140
attack ratio 5165
03/19/2010 - CO2 Private Server - 0 Replies
can someone help me fix my attack ratio? its all messed up some classes over power others its anoying
[Help] 5165 attack
02/13/2010 - CO2 Private Server - 3 Replies
So I've got pretty much got everything fixed/added to the source I'm working on and may release or open it for play, not sure yet, but I'm having one issue when attacking. When in TG or TC maps you have to click to attack all the other maps are fine, would anybody know where to fix this and how?
how to fix the attack in 5165
12/27/2009 - CO2 Private Server - 14 Replies
hello guys ..i believe that's my first topic in the forum and i hope somene can help me .. i have a problem in attack .. for example , 1 hit to kill from a newbie to a high lvl +12 dude . that makes no scence .. so if anyone could help me how to fix this .. i will be thankful .. and one more thing ... sometimes the ( CPS ) goes minus ( - ) in my inventory . and even i can buy stuff from any npc who sells items for cps ... is that could be fixed ? .
How to by pass profiency check?
03/27/2007 - Conquer Online 2 - 8 Replies
My Club Proficiency is L10 and im at L9. i tried to edit itemtype of that Club to my level. I see everything ok as wearable, nothing RED but keep getting message unable to use item. I know the other way is use the market upgrade trick but how about my situation?



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


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.