vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Casino (w/ 10 player poker) (https://vborg.vbsupport.ru/showthread.php?t=159151)

Bounce 03-27-2008 10:43 PM

Some are complaining it does not work properly?:confused:


Quote:

the roulette ball just goes round and round and round, won't stop so i don't know if i've won, the same thing happens on the slots

Does the program have an auto start on my java app?

Shazz 03-28-2008 01:10 AM

Quote:

Originally Posted by hIBEES (Post 1476297)
Some are complaining it does not work properly?:confused:

That problem occurs 1/10 times

Leica.Robbiani 03-28-2008 03:50 PM

Hi Andrew,

fine that you are back now, the real life is more important than any other things.

Have you read my wishes, which I made here:

https://vborg.vbsupport.ru/showthrea...76#post1451576

Thanks a lot again for your great hack...

Quote:

Originally Posted by Magnumutz (Post 1474758)
Has anyone tried it on 3.7?

I have installed this mod on my local host today on 3.7 RC1, it's working..............

Leica Robbiani

Twilkey 03-29-2008 05:27 AM

When do you think this will hit version 1.

LCN2007 03-30-2008 02:32 PM

any updates comming soon?

Bounce 03-30-2008 03:22 PM

Quote:

Originally Posted by Shazz (Post 1476365)
That problem occurs 1/10 times

Acoording 1 user that's having the prob it's happening 10/10 times :confused:

firefox and bt internet default (IE)

Stormin Stangs 03-31-2008 04:25 PM

I am running vBulletin® Version 3.7.0 Beta 4 so will this mod work for our boards? Thanks

sylar 03-31-2008 04:27 PM

Love this mod. Just installed it and it runs perferct. Great choice for MOTM.

asasi 04-02-2008 08:48 AM

Is it possible to use reputation as cash? :(

Andrew Green 04-04-2008 03:31 AM

Quote:

Originally Posted by asasi (Post 1480717)
Is it possible to use reputation as cash? :(


Yes, just change the cash field in the admin cp.

Shazz 04-04-2008 04:03 AM

Quote:

Originally Posted by hIBEES (Post 1478380)
Acoording 1 user that's having the prob it's happening 10/10 times :confused:

firefox and bt internet default (IE)

Not if you exit out and get back in
Thats 1/10

gravy 04-06-2008 11:24 AM

i want to display how much money a user has on another part of my site, outside of the forums...

how do i go about this??

i believe this is the code:
Code:

$vbphrase[casino_currency_marker]$cash

Our House 04-06-2008 01:45 PM

For those with the "scalar" error message in slots.php, I had a similar problem with video poker.

Open the slots.php file. Find (ending on line 85):

PHP Code:

for($x=1;$x<4;$x++)
{
    
$ypos = (rand() % 6) * -75 -45;
    
$y[$x-1]= $ypos

Add ABOVE it:

PHP Code:

$y = array(); 

That should work.

Our House 04-06-2008 02:20 PM

A bunch of people asked about how users can track their own sports pool activity. One person mentioned PMs. This should do the trick:

*HOW TO AUTOMATICALLY PM SPORTS POOL WINNERS*

Open sportspool.php and find:

PHP Code:

<?php

...at the very top. Add this below it:

PHP Code:

function sendWinnerPM($eventname$outcome$userid$amountWon$originalBet)
{
    global 
$vbulletin;
    require_once(
'includes/class_dm.php');
    require_once(
'includes/class_dm_pm.php');

    
$botpermissions['adminpermissions'] = 1;
    
$host['userid'] = 1;
    
$host['username'] = "USERNAME";
    
$recip fetch_userinfo($userid);
    
$recipname $recip['username'];
     
$message "
        
$recip[username],

        You have just won \$
$amountWon in the Sports Pool.

        [b]Original Bet:[/b] \$
$originalBet
        [b]Event Name:[/b] 
$eventname
        [b]Winning Outcome:[/b] 
$outcome
    "
;

    
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_SILENT);
    
$pmdm->set('fromuserid'$host['userid']);
    
$pmdm->set('fromusername'$host['username']);
    
$pmdm->set_info('receipt'false);
    
$pmdm->set_info('savecopy'false);
    
$pmdm->set('title'"Sports Pool Payout");
    
$pmdm->set('message'$message);
    
$pmdm->set_recipients($recipname$botpermissions);
    
$pmdm->set('dateline'TIMENOW);
    
$pmdm->set_info('overridequota'true);
    
$pmdm->save();


Be sure to replace these variables in the above code with your own info:
$botpermissions['adminpermissions'] = your admin userid;
$host['userid'] = userid of PM sender;
$host['username'] = "username of PM sender"; (leave the quotes)

Then find:

PHP Code:

if($result == $outcome['outcomeid'])
    
$share $outcome['totalbets'];
$total += $outcome['totalbets']; 

Replace with:

PHP Code:

if($result == $outcome['outcomeid'])
{
    
$thisOutcome $outcome['outcomename'];
    
$share $outcome['totalbets'];
}
$total += $outcome['totalbets']; 

Finally, find:

PHP Code:

$query "UPDATE " TABLE_PREFIX "user SET $cashtype = $cashtype + $w WHERE userid = $u";
$db->query($query); 

Add below:

PHP Code:

sendWinnerPM($eventname$thisOutcome$u$w$b); 

This will send a PM out to the winner(s) of each event that doesn't result in a draw. It will be executed when the event is settled in the sports pool section of the casino.

Sample PM:

Quote:

username,

You have just won $250 in the Sports Pool.

Original Bet: $50
Event Name: Baseball Game
Winning Outcome: Yankees

Our House 04-06-2008 04:49 PM

Hi Andrew,

Great Job on this mod!!

Feature request: "Repeat Bet" button for Blackjack, Let It Ride, and Roulette. Carpal tunnel users are looking for relief. :)

Our House 04-06-2008 04:57 PM

Oh, and +1 to everyone who asked for displayed results after the ball lands in Roulette. Would really be useful.

I may try to do a few other things on my own, but don't hold me to it.

1) added displays for Blackjack and Let It Ride (current bet, profit, etc.)
2) a way to request a PM with your current lottery numbers.

If they work out, I'll post the results and/or tutorials.

Our House 04-07-2008 09:29 AM

Quote:

Originally Posted by Our House (Post 1484494)
Feature request: "Repeat Bet" button for Blackjack, Let It Ride, and Roulette.

Quote:

Originally Posted by Our House
I may try to do a few other things on my own, but don't hold me to it.

1) added displays for Blackjack and Let It Ride (current bet, profit, etc.)

