Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rohan
You last visited: Today at 13:34

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

 

[Guide] Starting your LOCAL rohan private server

Closed Thread
 
Old   #736
 
elite*gold: 0
Join Date: Jul 2013
Posts: 82
Received Thanks: 7
@Angelboss

If you're using xammp-apache as webserver then you shud make sure that all those 3 .php work .. Try my method i post before. go to your browser and try this
Code:
on address type :

127.0.0.1:httpport/rohanauth/sendcode3.asp?id=urid&passwd=urpass 

if respond = -202 then bypass succeed
Back then when i tried using xammp-apache (1.8.2-0)as webserver.. i got 2 problems :
1. Making .asp work in apache is not easy
2. Those 3 .php require httpresponse class support .. which is not included in that current php ver.



moemet is offline  
Old   #737
 
elite*gold: 0
Join Date: Nov 2011
Posts: 74
Received Thanks: 3
Hi guys what i id i have to chenge on SQL ?

// Title text
$title = "Registration Page";

// Copyright text
$copy = "Copyright 2013 by RitoYuuki ";

// Change XXXX to your computer name
$connection_string = "DRIVER={SQL Server};SERVER=192.168.0.175;DATABASE=RohanUser";

// Change to your SQLEXPRESS username and password
$user = "sa";
$pass = "wild3108";

// DONT EDIT THIS
include_once "class.func.php";
$func=new func;


flyghter is offline  
Old   #738
 
elite*gold: 0
Join Date: Jul 2013
Posts: 82
Received Thanks: 7
Quote:
Originally Posted by flyghter View Post
Hi guys what i id i have to chenge on SQL ?

// Title text
$title = "Registration Page";

// Copyright text
$copy = "Copyright 2013 by RitoYuuki ";

// Change XXXX to your computer name
$connection_string = "DRIVER={SQL Server};SERVER=192.168.0.175;DATABASE=RohanUser";

// Change to your SQLEXPRESS username and password
$user = "sa"; <-----
$pass = "wild3108"; <----

// DONT EDIT THIS
include_once "class.func.php";
$func=new func;
I still dont get your question..but if it's about regist*.php then you shud change that 192.168.0.175 <- to your SQL ip (normally it will localloop unless you host SQL at diff point ) and SQL login&password (sa&wild*)
moemet is offline  
Old   #739
 
elite*gold: 0
Join Date: Mar 2009
Posts: 260
Received Thanks: 37
// Change to your SQLEXPRESS username and password
$user = "sa";
$pass = "your db pass";


kennethz008 is offline  
Old   #740
 
elite*gold: 0
Join Date: Jan 2009
Posts: 25
Received Thanks: 0
When i go to that adress i get :
"Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\RohanAuth\include\dbconn.php on line 11"

Then i realise that i get this problem cuz of my windows is 64bits ..so my server
AngelBoss is offline  
Old   #741
 
elite*gold: 0
Join Date: Mar 2009
Posts: 260
Received Thanks: 37
Quote:
Originally Posted by AngelBoss View Post
When i go to that adress i get :
"Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\RohanAuth\include\dbconn.php on line 11"

Then i realise that i get this problem cuz of my windows is 64bits ..so my server
Whats the problem with 64bit? Im using window 7 ultimate sp1 64bit and im running my local server w/o any problem
kennethz008 is offline  
Old   #742
 
elite*gold: 0
Join Date: Jul 2013
Posts: 82
Received Thanks: 7
Quote:
Originally Posted by AngelBoss View Post
When i go to that adress i get :
"Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\RohanAuth\include\dbconn.php on line 11"

Then i realise that i get this problem cuz of my windows is 64bits ..so my server
You can check this site .. since some people encounter same problem with 64

Code:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/0e18b438-09c8-43c9-93fd-b3401545bd8c/php54-and-sqlsrv-problem

part of chat :
"You have 64-bit PHP installed, which will not be able to load the SQLSRV extension, which is built as 32-bit."
Hopefully help.. i guess running server outside vmware not as easy as it stated in first page..but that's fun of doing this puzzle
moemet is offline  
Old   #743
 
elite*gold: 0
Join Date: Oct 2008
Posts: 30
Received Thanks: 3
how edit this in pc outside vmware to function?
login5.php


<?php
include_once 'include/dbconn.php' ;

$id = ( isset( $_GET['id'] ) ) ? $_GET['id'] : $_POST['id'] ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver = ( isset( $_GET['ver'] ) ) ? $_GET['ver'] : $_POST['ver'] ;
$test = ( isset( $_GET['test'] ) ) ? $_GET['test'] : $_POST['test'] ;
$code = ( isset( $_GET['code'] ) ) ? $_GET['code'] : $_POST['code'] ;
$pcode = ( isset( $_GET['pcode'] ) ) ? $_GET['pcode'] : $_POST['pcode'] ;
$ip = $_SERVER['REMOTE_ADDR'] ;
$nation = $_GET['nation'] ;

//$id = $_POST['id'] ;
//$pw = $_POST['passwd'] ;
//$ip = $_SERVER['REMOTE_ADDR'] ;

if ( $id == "" ) die('-1|-2|-1');
if ( $nation == "" ) die('-1|-3|-1');
// too lazy to do regexp for version, imma skip it -> die('-1|-4|-1');
if ( $pcode == "" ) die('-1|-5|-1');
if ( $nation == "" ) die('-1|-3|-1');


# calling sqlsrv stored procedure
$tsql = "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id = -1 ;
$sess_id = str_repeat(' ',36) ;
$run_ver = str_repeat(' ',20) ;
$bill_no = -1 ;
$grade = -1 ;
$ret = -1 ;


