Register for your free account! | Forgot your password?

You last visited: Today at 16:14

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

 

People cannot Level

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
People cannot Level

people on my server cant level
i just recently came across this problem

they attack stuf they dont level
they use exp ***** they dont level
any1 know what sup



Arcotemple:) is offline  
Old   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
What source?


Incariuz is offline  
Old   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by Incariuz View Post
What source?
lol 5017 look at my siggy
Arcotemple:) is offline  
Old   #4

 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,384
Received Thanks: 1,046
Check your AddExp fonction.


CptSky is offline  
Old   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by CptSky View Post
Check your AddExp fonction.
i did and i cant seem to figure out whats wrong with it
Arcotemple:) is offline  
Old   #6
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
If it's LOTF, it should work fine, unless you've tampered with it. On a side note though, I don't suggest trying to run a server off LOTF, simply use it to learn. You'll never hold more then 10-20 players, regardless how many bugs you fix. The entire source needs to e re-written in order to avoid DB data transfer issues.

Edit: On a side note though, if you tell me where it is in what file, I'll go through my old lotf source, and try and find a way to fix it.
Incariuz is offline  
Old   #7
 
elite*gold: 0
Join Date: Jun 2009
Posts: 18
Received Thanks: 0
works works works
vhalang2009 is offline  
Old   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Code:
        public bool AddExp(ulong Amount, bool CountMisc)
        {

            Ready = false;
            if (CountMisc)
                Exp += (ulong)(Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));
            else
                Exp += Amount;
            bool Leveled = false;

            if (Exp > DataBase.NeededXP(Level) && Level < 130)
            {
                Leveled = true;
                while (Exp > DataBase.NeededXP(Level) && Level < 130)
                {
                    Exp -= DataBase.NeededXP(Level);
                        ;
                    if (Level == 3)
                    {
                        if (Job < 16 && Job > 9)
                            LearnSkill(1110, 0);
                        if (Job < 16 && Job > 9 || Job < 26 && Job > 19)
                            LearnSkill(1015, 0);
                        if (Job < 26 && Job > 19)
                            LearnSkill(1025, 0);
                    }
                }
            }
there it is
anything wrong with it?
Arcotemple:) is offline  
Old   #9
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,031
Received Thanks: 58
Quote:
Originally Posted by Arcotemple:) View Post
Code:
        public bool AddExp(ulong Amount, bool CountMisc)
        {

            Ready = false;
            if (CountMisc)
                Exp += (ulong)(Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));
            else
                Exp += Amount;
            bool Leveled = false;

            if (Exp > DataBase.NeededXP(Level) && Level < 130)
            {
                Leveled = true;
                while (Exp > DataBase.NeededXP(Level) && Level < 130)
                {
                    Exp -= DataBase.NeededXP(Level);
                        ;
                    if (Level == 3)
                    {
                        if (Job < 16 && Job > 9)
                            LearnSkill(1110, 0);
                        if (Job < 16 && Job > 9 || Job < 26 && Job > 19)
                            LearnSkill(1015, 0);
                        if (Job < 26 && Job > 19)
                            LearnSkill(1025, 0);
                    }
                }
            }
there it is
anything wrong with it?
Now you'll learn to be doing backups every 1-2 days lol.
damianpesta is offline  
Old   #10
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
This is what I have in mine. May not function 100% for you, depending on how your source has been altered, but hope it helps.

