|
You last visited: Today at 14:21
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.
06/02/2009, 15:44
|
#1
|
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;
}
|
|
|
|
06/02/2009, 15:54
|
#2
|
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
|
Good Job dude ! ^_^
|
|
|
06/02/2009, 15:55
|
#3
|
elite*gold: 0
Join Date: Jan 2009
Posts: 5
Received Thanks: 4
|
mmm..where's useitem.cs???
|
|
|
06/02/2009, 16:02
|
#4
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
In your solution, under the Handlers folder
|
|
|
06/02/2009, 16:15
|
#5
|
elite*gold: 0
Join Date: Jan 2009
Posts: 45
Received Thanks: 8
|
Quote:
Originally Posted by pro.sword
mmm..where's useitem.cs???
|
Handlers/Useitem.cs...
Thanks Man!
|
|
|
06/02/2009, 16:31
|
#6
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
nice work, keep it up
|
|
|
06/02/2009, 16:34
|
#7
|
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
|
Quote:
Originally Posted by ElDeRnEcRo
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
|
|
|
06/02/2009, 16:41
|
#8
|
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
|
Quote:
Originally Posted by TheLeGend209
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
|
|
|
06/02/2009, 17:22
|
#9
|
elite*gold: 0
Join Date: Aug 2008
Posts: 91
Received Thanks: 31
|
At last this wat I have been looking.
Thanks man
|
|
|
06/02/2009, 17:49
|
#10
|
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??
|
|
|
06/02/2009, 17:49
|
#11
|
elite*gold: 0
Join Date: Oct 2008
Posts: 76
Received Thanks: 47
|
##edit sorry for post again my bad
|
|
|
06/02/2009, 17:51
|
#12
|
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.
|
|
|
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;
}
|
|
|
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
|
|
|
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
|
|
|
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.
|
|