Case file numbers?

05/10/2020 19:07 denominator#1
Code:
#region ExpBall
                    case 723911:
                        {
                            if (client.ExpBalls < 10)
                            {
                               
                                {
                                    client.IncreaseExperience(client.ExpBall, false);
                                    client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack);
                                    client.ExpBalls++;
                                }
                            }
                            else
                                client.Send(Constants.ExpBallsUsed);
                            break;
                        }
                    #endregion
The code works it's just an example for my question and that question is this, does the case number have to be specific? I'm just a little confused or could I just add any case number provided it's not in use?
05/10/2020 19:22 Asphy×ia#2
it correlates with the itemid so it has to be specific, yes.
05/10/2020 19:41 denominator#3
Thanks that's all I needed to know :)
05/10/2020 20:38 Super Aids#4
If you looked at the switch that the case belongs to... maybe you could have figured it out instead of spamming with another thread.
05/10/2020 21:09 denominator#5
Quote:
Originally Posted by Super Aids View Post
If you looked at the switch that the case belongs to... maybe you could have figured it out instead of spamming with another thread.
It wasn't even in the source in the first place lol and now it is and working

Case in question was for summon ripper and transform ripper
05/10/2020 23:56 Spirited#6
Quote:
Originally Posted by denominator View Post
It wasn't even in the source in the first place lol and now it is and working

Case in question was for summon ripper and transform ripper
I guess you could have looked at the other source you're blindly copying things from then? You should know what you're pasting before you paste it. Not only because you should know what your server is doing, but because many exploits have been intentionally injected into those sources. Be careful.
05/12/2020 16:58 denominator#7
Quote:
Originally Posted by Spirited View Post
I guess you could have looked at the other source you're blindly copying things from then? You should know what you're pasting before you paste it. Not only because you should know what your server is doing, but because many exploits have been intentionally injected into those sources. Be careful.
Was supposed to be in the source but had been removed so I readded it again lol, no worries about being careful it's for me and family only :)