Ignore my feature request for Let It Ride. I added a repeat bet button and changed the display a little to provide the players some more info:

http://img181.imageshack.us/img181/439/letemridenr9.png

Here's how:

Open letmeride_deal.php

Find:

PHP Code:

<?php

Add below:

PHP Code:

session_start(); 

Find:

PHP Code:

if (($bet $vcash) || ($bet $tablelimit)) 

Add above:

PHP Code:

$_SESSION['letemride_lastbet'] = $bet

Find:

PHP Code:

$playeract "<div style='font-weight:bold; text-align:center; font-size: 18pt;'>$hand<br />$vbphrase[casino_currency_marker]$cash</div>"

Replace with:

PHP Code:

$playeract "<div style='font-weight:bold; text-align:center; font-size: 18pt;'><img style='cursor:pointer;' onclick='clearbet(); placebet(\"$_SESSION[letemride_lastbet]\"); playhand()', filen);' src='casino/cards/repeatbet.png' alt='repeat bet'/><br />$hand<br />Bet: $vbphrase[casino_currency_marker]$bet<br/>Won: $vbphrase[casino_currency_marker]$cash</div>"

The button doesn't really match the others, so you might want to photoshop/paint it up a little bit.

Our House 04-07-2008 09:59 AM

Here's the Repeat Bet button/feature for Blackjack. Use the same attached image from my above post or make your own if you want.


Open the FILE blackjack_deal.php


Find:

PHP Code:

<?php

Add below:

PHP Code:

session_start(); 

Find:

PHP Code:

