Register for your free account! | Forgot your password?

You last visited: Today at 14:21

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

Advertisement



[Release]CoEmuV2 EXPBall code

Discussion on [Release]CoEmuV2 EXPBall code within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
[Release]CoEmuV2 EXPBall code

This is converted from LOTF, but meh, here it goes.

1) Open your UseItem.cs

2) Add this code under one of the cases :

Quote:
case 723700: // ExpBall
{
int XPtoGive = 0;
if(CSocket.Client.Level < 100)
XPtoGive = 1295000 + CSocket.Client.Level * 50000;
else if(CSocket.Client.Level < 110)
XPtoGive = 1395000 + CSocket.Client.Level * 80000;
else if(CSocket.Client.Level < 115)
XPtoGive = 1595000 + CSocket.Client.Level * 100000;
else if(CSocket.Client.Level < 120)
XPtoGive = 1895000 + CSocket.Client.Level * 120000;
else if(CSocket.Client.Level < 125)
XPtoGive = 2095000 + CSocket.Client.Level * 150000;
else if(CSocket.Client.Level < 130)
XPtoGive = 2395000 + CSocket.Client.Level * 180000;
else if(CSocket.Client.Level < 135)
XPtoGive = 2895000 + CSocket.Client.Level * 200000;
CSocket.Client.Exp += (ulong)XPtoGive;
Delete = true;
CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Exp, Struct.StatusTypes.Exp));

break;
}
KraHen is offline  
Thanks
20 Users
Old 06/02/2009, 15:54   #2
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
Good Job dude ! ^_^
$HaDoW is offline  
Old 06/02/2009, 15:55   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 5
Received Thanks: 4
mmm..where's useitem.cs???
pro.sword is offline  
Old 06/02/2009, 16:02   #4


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
In your solution, under the Handlers folder
KraHen is offline  
Old 06/02/2009, 16:15   #5
 
m4l4ria's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 45
Received Thanks: 8
Quote:
Originally Posted by pro.sword View Post
mmm..where's useitem.cs???
Handlers/Useitem.cs...

Thanks Man!
m4l4ria is offline  
Thanks
1 User
Old 06/02/2009, 16:31   #6
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
nice work, keep it up
coreymills is offline  
Old 06/02/2009, 16:34   #7
 
TheLeGend209's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
Quote:
Originally Posted by ElDeRnEcRo View Post
This is converted from LOTF, but meh, here it goes.

1) Open your UseItem.cs

2) Add this code under one of the cases :
Sweet!!! Im thinking about coding a coemu source then releaseing it with tails + more
TheLeGend209 is offline  
Old 06/02/2009, 16:41   #8
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by TheLeGend209 View Post
Sweet!!! Im thinking about coding a coemu source then releaseing it with tails + more
bad idea .. if you want to release ... release some codes .. not the source
danielachraf is offline  
Old 06/02/2009, 17:22   #9
 
xXVamXx's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 91
Received Thanks: 31
At last this wat I have been looking.

Thanks man
xXVamXx is offline  
Old 06/02/2009, 17:49   #10
 
almoshax.'s Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 76
Received Thanks: 47
good release but there is problem it can make you more than 100%
make you char level 1 and use 6 expball it will make you like 12222%
any idea??
almoshax. is offline  
Old 06/02/2009, 17:49   #11
 
almoshax.'s Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 76
Received Thanks: 47
##edit sorry for post again my bad
almoshax. is offline  
Old 06/02/2009, 17:51   #12


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Take the example from the leveling experience for leveling. I persoannly prefer it just like this.
KraHen is offline  
Old 06/02/2009, 21:02   #13
 
elite*gold: 0
Join Date: Sep 2008
Posts: 132
Received Thanks: 64
here is my way:
Code:
                case 723700:
                    {
                        int ExpToGive = 0;
                        if (CSocket.Client.Level < 100)
                            ExpToGive = 1295000 + CSocket.Client.Level * 50000;
                        else if (CSocket.Client.Level < 110)
                           ExpToGive=1395000 + CSocket.Client.Level * 80000;
                        else if (CSocket.Client.Level < 115)
                            ExpToGive=1595000 + CSocket.Client.Level * 100000;
                        else if (CSocket.Client.Level < 120)
                            ExpToGive=1895000 + CSocket.Client.Level * 120000;
                        else if (CSocket.Client.Level < 125)
                            ExpToGive=2095000 + CSocket.Client.Level * 150000;
                        else if (CSocket.Client.Level < 130)
                           ExpToGive=2395000 + CSocket.Client.Level * 180000;
                        else if (CSocket.Client.Level < 135)
                            ExpToGive=2895000 + CSocket.Client.Level * 200000;


                        if (ExpToGive > 0)
                        {
                            //ExpToGive *= Nano.EXP_MULTIPLER;
                            CSocket.Client.Exp += (ulong)ExpToGive;
                            if (Calculation.NeededExp(CSocket.Client.Level) <= CSocket.Client.Exp)
                            {
                                Calculation.GiveLevel(CSocket);
                            }
                            else
                            {
                                //CSocket.Send(ConquerPacket.Exp(CSocket.Client.ID, 5, CSocket.Client.Exp));
                                CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Exp, Struct.StatusTypes.Exp));
                            }
                        }
                        else
                        {
                            Delete = false;
                        }
                    
                    break;
                    }
koio is offline  
Thanks
1 User
Old 06/02/2009, 21:09   #14
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
lol, why did you duplicate the codes. don't forget that you can travel "link" calculation and handel
Calculation.NeededExp
Calculation.GiveExp

the way you did it isn't so bad but it takes to much place. you'll be better to link them

good luck
yuko is offline  
Thanks
1 User
Old 06/02/2009, 21:14   #15
 
elite*gold: 0
Join Date: Sep 2008
Posts: 132
Received Thanks: 64
thanks
i tryed it with a link but it didnīt work
i updated the code
koio is offline  
Reply


Similar Threads Similar Threads
[(Awesome)RELEASE] CoEmuv2.Nano(5095) Source Code
09/04/2013 - CO2 PServer Guides & Releases - 1480 Replies
--DO NOT PM ME ABOUT THIS SOURCE CODE OR ABOUT WHERE TO EDIT, CHANGE, ETC ANYTHING. THIS SOURCE CODE IS PROVIDED "AS IS" AND NO IMPLIED WARRANTY OR ASSISTANCE IS OFFERED TO YOU-- Sorry, but I'm overwhelmed with PMs about this.. This is CoEmu v2's leveling server source code. There is no implementation of any commands for players, though it is possible to add some. I will be updating this sometimes, though I'm not sure how often. You need a client of version 5095 to play with this...



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


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