🐉 Legend of the Green Dragon, a BBS Door game!
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
images Initial Commit Feb 11, 2016
lib Add temporary fix for new URIs whilst logged in. Aug 31, 2018
nbproject Add NetBeans project files. Jun 12, 2018
templates Remove stray periods in responsiveBlue.css. Jun 12, 2018
.gitattributes 💥🐫 Added .gitattributes & .gitignore files Feb 11, 2016
.gitignore Add NetBeans private folder to gitignore. Jun 12, 2018
LICENSE.txt Readded LICENSE.txt Nov 1, 2016
README.md Add snippet about extensionless rewrites. Aug 31, 2018
TODO.md Add a to-do list. May 31, 2018
about.php Remove .php extensions. Aug 31, 2018
armor.php Make all files PSR-2 compliant. Jun 12, 2018
armoreditor.php Make all files PSR-2 compliant. Jun 12, 2018
badnav.php Make all files PSR-2 compliant. Jun 12, 2018
badword.php Make all files PSR-2 compliant. Jun 12, 2018
bank.php Make all files PSR-2 compliant. Jun 12, 2018
battle.php Make all files PSR-2 compliant. Jun 12, 2018
bio.php Make all files PSR-2 compliant. Jun 12, 2018
bios.php Make all files PSR-2 compliant. Jun 12, 2018
clan.php Make all files PSR-2 compliant. Jun 12, 2018
common.php Remove the holidayize() capabilities. Aug 27, 2018
companions.php Make all files PSR-2 compliant. Jun 12, 2018
composer.json Added Composer.json Oct 27, 2016
composer.lock Updated Composer to include PHPUnit and bootstrap the autoloader. Oct 27, 2016
configuration.php Make all files PSR-2 compliant. Jun 12, 2018
create.php Replace is_email with isValidEmail, and move lib/to sanitize.php Jun 18, 2018
creatures.php Make all files PSR-2 compliant. Jun 12, 2018
cron.php Make all files PSR-2 compliant. Jun 12, 2018
donators.php Make all files PSR-2 compliant. Jun 12, 2018
dragon.php Make all files PSR-2 compliant. Jun 12, 2018
favicon.ico Initial Commit Feb 11, 2016
favicon.png Initial Commit Feb 11, 2016
forest.php Make all files PSR-2 compliant. Jun 12, 2018
gamelog.php Make all files PSR-2 compliant. Jun 12, 2018
gardens.php Make all files PSR-2 compliant. Jun 12, 2018
graveyard.php Make all files PSR-2 compliant. Jun 12, 2018
gypsy.php Make all files PSR-2 compliant. Jun 12, 2018
healer.php Make all files PSR-2 compliant. Jun 12, 2018
hof.php Make all files PSR-2 compliant. Jun 12, 2018
home.php Remove .php extensions. Aug 31, 2018
index.php Remove .php extensions. Aug 31, 2018
inn.php Make all files PSR-2 compliant. Jun 12, 2018
installer.php Make all files PSR-2 compliant. Jun 12, 2018
list.php Make all files PSR-2 compliant. Jun 12, 2018
lodge.php Make all files PSR-2 compliant. Jun 12, 2018
logdnet.php Make all files PSR-2 compliant. Jun 12, 2018
login.php Update login to redirect home, not to index.php. Aug 31, 2018
mail.php Make all files PSR-2 compliant. Jun 12, 2018
masters.php Make all files PSR-2 compliant. Jun 12, 2018
mercenarycamp.php Make all files PSR-2 compliant. Jun 12, 2018
moderate.php Make all files PSR-2 compliant. Jun 12, 2018
modules.php Make all files PSR-2 compliant. Jun 12, 2018
motd.php Make all files PSR-2 compliant. Jun 12, 2018
mounts.php Make all files PSR-2 compliant. Jun 12, 2018
newday.php Make all files PSR-2 compliant. Jun 12, 2018
news.php Make all files PSR-2 compliant. Jun 12, 2018
paylog.php Make all files PSR-2 compliant. Jun 12, 2018
payment.php Make all files PSR-2 compliant. Jun 12, 2018
petition.php Make all files PSR-2 compliant. Jun 12, 2018
phpunit.xml Updated Composer to include PHPUnit and bootstrap the autoloader. Oct 27, 2016
prefs.php Replace is_email with isValidEmail, and move lib/to sanitize.php Jun 18, 2018
pull.php Pull Feb 16, 2016
pvp.php Make all files PSR-2 compliant. Jun 12, 2018
rawsql.php Make all files PSR-2 compliant. Jun 12, 2018
referers.php Make all files PSR-2 compliant. Jun 12, 2018
referral.php Make all files PSR-2 compliant. Jun 12, 2018
runmodule.php Make all files PSR-2 compliant. Jun 12, 2018
shades.php Make all files PSR-2 compliant. Jun 12, 2018
source.php Make all files PSR-2 compliant. Jun 12, 2018
stables.php Make all files PSR-2 compliant. Jun 12, 2018
stats.php Make all files PSR-2 compliant. Jun 12, 2018
superuser.php Make all files PSR-2 compliant. Jun 12, 2018
taunt.php Make all files PSR-2 compliant. Jun 12, 2018
titleedit.php Make all files PSR-2 compliant. Jun 12, 2018
train.php Make all files PSR-2 compliant. Jun 12, 2018
translatortool.php Make all files PSR-2 compliant. Jun 12, 2018
untranslated.php Make all files PSR-2 compliant. Jun 12, 2018
user.php Make all files PSR-2 compliant. Jun 12, 2018
viewpetition.php Make all files PSR-2 compliant. Jun 12, 2018
village.php Make all files PSR-2 compliant. Jun 12, 2018
weaponeditor.php Make all files PSR-2 compliant. Jun 12, 2018
weapons.php Make all files PSR-2 compliant. Jun 12, 2018