$tsql_params = array(
$id ,
md5($pw) ,
$nation ,
$ver ,
$test ,
$ip ,
$code ,
array(&$user_id , SQLSRV_PARAM_OUT ) ,
array(&$sess_id , SQLSRV_PARAM_OUT ) ,
array(&$run_ver , SQLSRV_PARAM_OUT ) ,
array(&$bill_no , SQLSRV_PARAM_OUT ) ,
array(&$grade , SQLSRV_PARAM_OUT ) ,
array(&$ret , SQLSRV_PARAM_OUT )
);

$res = sqlsrv_query($oConn,$tsql,$tsql_params);
if ($res === false ){
die( print_r( sqlsrv_errors(), true));
}

HttpResponse::setData( join( '|', array($sess_id,$user_id,$run_ver,$grade,$code) ) );
HttpResponse::send();
?>

in my thought this is the problem in error 3002
i dont have know Knowledge in php thats why i cant connect in db of mssql.. im noob

just to want have local server for my friend and comp.shop player .. anyone could help me?? thank
you in advance!


Quote:
Originally Posted by ultimate-pinoy View Post
how edit this in pc outside vmware to function?
login5.php


<?php
include_once 'include/dbconn.php' ;

$id = ( isset( $_GET['id'] ) ) ? $_GET['id'] : $_POST['id'] ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver = ( isset( $_GET['ver'] ) ) ? $_GET['ver'] : $_POST['ver'] ;
$test = ( isset( $_GET['test'] ) ) ? $_GET['test'] : $_POST['test'] ;
$code = ( isset( $_GET['code'] ) ) ? $_GET['code'] : $_POST['code'] ;
$pcode = ( isset( $_GET['pcode'] ) ) ? $_GET['pcode'] : $_POST['pcode'] ;
$ip = $_SERVER['REMOTE_ADDR'] ;
$nation = $_GET['nation'] ;

//$id = $_POST['id'] ;
//$pw = $_POST['passwd'] ;
//$ip = $_SERVER['REMOTE_ADDR'] ;

if ( $id == "" ) die('-1|-2|-1');
if ( $nation == "" ) die('-1|-3|-1');
// too lazy to do regexp for version, imma skip it -> die('-1|-4|-1');
if ( $pcode == "" ) die('-1|-5|-1');
if ( $nation == "" ) die('-1|-3|-1');


# calling sqlsrv stored procedure
$tsql = "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id = -1 ;
$sess_id = str_repeat(' ',36) ;
$run_ver = str_repeat(' ',20) ;
$bill_no = -1 ;
$grade = -1 ;
$ret = -1 ;


$tsql_params = array(
$id ,
md5($pw) ,
$nation ,
$ver ,
$test ,
$ip ,
$code ,
array(&$user_id , SQLSRV_PARAM_OUT ) ,
array(&$sess_id , SQLSRV_PARAM_OUT ) ,
array(&$run_ver , SQLSRV_PARAM_OUT ) ,
array(&$bill_no , SQLSRV_PARAM_OUT ) ,
array(&$grade , SQLSRV_PARAM_OUT ) ,
array(&$ret , SQLSRV_PARAM_OUT )
);

$res = sqlsrv_query($oConn,$tsql,$tsql_params);
if ($res === false ){
die( print_r( sqlsrv_errors(), true));
}

HttpResponse::setData( join( '|', array($sess_id,$user_id,$run_ver,$grade,$code) ) );
HttpResponse::send();
?>

in my thought this is the problem in error 3002
i dont have know Knowledge in php thats why i cant connect in db of mssql.. im noob

just to want have local server for my friend and comp.shop player .. anyone could help me?? thank
you in advance!
and if no one know(maybe but they dont want to help) about this can anyone upload asp version of rohanauth???
ultimate-pinoy is offline  
Old   #744
 
elite*gold: 0
Join Date: Jul 2013
Posts: 82
Received Thanks: 7
@ultimate-pinoy

Are you talking about gateserver error 3002... or are you talking about login5 script ? coz as far as i know the only script that need edited is serverlist5.php ... change the format into your ip. And if you're looking asp version of this login5 then you need to change xammp-apache with another webserver.

In order to run server outside vmware you need to make sure then these 4 files work.
1. dbtserver.exe
2. logserver.exe
3. map*.exe
4. aiserver.exe

Plus 3 working script for webserver either in asp or php.
moemet is offline  
Old   #745
 
elite*gold: 0
Join Date: Oct 2008
Posts: 30
Received Thanks: 3
can anyone pls upload your working php script,that will work outside vmware..
ultimate-pinoy is offline  
Old   #746
 
elite*gold: 0
Join Date: Aug 2013
Posts: 28
Received Thanks: 1
HELP ALL, What Can I Do..

ermawati is offline  
Old   #747
 
elite*gold: 0
Join Date: Jul 2013
Posts: 137
Received Thanks: 28
tech me please in TeamViewer ...
itdhos is offline  
Old   #748
 
elite*gold: 0
Join Date: Mar 2013
Posts: 1
Received Thanks: 0
can anyone help me ? I need rohan databasse
Nakamz is offline  
Old   #749
 
elite*gold: 0
Join Date: Dec 2009
Posts: 19
Received Thanks: 0
Is RitoYuuki scammer ?
eberic1 is offline  
Old   #750
 
elite*gold: 0
Join Date: Aug 2013
Posts: 28
Received Thanks: 1
Any Solution?

Quote:


ermawati is offline  
Closed Thread



« Previous Thread | Next Thread »



All times are GMT +2. The time now is 13:34.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.