Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Dragon Fable Browser Game files

Junior Spellweaver
Joined
Apr 3, 2011
Messages
171
Reaction score
16
Dragon Fable private server files.

Alot of bugs but project is at beginning.


NO CREDITS FOR ME !!!


Credits to: MentalBlank, HellFireAE and the DFPS Team

dowload link :


make a folder in xampp/htdocs called df and cut all files from upload folder to df

create a db called df_private and upload sql from database .

start game from localhost/df
 
Last edited:
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
just edited the news.php because i was bored.
I guess you could optimize it even more but meh, it was just 1 min work so.
Code:
<?php
	include ("includes/mysql_connector.php");
	session_start();

	if(isset($_SESSION['user'])){
		header('location: index.php');
		exit;
	} elseif(isset($_GET['id']) && preg_match('/^[0-9]+$/',$_GET['id'])) {
		$news_query = mysql_query("SELECT text,title,avatar,caption FROM df_news WHERE id = '" . $_GET['id'] . "' LIMIT 1");
		$news_result = mysql_fetch_assoc($news_query);
		print ("<tr><td align=\"center\" valign=\"top\">");
		if(isset($_SESSION['admin'])){
			$admin = "<a href=\"../admin/editnews.php?id=" . $_GET['id'] . "\">Edit This Post</a><a> - </a>";
			$admin += "<a href=\"../admin/deletenews.php?id=" . $_GET['id'] . "\">Delete This Post</a>";
		}
		print ("<img src=\"images/avatars/" . $news_result['avatar'] . "\" /></td><td align=\"left\" valign=\"top\"><strong class=\"style6\">" . $news_result['title'] . "</strong></a><p><strong class=\"style10\">" . $news_result['caption'] . "</strong><br />" . $news_result['text'] . "</p><br />" . $admin . "</td></tr>");
	} else {
		$news_query = mysql_query("SELECT text,title,avatar,caption FROM df_news ORDER BY id DESC LIMIT 10");
		while($news_result = mysql_fetch_assoc($news_query)){
		print ("<tr><td align=\"center\" valign=\"top\">");
		if(isset($_SESSION['admin'])){
			$admin = "<a href=\"../admin/editnews.php?id=" . $_GET['id'] . "\">Edit This Post</a><a> - </a>";
			$admin += "<a href=\"../admin/deletenews.php?id=" . $_GET['id'] . "\">Delete This Post</a>";
		}
	}
?>

Not sure why mysql_connector.php was included twice but oh well..
 
Skilled Illusionist
Joined
May 8, 2010
Messages
307
Reaction score
3
How to create a DragonFable server? ^^

---------- Post added at 11:47 PM ---------- Previous post was at 11:46 PM ----------

Edit: Any guide?
 
Newbie Spellweaver
Joined
Jan 15, 2010
Messages
67
Reaction score
1
Help!!!

Uploaded with
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
To fix the 3 errors at the top edit the php part of /upload/game/index.php
to this
Code:
<?php
include ("../includes/config.php");

if (isset($_GET["w"])) {$width = $_GET["w"]; } else { $width = "750"; } 
if (isset($_GET["h"])) {$height = $_GET["h"]; } else { $height = "550"; } 
if (isset($_GET["f"])) {$fontsize = $_GET["f"]; } else { $fontsize = "10"; }
$query = mysql_query("SELECT * FROM df_settings LIMIT 1");
$fetch = mysql_fetch_assoc($query);
$loaderSWF = $fetch['loaderSWF'];
$gameSWF = $fetch['gameSWF'];
$sitename = $fetch['DFSitename'];
?>

Edit:
it seems it contains allot of varible checks..
And makes the game not work correctly.
Will try to fix most of them if i got the time

Edit-2:
Seems there where some db info missing and just some php problems.
Seems it works fine now :).
Will upload it in a sec. with a basic guide.

Edit-3:

First download this package and extract it using winrar.


Second open up "/includes/mysql_connector.php"
And set your mysql information.


Third create a database that you have set in the mysql_connector file and import this file


Now upload all files in "/" to your webhost.

Now you can create a account on the main page when finished creating it.
Go back to your host and login.
 
Last edited:
Newbie Spellweaver
Joined
Jan 15, 2010
Messages
67
Reaction score
1
To fix the 3 errors at the top edit the php part of /upload/game/index.php
to this
Code:
<?php
include ("../includes/config.php");

if (isset($_GET["w"])) {$width = $_GET["w"]; } else { $width = "750"; } 
if (isset($_GET["h"])) {$height = $_GET["h"]; } else { $height = "550"; } 
if (isset($_GET["f"])) {$fontsize = $_GET["f"]; } else { $fontsize = "10"; }
$query = mysql_query("SELECT * FROM df_settings LIMIT 1");
$fetch = mysql_fetch_assoc($query);
$loaderSWF = $fetch['loaderSWF'];
$gameSWF = $fetch['gameSWF'];
$sitename = $fetch['DFSitename'];
?>

config

C:\xampp\htdocs\DF\UPLOAD\includes

mysql_connector

<?php
$mysql_host = "127.0.0.1"; // MySQL Server IP/Hostname
$mysql_user = "root"; // MySQL Username.
$mysql_pass = "password"; // MySQL Password.
$mysql_name = "df_private"; // MySQL Database name.

mysql_connect($mysql_host, $mysql_user, $mysql_pass) or die(mysql_error());
mysql_select_db($mysql_name) or die(mysql_error());
?>
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
config

C:\xampp\htdocs\DF\UPLOAD\includes

