[Release]CoEmuV2 EXPBall code

06/02/2009 15:44 KraHen#1
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 $HaDoW#2
Good Job dude ! ^_^
06/02/2009 15:55 pro.sword#3
mmm..where's useitem.cs???
06/02/2009 16:02 KraHen#4
In your solution, under the Handlers folder
06/02/2009 16:15 m4l4ria#5
Quote:
Originally Posted by pro.sword View Post
mmm..where's useitem.cs???
Handlers/Useitem.cs...

Thanks Man!
06/02/2009 16:31 coreymills#6
nice work, keep it up
06/02/2009 16:34 TheLeGend209#7
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
06/02/2009 16:41 danielachraf#8
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
06/02/2009 17:22 xXVamXx#9
At last this wat I have been looking.

Thanks man
06/02/2009 17:49 almoshax.#10
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 almoshax.#11
##edit sorry for post again my bad
06/02/2009 17:51 KraHen#12
Take the example from the leveling experience for leveling. I persoannly prefer it just like this.
06/02/2009 21:02 koio#13
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 yuko#14
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 koio#15
thanks
i tryed it with a link but it didnīt work
i updated the code