Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 20:17

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

Advertisement



Private Server Info and Support Thread

Discussion on Private Server Info and Support Thread within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old 01/28/2015, 17:17   #1396
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Lightbulb

Quote:
Originally Posted by lCulito View Post
really, this don't work xD need check validation $_GET['factionId'], can't enter if var isn't number. 1 or 2 or 3

sorry, i have bad english xD
this is only 50% right. it can be 1 or 2 or something else.
1 = mmo, 2 = eic, ? = vru.
You can put the request "on hold" replace 3 with anything else like "fhafauk32592398hfak"
but in the end it will still counts for VRU ^^

Quote:
Originally Posted by manulaiko3.0 View Post
Maybe you need to learn SQL
see init.php
PHP Code:
$_GET str_replace(['<''>''\'''\'''\\'], ['<''>''"'''', '\'], $_GET); 
without single quote ' you can't inject
every try to inject something will result in a syntax error, so the sql wont get executed

but additionally i would suggest to add another test.. *e* in fact it is a cast.. just to be 200% sure

replace
PHP Code:
        if (isset($_GET['subaction'], $_GET['factionID']) && $_GET['subaction'] === 'factionChoose' && $_GET['factionID'] > && $_GET['factionID'] < 4):
            
$mapId 1;
            if (
$_GET['factionID'] === 1) {
                
$mapId 1;
                
$x 1000;
                
$y 1000;
            } elseif (
$_GET['factionID'] === 2) {
                
$mapId 5;
                
$x 19800;
                
$y 1000;
            } else {
                
$mapId 9;
                
$x 19600;
                
$y 11900;
            };
            
$MySQLi->query('UPDATE server_1_players SET factionId = ' $_GET['factionID'] . ', mapId = ' $mapId ', x = ' $x ', y = ' $y ' WHERE playerID = ' $Users->DataRow['playerID']);

            echo 
'indexInternal.es.php?action=internalStart';
            exit;
        endif; 
with
PHP Code:
        if (isset($_GET['subaction'], $_GET['factionID']) && $_GET['subaction'] === 'factionChoose' && $_GET['factionID'] > && $_GET['factionID'] < 4):
            
$faID = (int) ($_GET['factionID'] >= 4) ? $_GET['factionID'];
            
$mapId 1;
            if (
$faID === '1') {
                
$mapId 1;
                
$x 1000;
                
$y 1000;
            } elseif (
$faID === '2') {
                
$mapId 5;
                
$x 19800;
                
$y 1000;
            } else {
                
$mapId 9;
                
$x 19600;
                
$y 11900;
            };
            
$MySQLi->query('UPDATE server_1_players SET factionId = ' $faID ', mapId = ' $mapId ', x = ' $x ', y = ' $y ' WHERE playerID = ' $Users->DataRow['playerID']);

            echo 
'indexInternal.es.php?action=internalStart';
            exit;
        endif; 
PS it's untested
UND3RW0RLD is offline  
Old 01/28/2015, 17:50   #1397

 
Destiny's Avatar
 
elite*gold: 2
Join Date: Jun 2012
Posts: 988
Received Thanks: 562
who can help fix my udobot for my server
Destiny is offline  
Old 01/28/2015, 17:57   #1398
 
elite*gold: 0
Join Date: Jan 2015
Posts: 34
Received Thanks: 2
friends please answer my not work chat my emulator darkplanet please helpp chat not work ((
Turkic is offline  
Old 01/30/2015, 11:40   #1399
 
bobn171's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 92
Received Thanks: 49
EDIT: nothing to read xD
bobn171 is offline  
Old 01/30/2015, 21:00   #1400
 
elite*gold: 0
Join Date: Jan 2015
Posts: 34
Received Thanks: 2
Hey my server not working ranking? why? my emulator dark planet emulators.

Turkic is offline  
Old 01/30/2015, 21:12   #1401
 
cryz35's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,718
Received Thanks: 2,382
This took me a lot but finally realised it was a connection problem -.-

Worth it too much fun to spin those drones xD

cryz35 is offline  
Thanks
6 Users
Old 02/02/2015, 18:34   #1402
 
elite*gold: 0
Join Date: Jun 2013
Posts: 17
Received Thanks: 5
Hey i have question, how to add wheels on rank ?
fushi23 is offline  
Old 02/02/2015, 20:22   #1403
 
manulaiko3.0's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by fushi23 View Post
Hey i have question, how to add wheels on rank ?
Wheels? Well, last time it was apples...

If you mean scroll bars it's a jQuery script, look at something that has scrollbars (news for example) and learn how they work
manulaiko3.0 is offline  
Thanks
1 User
Old 02/02/2015, 22:22   #1404
 
elite*gold: 0
Join Date: Jun 2013
Posts: 17
Received Thanks: 5
I'm talking about:
fushi23 is offline  
Old 02/03/2015, 06:21   #1405
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
This is called: GG-Rewards, Rings, GG-Rings...

It's an emulator-part. Send the right packet. The logic tells me, it depends to the user-login-packet. try to modify that.
UND3RW0RLD is offline  
Old 02/03/2015, 07:47   #1406
 
elite*gold: 0
Join Date: Jan 2015
Posts: 34
Received Thanks: 2
hey darkplanets files ammonation problem have not buy why?
Turkic is offline  
Old 02/03/2015, 14:21   #1407
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
check the queries.. c'mon.. I released that files to help CODERS.. There are ALOT of references..

example (from daily-login-class)
PHP Code:
    if ($qry->execute()) {
        if(
$qry->rowCount () != 0) {
            
$sql "UPDATE server_1_player_ammunation SET " $btype['loot'][$i] . " = " $btype['loot'][$i] . " + :count WHERE playerID = :uID";
            
$qry $this->con->prepare($sql);
            
$qry->bindParam(':uID'$this->uidPDO::PARAM_INT);
            
$qry->bindParam(':count'$btype['count'][$i], PDO::PARAM_INT);
            
//$qry->bindParam(':type', $btype['loot'][$i], PDO::PARAM_STR);
            
$qry->execute();
        } else {
            
//storing in old system
            
$qry $this->con->prepare("INSERT INTO server_1_player_all_items (`lootid`, `Q`, `properties`, `interactive`, `playerID`, `userID`) VALUES (:type, :count, '0', 0, :uID, :uID)");
            
$qry->bindParam(':uID'$this->uidPDO::PARAM_INT);
            
$qry->bindParam(':count'$btype['count'][$i], PDO::PARAM_INT);
            
$qry->bindParam(':type'$btype['loot'][$i], PDO::PARAM_STR);
            
$qry->execute();
        }
    } 
you have to convert EVERY SINGLE QUERY to the new system..
UND3RW0RLD is offline  
Thanks
2 Users
Old 02/03/2015, 15:42   #1408
 
manulaiko3.0's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by UND3RW0RLD View Post
check the queries.. c'mon.. I released that files to help CODERS.. There are ALOT of references..

example (from daily-login-class)
PHP Code:
    if ($qry->execute()) {
        if(
$qry->rowCount () != 0) {
            
$sql "UPDATE server_1_player_ammunation SET " $btype['loot'][$i] . " = " $btype['loot'][$i] . " + :count WHERE playerID = :uID";
            
$qry $this->con->prepare($sql);
            
$qry->bindParam(':uID'$this->uidPDO::PARAM_INT);
            
$qry->bindParam(':count'$btype['count'][$i], PDO::PARAM_INT);
            
//$qry->bindParam(':type', $btype['loot'][$i], PDO::PARAM_STR);
            
$qry->execute();
        } else {
            
//storing in old system
            
$qry $this->con->prepare("INSERT INTO server_1_player_all_items (`lootid`, `Q`, `properties`, `interactive`, `playerID`, `userID`) VALUES (:type, :count, '0', 0, :uID, :uID)");
            
$qry->bindParam(':uID'$this->uidPDO::PARAM_INT);
            
$qry->bindParam(':count'$btype['count'][$i], PDO::PARAM_INT);
            
$qry->bindParam(':type'$btype['loot'][$i], PDO::PARAM_STR);
            
$qry->execute();
        }
    } 
you have to convert EVERY SINGLE QUERY to the new system..
My custom database class can do that in 3 - 4 lines
manulaiko3.0 is offline  
Thanks
2 Users
Old 02/03/2015, 18:39   #1409
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Quote:
Originally Posted by manulaiko3.0 View Post
My custom database class can do that in 3 - 4 lines
You may have a good class but you need atleast
PHP Code:
    $qry $this->con->prepare("SELECT * FROM server_1_player_ammunation WHERE playerID = :uID");
    
//..
    
if ($qry->execute()) {
        if(
$qry->rowCount () != 0) {
          
//..
        
} else {
          
//..
        
}
    } 
This was needed because we had old accounts without ammunition-rows. New server have only new accounts so it can be reworked. I were looking for a good example between the general equipment and the ammonation-rows for the client.
UND3RW0RLD is offline  
Old 02/03/2015, 19:47   #1410
 
manulaiko3.0's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by UND3RW0RLD View Post
You may have a good class but you need atleast
PHP Code:
    $qry $this->con->prepare("SELECT * FROM server_1_player_ammunation WHERE playerID = :uID");
    
//..
    
if ($qry->execute()) {
        if(
$qry->rowCount () != 0) {
          
//..
        
} else {
          
//..
        
}
    } 
This was needed because we had old accounts without ammunition-rows. New server have only new accounts so it can be reworked. I were looking for a good example between the general equipment and the ammonation-rows for the client.
The same example with my Database class:

PHP Code:
$rows $Database->get("server_1_player_ammunation""WHERE playerID=".$Users->get("playerID"));
foreach(
$rows as $row) {
          
//Do the shit you want

manulaiko3.0 is offline  
Thanks
2 Users
Reply

Tags
2018, darkorbit, emulator, private, server


Similar Threads Similar Threads
Private private server :P READ FOR MORE INFO
12/01/2010 - SRO Private Server - 12 Replies
hey guys im wondering if there is anyway to make a real private server like ZSZC or SWSRO or MYSRO but to where i can only play and level a character and as if it was a real private server. but just for me, not like an emulator where im already lvl 90 or 120 or whatever. i mean one where i set the rates and i level. if not then ok u can close this. but i was just wondering.



All times are GMT +1. The time now is 20:18.


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