[Release] Orbit Reborn - Source

11/02/2014 15:27 Puma<3#286
my server is via hamachi on i have a hosting server but the clan dont exist hangar & shop + EMulator
11/02/2014 15:51 steppdroid#287
Quote:
Originally Posted by linkpad View Post
You really don't understand these lines of code :

Code:
            if (mMostDamage <= 10000)
            {
                mBallSpeed = 0;
            }

            if (mMostDamage > 8000)
            {
                mBallSpeed = 1;
            }
            if (mMostDamage > 4000)
            {
                mBallSpeed = 2;
            }
            if (mMostDamage > 1500)
            {
                mBallSpeed = 3;
            }
For all people complaining about spaceball not "working", trust me it does. The spaceball was programmed for a lot of players playing it and not one or two users. How does it works ? It check how many damage players did to the ball every 5secs. If the ball speed is 0, the ball dont move, 3 is the fastest ball speed. Now you know that, you should edit your if statement because as it stand, more damage you do, more slow the ball will be...



I'm ok with giving a pack of my source but at least provide improvement in it, and a correct one. Not this "false" fix of spaceball.



You didn't misunderstand the thread, these source I published to the community are here for helping others programmers and not for making a copy of "Orbit Reborn." So yes, post in this thread should be related to coding and not "how to install the server".
Now this form is correct?

Code:
if (mMostDamage <= 100000)
            {
                mBallSpeed = 0;
            }

            if (mMostDamage > 100000)
            {
                mBallSpeed = 1;
            }
            if (mMostDamage > 200000)
            {
                mBallSpeed = 2;
            }
            if (mMostDamage > 300000)
            {
                mBallSpeed = 3;
            }
11/02/2014 16:30 UND3RW0RLD#288
Code:
            if (mMostDamage <= 5000)
            {
                mBallSpeed = 0;
            }

            if (mMostDamage > 5000 && mMostDamage <= 30000)
            {
                mBallSpeed = 1;
            }
            if (mMostDamage > 30000 && mMostDamage <= 80000)
            {
                mBallSpeed = 2;
            }
            if (mMostDamage >= 80001)
            {
                mBallSpeed = 3;
            }
:)
11/02/2014 23:54 supraturbo92#289
u mean when u log in as vru no connection if so u need to change spacemap/xml/maps change 127.0.0.1 to ur ip that worked for me and do u know where to put rank script
11/03/2014 02:12 leone1008#290
I wanted to know if you could attach the complete server , of course I have it there for those who may have had difficulties .
Waiting for your reply,I cordially greet.
11/03/2014 13:36 leone1008#291
[Only registered and activated users can see links. Click Here To Register...]
this is a full pack of Orbit Reborn... web+emu+more fix !!!NOT HANGAR!!!




The Inventory.swf work but i dont see image
11/03/2014 16:19 cryz35#292
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
Code:
            if (mMostDamage <= 5000)
            {
                mBallSpeed = 0;
            }

            if (mMostDamage > 5000 && mMostDamage <= 30000)
            {
                mBallSpeed = 1;
            }
            if (mMostDamage > 30000 && mMostDamage <= 80000)
            {
                mBallSpeed = 2;
            }
            if (mMostDamage >= 80001)
            {
                mBallSpeed = 3;
            }
:)
For your information, the && is not neccessary in theory, because you are not using "else if" so it will still check all if clauses.
I would do using ternary operator:

mBallSpeed = mMostDamage < 5000 ? 0 : (mMostDamage < 30000 ? 1 : 2);
11/03/2014 16:38 UND3RW0RLD#293
Quote:
Originally Posted by cryz35 View Post
For your information, the && is not neccessary in theory, because you are not using "else if" so it will still check all if clauses.
you are totally right. :)

Code:
if (mMostDamage <= 5000)
{
    mBallSpeed = 0;
}
else if (mMostDamage > 5000 && mMostDamage <= 30000)
{
    mBallSpeed = 1;
}
else if (mMostDamage > 30000 && mMostDamage <= 80000)
{
    mBallSpeed = 2;
}
else if (mMostDamage >= 80001)
{
    mBallSpeed = 3;
}
11/03/2014 19:37 steppdroid#294
How open All list "hall of fame"?!
[Only registered and activated users can see links. Click Here To Register...]
11/03/2014 19:38 linkpad#295
Quote:
Originally Posted by steppdroid View Post
How open All list "hall of fame"?!
[Only registered and activated users can see links. Click Here To Register...]
Start learning to code, and then the magic will open it !
11/03/2014 19:58 steppdroid#296
Quote:
Originally Posted by linkpad View Post
Start learning to code, and then the magic will open it !
thanks
11/03/2014 20:55 BotorCrime#297
How i can add new button ... ( ui.swf ?? )
[Only registered and activated users can see links. Click Here To Register...]
11/03/2014 21:05 linkpad#298
Quote:
Originally Posted by BotorCrime View Post
How i can add new button ... ( ui.swf ?? )
[Only registered and activated users can see links. Click Here To Register...]
It's really great to say "welcome on Blur Orbit made by Crune", you could at least give some credits.
11/03/2014 21:12 steppdroid#299
Quote:
Originally Posted by linkpad View Post
Start learning to code, and then the magic will open it !
I have fix this :) also the section donate :)

[Only registered and activated users can see links. Click Here To Register...]
11/03/2014 21:26 BotorCrime#300
Quote:
Originally Posted by linkpad View Post
It's really great to say "welcome on Blur Orbit made by Crune", you could at least give some credits.
It's only PRE-ALPHA 8)
At the end I will add that you are the main author. ;))

----> [Only registered and activated users can see links. Click Here To Register...]

Anyway. How i can add new button ;3 ?