mysql_connector

<?php
$mysql_host = "127.0.0.1"; // MySQL Server IP/Hostname
$mysql_user = "root"; // MySQL Username.
$mysql_pass = "password"; // MySQL Password.
$mysql_name = "df_private"; // MySQL Database name.

mysql_connect($mysql_host, $mysql_user, $mysql_pass) or die(mysql_error());
mysql_select_db($mysql_name) or die(mysql_error());
?>


Yeah your right lol change config to mysql_connector.
Even though i didnt it seems to work fine though.
Not sure why haha.

Edit:
There seem to be more errors like in "/game/cf-expsave.php"
Not going to fix the whole game sorry guys.

Edit-2:
Lol there is a config.php that includes the mysql_connector so it doesnt matter.. lol.

Edit-3:

I do give you all a warning this game is really unstable and buggy.
Made by somebody thats probably new to php and mysql.
It connects to mysql loads of time for no real reason!
 
Last edited:
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
thugie,
do you have msn ?
here is my msn : prince_non17@yahoo.com
i want to join a df pserver.
if you have df pserver. can you make me gm ?

thx

Hey i added you on msn but it screwed up..
You where suddenly 3 times in my msn..

You are offline and 2 have a smilie avatar.
1 is enabled 1 disabled and the 3rd doesnt have a avatar.
Not sure how msn or you has managed that lol.
Just hope its not some stupid msn exploit :D.

edit:
There is also a exploit in the topchars.php the $order variable.
 
Last edited:
Junior Spellweaver
Joined
Apr 3, 2011
Messages
171
Reaction score
16
ya its buggy and incomplete ..... but without cutscene errors will be great.

if someone fix cutscene error just write here,
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
Uhm the package i uploaded should have most errors fixed.
Fixing it up all atm.

Fixt the exploit optimizing code and more.
So if you will just wait a bit :).
Wont be able to finish it today as its father's day.
 
凸(ಠ益ಠ)凸
Loyal Member
Joined
Jun 16, 2008
Messages
1,665
Reaction score
227
1 of the guys who made this Mentalblank or w/e also works on a poorly made AQW server files as well, which explains the whole horrible made basics.
 
Junior Spellweaver
Joined
Apr 3, 2011
Messages
171
Reaction score
16
just made a better one if you are soo pro..dont blame peopels who do something...

its imposible to make a browser game 100% like original so less rage.

(ps:bad english i know)
 
ThuGie.NL - Webmaster
Joined
Apr 16, 2006
Messages
607
Reaction score
55
The game seems to run just fine,
Its just not that secure or even coded that good but it does work.

You got the basic setup all done for you all you have to do is.
1. Rewrite it
2. Optimize it.
3. Use it as is.
4. Trow it away.

As i havent coded php/mysql in a while and i do need to write some big butt projects soon.

I started on this game to rewrite/optimize it.
So i wont fully rewrite it just weird/stupid parts and optimize the rest.
Just so you know i have no intrest in running this game its just to get back with php for a bit see if everthing is still working right in my mind haha like functions etc.

Edit:
I noticed they have a svn @
And the coding seems to be way better then before so try that i will drop optimizing/rewriting as it doesnt seem needed anymore
 
Last edited:
Newbie Spellweaver
Joined
Oct 29, 2007
Messages
86
Reaction score
21
The project files from my server's Dragon Fable
(Server)
(Tools)
 
Last edited:
Newbie Spellweaver
Joined
Oct 29, 2007
Messages
86
Reaction score
21
any chance to log and play this game?:huh:

PHP version must be greater than 5.3.0. Remember to change the 'php.ini' option 'always_populate_raw_post_data' to On.

Then the file 'ServerOptions.php' folder kernel change that or something like this:
$Opt["CharAllowe"]["Free"] = 3;
$Opt["CharAllowe"]["Upgraded"] = 6;

To do this:
$Opt["CharAllowed"]["Free"] = 3;
$Opt["CharAllowed"]["Upgraded"] = 6;

Then look for it in the file 'cf-userlogin.php' folder which is in 'game'.
if ($UserData["Upgrade"] > 0) {
$Allowed = $CharsAllowed_Upgraded;
} else {
$Allowed = $CharsAllowed_Free;
}

Change to this:
if ($UserDATA["Upgrade"] > 0) {
$Allowed = $Opt["CharAllowed"]["Upgraded"];
} else {
$Allowed = $Opt["CharAllowed"]["Free"];
}
 
Last edited:
Junior Spellweaver
Joined
Apr 3, 2011
Messages
171
Reaction score
16
PHP version must be greater than 5.3.0. Remember to change the 'php.ini' option 'always_populate_raw_post_data' to On.

Then the file 'ServerOptions.php' folder kernel change that or something like this:
$Opt["CharAllowe"]["Free"] = 3;
$Opt["CharAllowe"]["Upgraded"] = 6;

To do this:
$Opt["CharAllowed"]["Free"] = 3;
$Opt["CharAllowed"]["Upgraded"] = 6;

Then look for it in the file 'cf-userlogin.php' folder which is in 'game'.
if ($UserData["Upgrade"] > 0) {
$Allowed = $CharsAllowed_Upgraded;
} else {
$Allowed = $CharsAllowed_Free;
}

Change to this:
if ($UserDATA["Upgrade"] > 0) {
$Allowed = $Opt["CharAllowed"]["Upgraded"];
} else {
$Allowed = $Opt["CharAllowed"]["Free"];
}

chech this error
 

Attachments

You must be registered for see attachments list
Back
Top