vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vbCasino 3 (fixed) (https://vborg.vbsupport.ru/showthread.php?t=93600)

Lionel 08-07-2005 05:19 AM

What is the missing phrase in lottery main between sold tickets and your stake?

Ski-Whiz 08-07-2005 04:38 PM

I get these errors when I run the installation file:

Database error in vBulletin 3.0.8:

Invalid SQL:
INSERT INTO `lottery_settings` VALUES (1, 0, 'money', 3, '50,30,10', 1, 1, 1, 1, 1, '1,2,5,10', 1);

mysql error: You have an error in your SQL syntax near ';
' at line 2

mysql error number: 1064

Date: Sunday 07th of August 2005 01:35:22 PM

Anyone else have any trouble with it??

Ski-Whiz 08-07-2005 05:22 PM

I should add, it's when it goes to apply the default settings...

This seems to cause a problem for people who don't know how to bypass that error. I simply took out the call for the default settings, which allowed me to get to the phrase part..

The only problem I see so far besides that installation error, is the Slots aren't keeping the stats.. I'll test more, and read more.. :D Just playing around right now with it..

I like this hack! Good job!!

micheal332001 08-07-2005 06:05 PM

the problem with the stats to the slots is there is no info put in the sql table for it.
I have posted the fix to this in the other forums for vbcasino, but i will post it here too

here is the link to the problem

https://vborg.vbsupport.ru/showpost....8&postcount=80

micheal332001 08-07-2005 06:09 PM

Quote:

Originally Posted by adamgessel
Thank you, micheal332001, it has been added to our page for vbcasino (https://vborg.vbsupport.ru/showthread.php?p=749245).


Thanks m8

I have a few more idea's for this too im working on having flash show the slots stats
and im trying to sort out the lottery winners to show in flash too.
If i have more time i will try and make the slots work with a flash file so that the page would not have to refreash all the time.

micheal332001 08-07-2005 07:43 PM

here is a new one for you

This will display a roulette image for your winning or losing number.

to add this in all you need to do is change the

lottery_playroulette Template to this

HTML Code:

<table cellpadding="0" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td align="left" style="text-align: left;" colspan="2">
<br />
<table width="100%" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="left">
<tr>
<td class="tcat" colspan="2">Roulette</td>
</tr>
<if condition="$action!=1">
<span class="smallfont">
<form method="post" action="lottery.php?do=playroulette">
<input type="hidden" value="1" name="action">
<tr>
<td class="alt1" width="50%">
numbers:<br>
<select name="getallen[]" multiple size="6">
$options
</select>
</td>
<td class="alt1" width="50%">
Stakie on this:<br>
<input type="input" name="numberstake">
</td>
</tr>
<tr>
<td class="alt2" width="50%">
Colors:<br>
<select name="redblack">
<option value="0">/</option>
<option value="1">red</option>
<option value="2">black</option>
</select>
</td>
<td width="50%" class="alt2">
Stakie on this:<br>
<input type="input" name="redblackstake">
</td>
</tr>
<tr>
<td class="alt1" width="50%">
Odd / Even:<br>
<select name="oddeven">
<option value="0">/</option>
<option value="1">Odd</option>
<option value="2">Even</option>
</select>
</td>
<td width="50%" class="alt1">
Stakie on this:<br>
<input type="input" name="oddevenstake">
</td>
</tr><tr>
<td class="alt2" width="50%">
Parts 1-18 19-36:<br>
<select name="eighteens">
<option value="0">/</option>
<option value="1">1-18</option>
<option value="2">19-36</option>
</select>
</td>
<td class="alt2" width="50%">
Stakie on this:<br>
<input type="input" name="eighteensstake">
</td>
</tr><tr>
<td class="alt1" width="50%">
First twelve - Second twelve - Third twelve:<br>
<select name="twelves">
<option value="0">/</option>
<option value="1">1st Twelve</option>
<option value="2">2nd Twelve</option>
<option value="3">3th Twelve</option>
</select>
</td>
<td width="50%" class="alt1">
Stake on this:<br>
<input type="input" name="twelvesstake"><br><br>
<input type="submit" value="Play">
</form>
</td>
</tr>
 
<else />
<tr>
<td class="alt1" align="center">
<font style="background-color: $color; color: white; size: 16 px">$getal</font><br><br><br>
<img src="/images/casino/Roulettenumbers/$getal.gif"><br>
$txt<br>
Lost: $lose<br>
Won: $win<br>
</td> <td class="alt1">
<font style="background-color: $color; color: white; size: 16 px"></font><br>
<form method="post" action="lottery.php?do=playroulette">
<input type="submit" value="Play Again">
</form>
</td>
</tr>
</if>
</span>
        </table>
</td>
</tr>
 
</table>

And upload these images to you forums

images/casino

Ski-Whiz 08-07-2005 09:02 PM

Quote:

Originally Posted by micheal332001
the problem with the stats to the slots is there is no info put in the sql table for it.
I have posted the fix to this in the other forums for vbcasino, but i will post it here too

here is the link to the problem

https://vborg.vbsupport.ru/showpost....8&postcount=80


I manually entered in the "default settings". However the Slot Stats are still all zreos.

Here's also the funny part is, the settings didn't matter. I needed to create a row. I changed the "default" field. So with me, I had to create a row (a record entry) then it worked..

This is pretty decent, just needs more tweaking that's all! Good job guys!!

MorrisMcD 08-08-2005 02:23 AM

The roulette pays too much.. If you bet one, you dont lose it unless you lose.. So when you win, you net 2 for every 1 you bet.. But you never give your bet up... If that makes sense.. Probably a small edit in a php file..

MorrisMcD 08-08-2005 02:29 AM

Quote:

Originally Posted by stangger5
I dont see the Casino link in my Nav bar after installing.

I made a link to get in tho..

Is there a way I can give myself money to play or is there a play for free option ?

Thanks !

You need to add your own link in the template navbar...

Assuming you are running UShop and not Pets, you can give yerself money by clicking your bengal bucks displayed in your profile If you have admin donate on or just changing it on your user properties in admin cp..

waza 08-08-2005 05:59 AM

Here you have the screenies.


All times are GMT. The time now is 05:53 AM.

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.01305 seconds
  • Memory Usage 1,768KB
  • 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
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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