README.md

Legend of the Green Dragon

Legend of the Green Dragon (LotGD) is a text-based RPG originally developed by Eric Stevens and JT Traub, directly based on Seth Able's Legend of the Red Dragon (LoRD). There are numerous versions of the game you can play, with the original core (before this fork) located [here] (http://lotgd.net). The LotGD source code was then passed on to the [DragonPrime Development Team] (http://dragonprime.net) where it was kept up to date until the latest release of 1.1.2. Since the core is outdated, I have taken it upon myself to update the core for future use.

Requirements

  • PHP 7.0
  • MariaDB 10.0 (Or similar MySQL database)
  • Composer

Installation

Before you install, it is best to have an understanding of what a linux server is, how to work with PHP and MySQL, as well as touch up on modern practices such as composer. For this example, we are using Ubuntu Trusty (14.04) and assuming you have all of the required programs installed. You must set up extensionless PHP rewrites for your NGINX or Apache server as well (examples will be included later).

# Install database, using your {user} and {password}.
mysql -u {user} -p{password} -e 'CREATE DATABASE LOTGD;'

# Clone LotGD
cd /var/www
git clone git@github.com:stephenKise/Legend-of-the-Green-Dragon.git

# Navigate to /installer in your browser.

Modules

This forked core, just like it's original source, supports modules. The reason they are not present here is because of the desire to decouple core modules from the core source. Modules should be hosted separate of the game, so that this repository doesn't override any functionality used on multiple servers. You can simply create a module directory yourself, or make a GitHub hosted repository!

cd /var/www/Legend-of-the-Green-Dragon
mkdir modules
# You can stop here and just upload your modules, or create a new repository:
cd modules
echo "# Modules" >> README.md
git init
git add README.md
git commit -m ":dragon: Initial commit for modules!"
# Be sure to replace {username} with your username.
git remote add origin git@github.com:{username}/lotgd-modules.git
git push -u origin master
# You can now push modules into the repository and add them into your sever with 'git pull'!