You last visited: Today at 09:21
Advertisement
Private Server Info and Support Thread
Discussion on Private Server Info and Support Thread within the DarkOrbit forum part of the Browsergames category.
01/28/2015, 17:17
#1396
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Quote:
Originally Posted by
lCulito
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
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' ] > 0 && $_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' ] > 0 && $_GET [ 'factionID' ] < 4 ): $faID = (int) ( $_GET [ 'factionID' ] >= 4 ) ? 3 : $_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
01/28/2015, 17:50
#1397
elite*gold: 2
Join Date: Jun 2012
Posts: 990
Received Thanks: 563
who can help fix my udobot for my server
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
((
01/30/2015, 11:40
#1399
elite*gold: 0
Join Date: Jan 2011
Posts: 92
Received Thanks: 49
EDIT: nothing to read xD
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.
01/30/2015, 21:12
#1401
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
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 ?
02/02/2015, 20:22
#1403
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by
fushi23
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
02/02/2015, 22:22
#1404
elite*gold: 0
Join Date: Jun 2013
Posts: 17
Received Thanks: 5
I'm talking about
:
02/03/2015, 06:21
#1405
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.
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?
02/03/2015, 14:21
#1407
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 -> uid , PDO :: 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 -> uid , PDO :: 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..
02/03/2015, 15:42
#1408
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by
UND3RW0RLD
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 -> uid , PDO :: 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 -> uid , PDO :: 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
02/03/2015, 18:39
#1409
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Quote:
Originally Posted by
manulaiko3.0
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.
02/03/2015, 19:47
#1410
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Quote:
Originally Posted by
UND3RW0RLD
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 }
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 +2. The time now is 09:21 .