MOD Title: Virtual Casino
MOD Description: Casino games (Slot Machine, Video Poker, Blackjack) for your users to waste their virtual cash.
MOD Version: 1.3.0 Beta
MOD Download: http://castledoom.com/forum/files/Virtu ... o-Beta.zip
Last Stable version: 1.2.4a
Demo Board: http://castledoom.com/forum/
Demo Usernames/Password:
Demo-1/phpbb-1
Demo-2/phpbb-2
Demo-3/phpbb-3
After I added the Cash Mod to my forum, I went looking for some nice casino games. I was quite disappointed with what I found -- especially the way the authors did not use the proper Script/Template format.
Therefore I wrote my own.
This casino is pretty much stand-alone, but I have also added in the correct hooks to display online status properly, so you can tell if your users are playing at all.
This MOD assumes you have installed the Cash Mod found elsewhere on this forum. No particular cash-name or cash-datafield-name is required. The Cash Mod API is used the pull the info for the Cash with ID of "1", unless it it changed in the ACP.
If you delete your currency, and create another, you will need to enter the Control Panel for all four games and submit the new currency, otherwise you will get a non-existant object error when you try to play.
This MOD adds a "gamecookie" field to the user SQL table to store the context of the Blackjack and Poker games. No useful data is stored in the HTML form returned to the user, because that would allow cheats and exploits.
I have created three Demo usernames to avoid the problems with multiple users playing games with the same username. If the gamecookie does not match the returned-form, the user's action will be ignored or his game voided. This is to discourage cheating. If your game is acting "weird", try one of the other Demo- users.
##############################################################
## Author Notes:
##
## This is designed to work with Cash Mod found at phpbb.com
## No particular cash-name or database fieldname is required, because the Cash will be selected
## from each game's control panel.
## If CashMod is not installed, a user database column named "user_points" will be assumed.
## ------------------------------------------------------------------------------------------------
## The original cards images came from the casino mod by aUsTiN-Inc http://austin-inc.com/
## but they were renamed to make them easier to use.
## -----------------------------------------------------------------------------------------------
## The Slot machine image was originally from Microsoft's public online Office Clipart collection.
##############################################################
## MOD History:
##
## 2007-01-01 - Version 1.3.0 Beta
## - Conversion of all games to ajax-updating
## - Each game opens its own window, without headers
## - Fixed a bug when Surrender is allowed anytime and player surrenders after a split.
##
## 2006-11-28 - Version 1.2.4a
## - Minor bug preventing splitting in Blackjack
##
## 2006-11-19 - Version 1.2.4
## - Additional cash object error checking
## - Minor cash-update changes
##
## 2006-11-06 - Version 1.2.3
## - Moved login redirects before page_header
##
## 2006-10-15 - Version 1.2.2
## - Fixed a bug... with misnamed cash configs
##
## 2006-10-01 - Version 1.2.1
## - Fix page-constants and titles for release.
##
## 2006-09-24 - Version 1.2.0
## - user_points compatability tested and released.
## - Added language variable for "Cash_Points"
##
## 2006-09-24 - Version 1.1.0
## - Make compatable with non-CashMod user_points systems.
##
## 2006-09-23 - Version 1.0.1
## - Fixed display of currency names in CP.
##
## 2006-09-16 - Version 1.0.0
## - Add ending slashes to all img, br, and input tags
## - Verify all HTTP inputs are purified.
##
## 2006-09-14 - Version 0.7.1
## - Correct keno_admin cash button.
## - Login redirect for vcasino menu.
##
## 2006-09-09 - Version 0.7.0
## - Replaced all text with language strings.
##
## 2006-08-21 - Version 0.6.2
## - Dont allow playing Keno with no cash.
##
## 2006-08-20 - Version 0.6.1
## - Corrected Keno Currency Problem
##
## 2006-08-20 - Version 0.6.0
## - Added Keno
##
## 2006-08-16 - Version 0.5.2
## - Added Blackjack hand point-total display and ACP option to display that total while playing
##
## 2006-08-12 - Version 0.5.1
## - Added New options to Blackjack (special hands, surrender, constraints on split, double, hit on soft-17)
## - Re-Fixed width style of blackjack buttons
##
## 2006-08-11 - Version 0.5.0
## - Added New options to Blackjack (special hands, surrender, constraints on split, double, hit on soft-17)
##
## 2006-08-10 - Version 0.4.1
## - Fixed error in new Progressive slot machine jackpot after it wasnt awarded to me
##
## 2006-08-09 - Version 0.4.0
## - Added Control panels for all three apps
##
## 2006-08-08 - Version 0.3.1
## - Fixed width style of blackjack buttons
## - Added links back to Index and Casino from within games
##
## 2006-08-07 - Version 0.3.0
## - Replaced short-form Globals
## - Replaced global object references with stricter object calls
##
## 2006-08-06 - Version 0.2.1
## - Added missing images
##
## 2006-08-06 - Version 0.2.1
## - Minor typo: includes/page_header.php changed U_CASINO to U_VCASINO
## - changed width of display field in slot machine from 60 to 60px
##
## 2006-08-05 - Version 0.2.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
Code: Select all
ALTER TABLE `phpbb_users` ADD `user_gamecookie` TEXT NULL ;
INSERT INTO `phpbb_config` VALUES ('vcasino_bj', '1|2|10|100|0|0|0|0|1|3|1|1');
INSERT INTO `phpbb_config` VALUES ('vcasino_poker', '1|1000|100|25|9|5|4|3|2|1|1|2|10');
INSERT INTO `phpbb_config` VALUES ('vcasino_slot', '1|100|60|40|20|30|20|10|4|5|2|1|1|2|5|10|20|61|1000');