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)

Maxman1544 11-11-2007 07:06 AM

Quote:

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

Thanks for a great mod! :)

Maxman1544 11-11-2007 07:16 AM

Quote:

Originally Posted by Maxman1544 (Post 1380188)
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!

Jynxx 11-11-2007 10:17 AM

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?

evesve 11-11-2007 10:22 AM

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();

Robp57 11-11-2007 11:37 AM

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?

Doctor Death 11-11-2007 11:53 AM

Is there a "Who is in the casino" addon for the bottom of forums?

peterpigman 11-11-2007 12:14 PM

Could you add the option to exempt certain forums from casino cash for posts and threads etc? That would be handy.

sandt38 11-11-2007 04:40 PM

Quote:

Originally Posted by stangger5 (Post 1380107)
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>";
}


sandt38 11-11-2007 04:44 PM

Quote:

Originally Posted by Robp57 (Post 1380272)
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.

NFLfbJunkie 11-11-2007 07:57 PM

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

troykristoffer 11-11-2007 11:33 PM

I just wanted to say that this is by far, my favorite Mod!! :) So awesome!

I do have some questions/feature requests though...

1. Is it possible to add sound to the slot machines (or all?) I find that they're just kinda missing something without that satisfying sound of spinning reels and coins! ;)

2. Also, is it possible to change the odds on the slots?

3. Can more settings be added to the Lottery to specify/reschedule the date AND time of the drawing? :)

Despite all that, this is still a very addictive and genius mod! Thanks and congrats!

stangger5 11-12-2007 12:00 AM

Quote:

Originally Posted by Doctor Death (Post 1380280)
Is there a "Who is in the casino" addon for the bottom of forums?

I just got done coding that,, this morning...testing it out right now..

srt10etr 11-12-2007 12:30 AM

Awesome Mod!!!

Andrew Green 11-12-2007 01:25 AM

Quote:

Originally Posted by Mr President (Post 1380104)
I think my question got buried a few pages back lol..

Is there a way to add more spaces in the Casino Setting for chips? Right now there are 10 spaces to put in for chips, is there a way could add like say 5 more spaces so i could use 5
more chip selections?

btw, great job on this hack.. My members and i love it!!! I will say it's very addicting lol

That shouldn't be hard, I'll add more lines next round.

Quote:

Originally Posted by NAG (Post 1380131)
i like this but is there a UK ? version or is that possible?.


Yes, just change the phrase casino_currency_marker

Quote:

Originally Posted by NAG (Post 1380152)
also after the install i now get this..

This game is AJAX powered and requires javascript to be turned on.


Link?


Quote:

Originally Posted by soulplayer (Post 1380178)
My question got burried in the previous posts, so here:

I've not seen that on any of the ones I've looked at, or had anyone else report it. So it's probably something specific to your site. If you send me a link I can have a look.

Quote:

Originally Posted by waller99 (Post 1380118)
This is a great idea but from the pm I get, it does not tell me who the money was donated to. It only tells me who donated the money. This is what the pm I get says :

You have received a donation of $5 from (donator).

Is there a way it can say something like this:

(Name donated to), you have received a donation of $5 from (donator).

Thanks in advance.

The to field should tell you who else it was sent too.

SBlueman 11-12-2007 03:05 AM

Quote:

Originally Posted by Andrew Green (Post 1380732)
That shouldn't be hard, I'll add more lines next round.

If you do this...can you make it so the site doesn't "stretch" with the chips? I have had to not use some chips because of this. My site is set to a 800 pixel width.

ProAzn 11-12-2007 03:29 AM

Sorry I didn't look through the whole pages of the thread but have a question. How does one convert vbcredit system of points to cash so users can use the combined amount at casino or vbcredit raffles, banking and loans, etc.. I've seen one forum have this script/hack and it works nicely.

Anyone know where I can get this or provide the script?

Thanks.

evesve 11-12-2007 05:01 AM

I have change the phrase casino_currency_marker to €
The Casino don´t like €, it wont show up...
Any ideas?

evesve 11-12-2007 05:51 AM

Quote:

Originally Posted by evesve (Post 1380821)
I have change the phrase casino_currency_marker to €
The Casino don?t like €, it wont show up...
Any ideas?

I found it... :cool:
Code:

& # 8 3 6 4 ;

johnrizz 11-12-2007 12:30 PM

Quote:

Originally Posted by stangger5 (Post 1380689)
I just got done coding that,, this morning...testing it out right now..

That a be great!! I also see you have one for "Currently active users in the Arcade" will you be sharing that one with us also?

gertoo 11-12-2007 01:45 PM

wow this is getting so popular :)

Can it be made so the users can giveor "loan" money to each other?
That would be a great thing!

Andrew Green 11-12-2007 03:37 PM

Quote:

Originally Posted by ProAzn (Post 1380784)
Sorry I didn't look through the whole pages of the thread but have a question. How does one convert vbcredit system of points to cash so users can use the combined amount at casino or vbcredit raffles, banking and loans, etc.. I've seen one forum have this script/hack and it works nicely.

Anyone know where I can get this or provide the script?

Thanks.

change the cash field from casino_cash to "credits" in the admincp.

troykristoffer 11-12-2007 04:20 PM

Quote:

Originally Posted by SBlueman (Post 1380769)
If you do this...can you make it so the site doesn't "stretch" with the chips? I have had to not use some chips because of this. My site is set to a 800 pixel width.

This happens to me too, but only on the slot machines. I've messed around with the templates quite a bit and couldn't get it to correct.

:-/

ProAzn 11-12-2007 04:39 PM

Quote:

Originally Posted by Andrew Green (Post 1381073)
change the cash field from casino_cash to "credits" in the admincp.

We updated that and the casino cash now shows the amt from vbcredits. How do we get the casino cash part to disappear from showing on the forum at all such as postings, profile, etc. Is there a script that we have to delete in the coding or is it another setting in admin cp?

.

ProAzn 11-12-2007 05:24 PM

Quote:

Originally Posted by ProAzn (Post 1381118)
We updated that and the casino cash now shows the amt from vbcredits. How do we get the casino cash part to disappear from showing on the forum at all such as postings, profile, etc. Is there a script that we have to delete in the coding or is it another setting in admin cp?

.


We got casino casino cash to disappear from the members profile. How do you get to disappear from members postings??

.

Andrew Green 11-12-2007 06:22 PM

Quote:

Originally Posted by ProAzn (Post 1381146)
We got casino casino cash to disappear from the members profile. How do you get to disappear from members postings??

.

undo the template modification you made to the postbit.

lairnoc 11-12-2007 06:26 PM

Is there a way to change the winfactor :P

i am broke everyday now

Twilkey 11-13-2007 03:57 PM

Quote:

Originally Posted by lairnoc (Post 1381201)
Is there a way to change the winfactor :P

i am broke everyday now

The casino is coded in light of a real casino. There are alot of people that go broke in a real casino.

Andrew Green 11-13-2007 04:06 PM

Quote:

Originally Posted by lairnoc (Post 1381201)
Is there a way to change the winfactor :P

i am broke everyday now

Games are random, things like Let it Ride and blackjack can't really be altered without rigging the game.

Other games I suppose you could change the payouts, but then it would go the other way, everyone would get rich.

All of them are set up to payout 95-100% over time based on the odds of winning and the amount won.

SVTCobraLTD 11-13-2007 04:09 PM

Is the wheel spinning problems fixed in .61a? Where the wheel just keeps spinning til you refresh?

Also, can I go right from v .50 to .61a?

SVT

NFLfbJunkie 11-13-2007 04:13 PM

Is there a way to reset all player's casino stats? And is it possible to remove the green background table from the pages that use it?

Andrew Green 11-13-2007 04:13 PM

You can, and if the wheels are spinning like that it probably means you need to revert a template or overwrite a file. Shouldn't have happened in any of the versions.

Black Tiger 11-13-2007 04:56 PM

My problem still persist. Crontabs have been running and new drawdate was set a few times already.
Still on the forums in the Lottery it says: Jackpot $813787
But in the admincp it says: Min Win 65.708 and odds 1 in 53.130.

What is wrong?

Andrew Green 11-13-2007 05:15 PM

Have to defer that until I get home, can't remember off hand how I dealt with jackpots carrying forward when the odds change.

EA Junkie 11-13-2007 10:52 PM

Got everything installed and casino works. I can manually go to casino_settings.php, but I don't see any options in the admin cp?

Andrew Green 11-13-2007 11:17 PM

the includes/xml/cpnav_casino.php file probably didn't get uploaded.

syrus.xl 11-13-2007 11:46 PM

Here's a full set of replacement buttons. Due to the upload limiations I couldn't add them all as previews, but they are all in the zipped file.

Thought I'd share them on here! :)

Please note the full set is within the zipped file.

Enjoy! :)

Edited: These will need to be changed to the PNG image format. I'll repost them on this post later today.

Robbed 11-14-2007 01:59 AM

Uncached templates: casino_slots_chip (9)
Uncached templates: casino_slots_main (1)
Uncached templates: casino_slots_play (1)
Uncached templates: casino_slots_slotwheel (3)

Robbed 11-14-2007 02:11 AM

Twilkey can you add the 3 for blackjack too.

Twilkey 11-14-2007 03:28 AM

Quote:

Originally Posted by Robbed (Post 1382143)
Twilkey can you add the 3 for blackjack too.

Um what.

jewropa 11-14-2007 08:01 AM

hello, Andrew Green
at first: it is a very useful mod! I love it!

Not the second thing: I would like place a image in the game description box.
I is possible to enable html in the description of the games so i can do it?


All times are GMT. The time now is 11:02 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.03454 seconds
  • Memory Usage 1,866KB
  • 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
  • (21)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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