Code:
        public bool AddExp(ulong Amount, bool CountMisc)
        {
            Ready = false;
            if (RBCount < 1)
                Amount /= 3;
            if (CountMisc && !EPot)
                Exp += (ulong)(Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));
            else if (EPot)
                Exp += (ulong)((Amount * DataBase.ExpRate * AddExpPc * (Convert.ToDouble(Potency) / 100 + 1)) * 2);

            else
                if (EPot)
                {
                    Exp *= 2;
                }

            Exp += Amount;
            if (EPotRate == true)
                Exp += (ulong)((double)Amount * (double)DataBase.ExpRate * (double)AddExpPc * (Convert.ToDouble(Potency) / 100 + 1));

            bool Leveled = false;

            if (Exp > DataBase.NeededXP(Level) && Level < 135)
            {
                Leveled = true;
                while (Exp > DataBase.NeededXP(Level) && Level < 135)
                {
                    Exp -= DataBase.NeededXP(Level);
                    Level++;
                    if (RBCount > 0)
                    {
                        StatP += 3;
                        MyClient.SendPacket(General.MyPackets.Vital(UID, 11, StatP));
                    }
                    if (Level == 3)
                    {
                        if (Job < 16 && Job > 9)
                            LearnSkill(1110, 0);
                        if (Job < 16 && Job > 9 || Job < 26 && Job > 19)
                            LearnSkill(1015, 0);
                        if (Job < 26 && Job > 19)
                            LearnSkill(1025, 0);
                    }
                }
            }
            if (Leveled)
            {
                if (MyGuild != null)
                    MyGuild.Refresh(this);
                if (RBCount < 1)
                    DataBase.GetStats(this);
                GetEquipStats(1, true);
                GetEquipStats(2, true);
                GetEquipStats(3, true);
                GetEquipStats(4, true);
                GetEquipStats(5, true);
                GetEquipStats(6, true);
                GetEquipStats(8, true);
                MaxHP = BaseMaxHP();
                MaxMP = BaseMaxMP();
                MinAtk = Str;
                MaxAtk = Str;
                Potency = Level;
                GetEquipStats(1, false);
                GetEquipStats(2, false);
                GetEquipStats(3, false);
                GetEquipStats(4, false);
                GetEquipStats(5, false);
                GetEquipStats(6, false);
                GetEquipStats(8, false);

                CurHP = MaxHP;
                CurMP = MaxMP;

                if (Level >= 120)
                    StatP += 3;

                MyClient.SendPacket(General.MyPackets.Vital((long)UID, 13, Level));
                MyClient.SendPacket(General.MyPackets.Vital((long)UID, 16, Str));
                MyClient.SendPacket(General.MyPackets.Vital((long)UID, 17, Agi));
                MyClient.SendPacket(General.MyPackets.Vital((long)UID, 15, Vit));
                MyClient.SendPacket(General.MyPackets.Vital((long)UID, 14, Spi));
                MyClient.SendPacket(General.MyPackets.Vital((long)UID, 0, CurHP));
                MyClient.SendPacket(General.MyPackets.Vital(UID, 11, StatP));
                World.LevelUp(this);
            }

            MyClient.SendPacket(General.MyPackets.Vital((long)UID, 5, Exp));
            Ready = true;

            if (Leveled)
                return true;
            else
                return false;
        }
Edit: Yes, I did the minor fix that most people never noticed or tried to fix... I made it so characters gain 3 Att points every level after 120.
Incariuz is offline  
Thanks
1 User
Old   #11
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 489
Same i forgot about that fix ( i was never 120 in real co so i didnt knew :P)
~Yuki~ is offline  
Old   #12

 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,384
Received Thanks: 1,046
Quote:
Originally Posted by Incariuz View Post
If it's LOTF, it should work fine, unless you've tampered with it. On a side note though, I don't suggest trying to run a server off LOTF, simply use it to learn. You'll never hold more then 10-20 players, regardless how many bugs you fix. The entire source needs to e re-written in order to avoid DB data transfer issues.

Edit: On a side note though, if you tell me where it is in what file, I'll go through my old lotf source, and try and find a way to fix it.
I can hold 50-75 players with my edited LOTF source but after a moment, the game server freeze The login server work fine because I use my login server and the DataBase is in flat-file format. But it's true, LOTF has to be re-written
CptSky is offline  
Old   #13
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by damianpesta View Post
Now you'll learn to be doing backups every 1-2 days lol.
i do do backups every 1-2 days and i put my backup code in place of the regular code and debugged and **** and people still cant level!


Arcotemple:) is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
How to level to 130 the for rich people.
Ok first of all im going to assume everyone knows how to play conquer. Level your charecter the way you know you how. 1:Get Heavens Blessing. This...
13 Replies - CO2 Guides & Templates
Help with max level [Only Exp. People please]
Hey, im Jerry and im working on my server max level well i have hexed the MSG Server to alow up to level 260 well the problem im having is the pets...
10 Replies - EO PServer Hosting
[RAF] Summon people above level 60
To summon people above level 60 with the refer-a-friend summon; simply invite them to the group, spam the summon button in the friendslist, and...
3 Replies - WoW Exploits, Hacks, Tools & Macros



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


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.