for($i 0$i 52$i++) {
    
$card[$i]=$i;


Add below:

PHP Code:

$_SESSION['blackjack_lastbet'] = $bet

Open the TEMPLATE casino_blackjack_play


Find:

Code:

<img  style='cursor:pointer;' src='casino/cards/clear.png' alt='$vbphrase[casino_clear]' onclick='action(11,0)'/>
Add below:

Code:

<br /><img  style='cursor:pointer;' src='casino/cards/repeatbet.png' alt='repeat bet' onclick='action(11,0); action(0,$_SESSION[blackjack_lastbet]); action(10,0)'/>

Our House 04-07-2008 04:51 PM

*LOTTERY TICKETS PM'D TO USERS*

This will add a link that allows your members to request a PM of their tickets before the drawing makes them disappear.

http://img402.imageshack.us/img402/4023/lottopm2fo0.png

http://img402.imageshack.us/img402/4238/lottopmmi2.png


STEP ONE - Add a NEW PHRASE in your AdminCP:

Languages & Phrases -> Phrase Manager
- Select "Casino" from the dropdown
- Click "Add New Phrase"
Varname: casino_send_lottery_tickets
Text: PM Tickets To Me



STEP TWO - Open and edit the FILE lottery.php

Find:

PHP Code:

<?php


Add below (be sure to customize the adminpermission and host/sender settings!):

PHP Code:

function PMtickets($userid$username$title$message)
{
    global 
$vbulletin;
    require_once(
'includes/class_dm.php');
    require_once(
'includes/class_dm_pm.php');

    
$botpermissions['adminpermissions'] = 1//your admin userid
    
$host['userid'] = 1//userid PM is to be sent from
    
$host['username'] = "username"//username PM is to be sent from

    
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_SILENT);
    
$pmdm->set('fromuserid'$host['userid']);
    
$pmdm->set('fromusername'$host['username']);
    
$pmdm->set_info('receipt'false);
    
$pmdm->set_info('savecopy'false);
    
$pmdm->set('title'$title);
    
$pmdm->set('message'$message);
    
$pmdm->set_recipients($username$botpermissions);
    
$pmdm->set('dateline'TIMENOW);
    
$pmdm->set_info('overridequota'true);
    
$pmdm->save();



Find:

PHP Code:

while ($ticket $db->fetch_array($tickets))
{
    
$t explode(",",$ticket['ticketnumbers']);
    
sort($t);
    
    if(
$s == 1$s 2;
        else 
$s 1;
        
    for (
$i=0;$i<$numbers;$i++)
    {    
        
$y $t[$i];
        eval(
'$yourtickets .= "' fetch_template('casino_lottery_yourtickets') . '";');
    }
    
$y NULL;
    eval(
'$yourtickets .= "' fetch_template('casino_lottery_yourtickets') . '";');



Replace with:

PHP Code:

$counter 0;
$PMtext "$username,\n\nHere are your Lottery Tickets for the next drawing:\n\n";
while (
$ticket $db->fetch_array($tickets))
{
    
$t explode(",",$ticket['ticketnumbers']);
    
sort($t);

    if(
$s == 1$s 2;
        else 
$s 1;

    for (
$i=0;$i<$numbers;$i++)
    {
        
$y $t[$i];
        
$PMnumbers .= $i == ($numbers-1) ? "[b]{$y}[/b]" "[b]{$y}[/b]-";
        eval(
'$yourtickets .= "' fetch_template('casino_lottery_yourtickets') . '";');
    }

    
$PMtext .= "Ticket ".($counter+1).": $PMnumbers\n";
    
$PMnumbers "";
    
$y NULL;
    eval(
'$yourtickets .= "' fetch_template('casino_lottery_yourtickets') . '";');
    
$counter++;
}

if (
$counter 0)
{
    
//send PM if requested
    
if ($_GET['private_message'] == "send")
    {
        
$formatted_drawdate preg_replace("/\<br\/\>/"," - ",$drawdate);
        
$PMtitle "Lottery Tickets for $formatted_drawdate";
        
PMtickets($userid$username$PMtitle$PMtext);
    }

    
$alt = (fmod($counter,2) == 0) ? 2;
    
$yourtickets .= "
        <td class='alt
$alt' colspan='$i' align='center'><a href='casino.php?do=lottery&private_message=send'>$vbphrase[casino_send_lottery_tickets]</a></td>
    "
;



peterpigman 04-09-2008 12:24 AM

I used the repeat bet buttons very nice ty.

Videx 04-09-2008 01:18 AM

The mods to the mod are nice, but it would be even nicer if you guys could get together and collaborate on a single version. I mean, nobody wants to have to hack and re-hack every time a minor upgrade occurs.

Our House 04-09-2008 04:19 AM

Quote:

Originally Posted by Videx (Post 1486380)
The mods to the mod are nice, but it would be even nicer if you guys could get together and collaborate on a single version. I mean, nobody wants to have to hack and re-hack every time a minor upgrade occurs.

Completely agree with you.

I'm not good enough at modding to update the actual product, but Andrew is more than welcome to add my changes into the next version. After all, that's why I posted them. :)

yaya551 04-11-2008 07:25 PM

Is there anyone out there that has a set of installation instructions. TIA

VTXCafe.com 04-15-2008 06:24 AM

I have installed this on 2 forums, one it works fine...the other not.

The problem is when I click on a game the casino.php page just reloads. The url shows /casino.php?do=blackjack but the main .php page just reloads. Any ideas? I have reinstalled everything and checked permissions several times.

deadlychaos25 04-15-2008 07:49 AM

I installed everything as written in text also i added casino in navbar but when i click on casino i get this error

Quote:

Database error
The Funcil.com - Entertainment and Fun Forum database has encountered a problem.
Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the www.funcil.com home page, then try to open another page.
* Click the Back button to try another link.

The www.funcil.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
Please tell me what wrong i did ?

asasi 04-16-2008 06:28 AM

Hi
I added "$inpoker" in navbar template but did not show holdem players !!

poolking 04-16-2008 07:50 PM

Quote:

Originally Posted by deadlychaos25 (Post 1491026)
I installed everything as written in text also i added casino in navbar but when i click on casino i get this error



Please tell me what wrong i did ?

Right click and view source and past and copy the proper error.

ezurick 04-17-2008 04:00 PM

How is this possible? A clip of my stats are:

Game Bet Won Percent
Roulette 0 0 0%
Blackjack 41 32 78%
Lottery 32 53 166%

I have NEVER had a lottery winner... what's up with this?

Hornstar 04-19-2008 03:44 AM

I wonder if Andrew will be implementing some of these new features that our house is sharing.

Gimmick 04-20-2008 01:49 PM

got this installed and working fine, and its using my installed vbcredits system.

When I go into the Casino it says "you have $11452 etc"

How can I get the $ to show as a £ or even just take it out>

Gimmick 04-21-2008 09:57 AM

Urgent help needed.

My forum has been live one day, and a few members been using the casino perfectly.

I wake up this morning and the is an sql error, and all the tables for the casino have gone!?

I am having trouble restoring from my backup also .... :(

what can cause this and how can I prevent it?

Thanks

Gimmick 04-22-2008 08:58 PM

tried putting both the old and new one one, the texas holdem is causing the tables to drop, and in turn error my forum. How can I solve this? Please

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT count(userid) AS np FROM casino_texasholdem_whoisin WHERE lastcheck > 1208901247;

MySQL Error : Table 'rl_forum.casino_texasholdem_whoisin' doesn't exist
Error Number : 1146
Date : Tuesday, April 22nd 2008 @ 09:54:37 PM
Script : http://www.runnerslife.co.uk/forum/
Referrer :
IP Address : 90.205.14.172
Username :
Classname : vB_Database

powerful_rogue 04-23-2008 08:08 PM

Hi,

Im just upgraded from 3.7RC2 to 3.7RC4 and now have some problems

Blackjack is asking for Java to be turned on when it already is, and the fruitmachine just keeps spinning and spinning.

I know this thread is for 3.7, however it was working fine prior to the upgrade, just wondered if you had any advice at all.

Thanks

Gimmick 04-23-2008 09:25 PM

Have u got texas hold'um running mate?

schlottkej 04-24-2008 12:13 AM

just subscribing to the thread, waiting on a 3.7 fix for the hold 'em

duh 04-24-2008 05:50 PM

Hi,
I'm interested in installing but it doesn't seem that the developer is responding to any of the above issues. Is this mod still in Beta Stage, has the developer abandoned it or should I just keep checking back? Maybe he's PM'ing people? Pls inform because it's appears to be a really great add-on.

Thx

Mark.B 04-24-2008 05:57 PM

Quote:

Originally Posted by duh (Post 1498387)
Hi,
I'm interested in installing but it doesn't seem that the developer is responding to any of the above issues. Is this mod still in Beta Stage, has the developer abandoned it or should I just keep checking back? Maybe he's PM'ing people? Pls inform because it's appears to be a really great add-on.

Thx

I don't think it's abandoned, I think Andrew's been busy with other things.

duh 04-24-2008 08:23 PM

Ok, thanks for the info, that really helps to have some idea of what might be going on. I'm really considering this add-on, I played on his site and it was a lot of fun.

Gimmick 04-24-2008 08:33 PM

although I have a problem, I recommend this mod totally, I had it running for weeks, and it was a big hit, I am unsure what is causing the problem, and waiting for Andrew to respond when he gets chance.

I know of other forums running this on 3.7 already and it is working fine.

Wobbly Goblin 04-25-2008 08:54 AM

I just installed the "3.6.10" update because of an apparent security issue and now my Casino isn't working.
  • All slots spin, but never stop.
  • The other games won't go past the "This game is AJAX powered and requires javascript to be turned on." screen.
Is anyone else having this problem?

Thanks,
Nick


All times are GMT. The time now is 05:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04809 seconds
  • Memory Usage 1,929KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (22)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete