UPDATED Gamble Hall Mod - By DG       Back to File List | Edit This File

UPDATED Gamble Hall Mod - By DG - Click to Download
Submitted by DarkGrave on 12.12.2006 (1032 Downloads)
This mod is like Dragon Scourge's Gamble Mod.
Includes a Readme.
Version 1.0
Updated Uploaded the wrong thing sorry! also fixed a bug that actually was in there...
File rating: 3.86 out of 5.00 (7 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by xyeon on 02.03.2007
You'll have to add a few things to prevent people from being able to glitch it. As it is now, you can make a bet and not check a guess. You'll automatically win. (I think.) Either way you can gamble with negative numbers and if you lose it awards in a positive number.

if ($guess == "") { display("You must guess a number.", "Gamble Hall"); die(); }
if (!is_numeric($bet)) { display("Invalid Bet.", "Gamble Hall"); die(); }
if ($bet > $maximumgold) { display("You do not have that much gold.", "Gamble Hall"); die(); }
if ($bet < "0") { display("Negative bets are not allowed.", "Gamble Hall"); die(); }
if ($bet == "0") { display("Invalid Bet.", "Gamble Hall"); die(); }
if ($bet == "") { display("Did you forget to make a bet?", "Gamble Hall"); die(); }

Then Under - $guess = $_POST['choice'];
I added what you see below.
$bet = $_POST['bet'];
$maximumgold = $userrow[gold];

Posted by DarkGrave on 05.03.2007
I already fixed that anyway. This is old and I haven't updated it.
Posted by Ninja on 05.25.2007
Fix it then please! why say anything if ur not going to upload. ill wait for the new one =\
Posted by DarkGrave on 06.06.2007
Why its so outdated.
Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:

Forums Password:

Your Comment:

Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.