Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
Casino (w/ 10 player poker) Details »»
Casino (w/ 10 player poker)
Version: 0.92, by Andrew Green Andrew Green is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.x Rating:
Released: 09-29-2007 Last Update: 02-17-2008 Installs: 1064
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

The Gameroom is the follow up to this, and expands on its features. This mod will no longer be supported, Gameroom is here: https://vborg.vbsupport.ru/showthread.php?t=219483

This is a casino addition for vBulletin, so far containing video poker, blackjack, Slots, a lottery, Let 'em Ride, Roulette and a betting pool.

It can use it's own cash as well as cash fields from other products for easy integration. Cash bonuses are also awarded for various actions (posting, starting threads, etc.), you can alter the bonus values through the admincp.

Each of the 10 games can be turned on or off through the control panel, and the casino can be restricted by user group.

I'd consider this a test run, everything should work, but some of the template's and all of the phrasing are not done yet.

Screenshots are attached.

If you want to see a demo, it's live at http://vbgaming.org, it does require registration though as it needs a userid to attach your money too Bug reports and requests can also be posted there, and will probably have less chance of getting buried in this rather massive thread. If you are having a problem, please look there. If it is one that others have been having, there will likely be a solution there (as well as in this thread, just harder to find here)

v 0.90 (Jan 6)
- Fixed a bug in lottery odds calculation that was casuing problems with the jackpot.
- Completed Phrasing of all games & admincp
- Removed card flicker some people experienced in Texas Hold'em
- Removed unused table limit setting from Video Poker settings
- Handled a DB error that occasionally came out of the slots game
- Sports Pool groups are now edited through the game, not the admincp
- Blackjack: Dealer checks for blackjack on A or 10
- Blackjack: Added Five card charlie rule
- Texas Hold'em: poker mod groups can now use the command "/kick username" to kick people out of the game. If a hand is in progress it counts as a forced fold, not returning their share of the pot.
- Blackjack - Fixed bug on bet amount when splitting more then once on a hand

v 0.91 (Jan 13)
- Added missing field for holdem mod groups to settings table
- Removed 0.90 test code of drawin same numbers in lottery
- Piped all the ajax files through casino.php, this should solve some of the conflicts people where having (ex. mkportal)
- Added missing link to add / edit groups in sports pool
- Fixed extra \'s in chatbox some users where getting
- Added a reset cash button in the ACP
- Fixed a bug where the blackjack_dealt table wasn't getting cleared properly
- Fixed "Most Lost" stat calculation


v 0.92 (Feb 18)
- Fixed Default Cash not saving
- Texas Hold'em no longer shows hand after folding
- Texas Hold'em buttons should not reappear after clicking if a request was in progress when they where clicked
- Fixed some of the reinstall issues people have been having

This is pretty minor, working on some major changes to the Texas Hold'em game that are taking longer then I planned due to other things coming up.

Known issues:
- The same player attempting to play more then one instance of the same game at the same time will cause errors.

To update overwrite all of the old files and import the product, revert any modified (casino) templates and don't forget the files in other folders Also some of the images have changed, those need uploaded again. (as well as the includes and admincp files) You DO NOT need to uninstall the previous version to upgrade, this will cause problems. Just overwrite existing files and import the product again, allowing overwrite.

**Make sure you overwrite ALL existing files and revert ALL casino templates**

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1682  
Old 11-11-2007, 07:06 AM
Maxman1544 Maxman1544 is offline
 
Join Date: Jan 2006
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Integrating with other cash systems
Can you use vcash with this? If so -- what needs to be modified?

Thanks for a great mod!
Reply With Quote
  #1683  
Old 11-11-2007, 07:16 AM
Maxman1544 Maxman1544 is offline
 
Join Date: Jan 2006
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Maxman1544 View Post
Can you use vcash with this? If so -- what needs to be modified?

Thanks for a great mod!
Actually just looking at the admin panel here I would rather use your cash. Can anyone tell me how to change the cash system on my board?

I would basically like to preserve everyones vcash amount and just use this instead? Should be able to do this through mysql, I just don't know the syntax.

Thanks!
Reply With Quote
  #1684  
Old 11-11-2007, 10:17 AM
Jynxx Jynxx is offline
 
Join Date: Oct 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My guys absolutely love this mod......so thank you

In fact Im afraid I have created a forum of gambling addicts

One small bug that I have noticed is this:

In the updated casino stats.......when you click on the link to "richest users" it actually shows the table for one of the slot machines

This means that it is actually not possible to manually view the Richest Users

Any hints?
Reply With Quote
  #1685  
Old 11-11-2007, 10:22 AM
evesve evesve is offline
 
Join Date: Jul 2005
Location: Sweden
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I did to change my Casino:

New vbphrase (Text: Casino Games):
Code:
casino_casino_games
New vbphrase (Text: More Stats):
Code:
casino_more_stats
Find in Template: casino_index_main
Code:
<td class='tcat' colspan='2'>Games</td>
Change to:
Code:
<td class='tcat' colspan='2'>$vbphrase[casino_casino_games]</td>
Find in Template: casino_index_main
Code:
<p style='text-align:center'><a href='casino.php?do=stats'>More Stats</a></p>
Change to:
Code:
<p style='text-align:center'><a href='casino.php?do=stats'>$vbphrase[casino_more_stats]</a></p>
Find in Template: casino_index_main
Code:
<div style='text-align:center;font-size:16pt;font-weight:bold'>You have: $vbphrase[casino_currency_marker]$cash</div>
Change to:
Code:
<div style='text-align:center;font-size:16pt;font-weight:bold'>$vbphrase[casino_youhave]: $vbphrase[casino_currency_marker]$cash</div>
Find in template casino_stats_main
Code:
<table class='tborder' align='center' border='0' cellpadding='6' cellspacing='0' width='100%'>
	<thead>
		<tr>
			<td class='thead'>Statistics</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(1)'>Your Stats</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(2)'>Total Stats</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(3)'>Most Won</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(6)'>Most Lost</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(4)'>Luckiest People</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(7)'>Unluckiest People</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(105)'>Richest Players</td>
		</tr>
$gamestats
	</tbody>

</table>
Change to:
Code:
<table class='tborder' align='center' border='0' cellpadding='6' cellspacing='0' width='100%'>
	<thead>
		<tr>
			<td class='thead'>$vbphrase[casino_statistics]</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(1)'>$vbphrase[casino_yourstats]</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(2)'>$vbphrase[casino_totalstats]</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(3)'>$vbphrase[casino_mostwon]</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(6)'>$vbphrase[casino_mostlost]</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(4)'>$vbphrase[casino_luckiestpeople]</td>
		</tr>
		<tr>
			<td class='alt2' style='cursor:pointer' onclick='loadstats(7)'>$vbphrase[casino_unluckiestpeople]</td>
		</tr>
		<tr>
			<td class='alt1' style='cursor:pointer' onclick='loadstats(5)'>$vbphrase[casino_richest_players]</td>
		</tr>
$gamestats
	</tbody>

</table>
Find in casino/stats.php
Code:
$stitle = $vbphrase[casino_richest_players];
$col1 = $vbphrase[casino_name];
Change to:
Code:
$stitle = $vbphrase[casino_richest_players];
$scol1 = $vbphrase[casino_name];
Find in casino/stats.php (if you want Richest player as default in mainpage):
Code:
$page = (rand() % 7) + 1;
Change to:
Code:
$page = 5;
Find in casino/donate.php (if you want a PM when other members donate to each other):
Code:
$pmdm->set_recipients($giveto, $botpermissions);
Under it add (change ==your username== to your username):
Code:
$pmdm->set_recipients('==your username==;', $botpermissions);
Find in casino/slots_ajax.php:
Code:
else if($slotsgame == 3)
$query = "
	SELECT cs1.switch1 AS gameid, cs2.switch2 AS gameactive 
	FROM casino_settings AS cs1, casino_settings AS cs2 
	WHERE cs1.settingname='gamefile' 
	AND cs1.switch2='bar7slots' 
	AND cs1.switch1=cs2.switch1 
	AND cs2.settingname='gameactive'
";
under it add:
Code:
else print_no_permission();
Reply With Quote
  #1686  
Old 11-11-2007, 11:37 AM
Robp57 Robp57 is offline
 
Join Date: Jan 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uploaded the new version and did not get bars and 7's.........
Everything else works, but when I got to bars and 7's it just refreshes the page....
Also, where is the donate option?
Reply With Quote
  #1687  
Old 11-11-2007, 11:53 AM
Doctor Death Doctor Death is offline
 
Join Date: Dec 2005
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a "Who is in the casino" addon for the bottom of forums?
Reply With Quote
  #1688  
Old 11-11-2007, 12:14 PM
peterpigman peterpigman is offline
 
Join Date: May 2006
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you add the option to exempt certain forums from casino cash for posts and threads etc? That would be handy.
Reply With Quote
  #1689  
Old 11-11-2007, 04:40 PM
sandt38's Avatar
sandt38 sandt38 is offline
 
Join Date: Aug 2007
Location: In a house
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stangger5 View Post
That has been fixed with the newest version..

Have you changed anything in the casino_stats_main template ??
If so you need to revert before you run the xml file..

Look in the casino_stats_main for
Code:
<td class='alt1' style='cursor:pointer' onclick='loadstats(105)'>Richest Players</td>
Make sure the loadstats is (5),, not (105)..

I just reloaded everything and the same error is present. Is that supposed to be in row 433 and row 434? I see something quite different...

Code:
<td class='alt$i' style='cursor:pointer' onclick='loadstats($gameid)'>$vbphrase[casino_topplayers] - $gamename</td></tr>";
}
Reply With Quote
  #1690  
Old 11-11-2007, 04:44 PM
sandt38's Avatar
sandt38 sandt38 is offline
 
Join Date: Aug 2007
Location: In a house
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Robp57 View Post
Uploaded the new version and did not get bars and 7's.........
Everything else works, but when I got to bars and 7's it just refreshes the page....
Also, where is the donate option?
Reload your casino.php, slots.php and slots_ajax.php. files. Also, be certain you loaded your casino product and allowed overwrite. I had a similar issue and reloaded these and fixed the issue, as per Mr. Green's advice.
Reply With Quote
  #1691  
Old 11-11-2007, 07:57 PM
NFLfbJunkie NFLfbJunkie is offline
 
Join Date: Sep 2006
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to reset all of the game stats?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06872 seconds
  • Memory Usage 2,334KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (20)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete