Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Archlord
You last visited: Today at 20:06

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

Advertisement



[REQUEST] Archlord database explanation

Discussion on [REQUEST] Archlord database explanation within the Archlord forum part of the MMORPGs category.

Reply
 
Old   #1
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
[REQUEST] Archlord database explanation

I will make CMS for Archlord so everyone who will need website for hes private server he just need to install it, so users will be able to register, login, change password, email .... admin panel where admin can controll users, posts, events, etc...

But before all that i need to know is all servers ep1 and ep2 use same database and what type is ?
mlukac89 is offline  
Old 03/02/2014, 13:19   #2
 
al3css's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 1,189
Received Thanks: 439
same oracle 9i db...
al3css is offline  
Old 03/02/2014, 13:23   #3
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
can i setup it in phpmyadmin on localhost then, because i use mysql on localhost ?
mlukac89 is offline  
Old 03/02/2014, 13:28   #4
 
al3css's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 1,189
Received Thanks: 439
nope...instal oracle 9i or oracle 11g or 10g and you need to use the archlord serverfiles/to make a test serverfiles in order to work with it
al3css is offline  
Old 03/03/2014, 01:05   #5
 
elite*gold: 0
Join Date: Jan 2014
Posts: 5
Received Thanks: 2
If would want to make myself a webpage using xampp I would use mysql database for ID and PW and other stuff like CC and **** for webpage only. Then i would install instantclient 12.1 for oracle. With PHP you are then able to connect to remote computer that host archlord server.

During register process your PHP script can access archlord oracle database on remote computer to create new/edit account. This way you give your users indirect access to gameserver database. Imo this almost eliminates violation of games database as you can check data from mysql before you access and change oracle database and you seperate forums, chantra store and other stuff to another computer decreasing database lag to high populated servers.

This is how i would do it. If you need webpage on same computer as gameserver is then you dont need instantclient 12.1 you only need to connect to oracle and know how to use oracle database queries...
patkica is offline  
Old 03/03/2014, 10:02   #6
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Why complicate thing when it can be simple

i think something like this
its counting how many accounts is registered and can be visible only to admin

Code:
 
$query = $users->db->prepare("SELECT COUNT(*) FROM AMT_ACCOUNT");
$query->execute();
return $query->fetchColumn();
counts how many guilds is registered

Code:
$query = $guilds->db->prepare("SELECT COUNT(*) FROM GUILDMASTER");
$query->execute();
return $query->fetchColumn();
and for user login

Code:
$query = $users->db->prepare("SELECT COUNT(*) FROM AMT_ACCOUNT WHERE ACCOUNTID=? AND PASSWORD=?");
$query->bindValue(1, $username);
$query->bindValue(2, $password);
$query->execute();
$data = $query->fetch();
return $data['ACCOUNTID'];
So you can acess database directly with PDO its secure, and dont need other stuff, you get it now :P ?

So i need stuff like this AMT_ACCOUNT and what fields are in, and other stuff i can insert, update or delete data from
mlukac89 is offline  
Old 03/03/2014, 11:12   #7
 
elite*gold: 0
Join Date: Jan 2014
Posts: 5
Received Thanks: 2
Ye thats all fine I supposed if you run webpage on same computer as gameserver is. I would not recomend that but hey tis your project

If you dont intend to have webserver on same computer then to avoid installing oracle you can only install client.I was thinking something like this...
Making database class than connect to database and keep connection open for quick access.
Code:
include("constants.php");
class MyDB
{
   /* Class constructor */
   function MyDB(){
      /* Make connection to database */
	/*  oracle database connection defined in contants.php  
	define("OCI_SERVER", "192.168.1.12");
	define("OCI_USER", "alef");
	define("OCI_PASS", "password");
	define("OCI_SERVICE", "account");
        define("SRV_WORLD", "MYworld1");  
	*/
	$this->connection2 = oci_connect(OCI_USER,OCI_PASS,OCI_SERVER ."/". OCI_SERVICE);
	if (!$this->connection2) {
		$e = oci_error();
	        trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
	}
    }

	function oci_addNewUser($username, $password, $email){
		$time = date("d/m/y");
		$qstring = array();
		$qstring[0] = "INSERT INTO AMT_ACCOUNT (ACCOUNTID,PASSWORD) VALUES ('$username','$password')";
		$qstring[1] = "INSERT INTO AMT_MASTER VALUES ('$username' ,'$email' ,'18' ,to_timestamp('$time','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('$time','DD/MM/RR HH24:MI:SSXFF'),to_timestamp('$time','DD/MM/RR HH24:MI:SSXFF') ,null ,null ,null ,null ,null ,'N' ,'N' ,'0', null, null, null, null, null, null, null, null)";
		$qstring[2] = "INSERT INTO ACCOUNTWORLD (ACCOUNTID, WORLD, BANKMONEY, BANKSIZE) VALUES ('$username', '".SRV_WORLD."', '0', '0')";
		
		for ($i=0; $i<3; $i++){
				$q = oci_parse($this->connection2, $qstring[$i]);
				oci_execute($q);
		}
	}
};
$database = new MyDB;
Then you can register new players with
$database->oci_addNewUser($arg1, $arg2, $arg3);
patkica is offline  
Reply


Similar Threads Similar Threads
[Request]Alchemy rate explanation
02/19/2014 - SRO Private Server - 2 Replies
Request explanation for alchemy rates according to alchemy rate program made by maxizi, and if the 50% of +1 always succeeds, what is the increasing rate for each lucky powder/lucky stone
[Request] 2x kill explanation
02/19/2012 - Shaiya Private Server - 8 Replies
Im looking for someone to explain how edit the kill gain to 2x, and if possible how to set it per map (effect only active in certain maps). I found certain tools that do the trick, but I want a permanent and safe sollution, either edited in the database or coded in the ps_game. thanks in advance.
Archlord Database Website
08/23/2011 - Archlord - 9 Replies
hey all, im looking for all archlord database website plz post me some :) thx
Request: Help with AHK (explanation in msg)
07/24/2009 - CO2 Programming - 3 Replies
1) I am working on an autofogger. So far I have gotten it to fog twice and sit using {F2}. But I cant make it repeat and I don't know why. Any ideas on making the script run itself over and over until ^p:: (Pause) command is used? and also how do I set up the pause command. 2) I need an example of a melee attacking program. I can't seem to make my bot jump around and kill any monster in the general area. So I need an example to work off of. Any help would be appreciated, and in the final...
A bout Emme's Database Injector? lol - explanation-
07/19/2009 - Archlord - 12 Replies
detailed explanation of the archlord injector that Emme Wrote (before he deleted it from the attachment hehe): well practically, its a fake program lol, and these are the details of the files he provided, before he deleted the attachments: (the connect button) private void button1_Click(object sender, EventArgs e) { if (((this.textBox4.Text == "localhost") && (this.textBox5.Text == "19.21.555.2")) && (this.textBox6.Text == "archlordv3")) { ...



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


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