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.

micheal332001 08-08-2005 08:05 AM

Quote:

Originally Posted by MorrisMcD
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..

This pays out just like the real roulette or as close as you can get.
So it does not payout to much but the right amount for your bet.

waza 08-08-2005 10:53 AM

hmm, i tought my calculations on the roulette are correct. Anyway, I'll check it out later and maybe edit it.

micheal332001 08-08-2005 03:43 PM

wasa i think it is wright no need to change it

adamgessel 08-09-2005 10:54 PM

Those sound like some pretty good ideas. I think waza is almost done with blackjack, complete with images.

Drago912 08-10-2005 12:04 AM

Quote:

Originally Posted by adamgessel
Those sound like some pretty good ideas. I think waza is almost done with blackjack, complete with images.

GReat hack.....love it, but I have a question, where can you see when the lottery is done....date wise I mean. Can you not set the date when the ticket is chosen? or am I missing something.....

adamgessel 08-10-2005 03:00 AM

You can't yet... you will be able to in a later version...

Ski-Whiz 08-11-2005 11:54 AM

Is there any way to make it harder to get points??

People are racking up points on the roulette pretty easily.. I had to turn it off, as it made the points system useless.

If anything I am using the lottery side..

MorrisMcD 08-11-2005 02:18 PM

Quote:

Originally Posted by Ski-Whiz
Is there any way to make it harder to get points??

People are racking up points on the roulette pretty easily.. I had to turn it off, as it made the points system useless.

If anything I am using the lottery side..

Its the Slots... Obscene payouts for the amount of times you win.. There are billions floating in my system now.. I have to revamp people's money probably..

Also.. Roulette is paying 3-1 on a 2-1 bet (red/black; even/odd)

Thug 08-11-2005 04:52 PM

hi i wish to no more abt casino
how does the lottery work,.how can u buy a ticket when u have no points in 1st place
how do u play a game with zero points

and i duno im confused abt it all

waza 08-13-2005 02:41 PM

You can't buy a ticket if you have 0 point, except if you have set the ticket price to 0
also, you can't play a game with 0 points.

Thug 08-13-2005 10:24 PM

but my point is i have no points but managed to buy them
i dont have shop isntalled

waza 08-14-2005 08:03 AM

Uh, what have you filled in in the 'Cash Database Row?' in the admincp??
And do you use the newest version of the casino. Because if I try it without a point system i get the error: you don't have enough money...

Maybe i'll make a point system built in in a later release

Thug 08-14-2005 11:03 AM

well i have no store anymore but still works
shud i install store 1st

waza 08-16-2005 10:01 AM

yes, but you say: no store ANYMORE? did you have a store?
And second: what have you filled in in the: cash database row field??
and does that field also exist??

Thug 08-16-2005 10:50 PM

ye field exists,the store ++++ed up ni left it
i mite install agen
so where will it say hw many points i win n things from lottery

stangger5 08-17-2005 08:11 AM

Slot Stats
: 16
Games Played: 16
: 1
: 15
3 : 3 : 3 : 3 :
25 % 25 % 25 % 25 %




:

Is all I get from the Slot Stats ..

stangger5 08-20-2005 11:44 AM

^^^^ ???

anyone

slim cutty 08-21-2005 05:57 PM

EDITED*

You still have "TABLE_PREFIX" in the installer during default settings which is causing SQL errors... I managed to fix it

Oh, what's the deal with all the phrases? They weren't showing so then I edited one and Boom..lol there they were...

Thanks Guys I'll test this out

slim cutty 08-21-2005 09:10 PM

Slots still not keeping records of wins and losses...

can some one please posts the correct query so I can add this manually...
that seems like it's the only way I'll get this to work...

thanks

stangger5 08-22-2005 03:14 AM

Quote:

Originally Posted by slim cutty
EDITED*

You still have "TABLE_PREFIX" in the installer during default settings which is causing SQL errors... I managed to fix it

Oh, what's the deal with all the phrases? They weren't showing so then I edited one and Boom..lol there they were...

Thanks Guys I'll test this out

How did you fix them ??????
Please !!

Acers 08-22-2005 02:26 PM

hey guys.. how to decrease the chances of winning. There are just too many people on my forums winning too much cash :P

stangger5 08-22-2005 06:09 PM

For a mod that says its Supported,its not getting to good of Support

slim cutty 08-22-2005 06:39 PM

Quote:

Originally Posted by stangger5
How did you fix them ??????
Please !!

the way that I fixed them may be what it causing all of my issues, it's simply going into the install file and dropping ".TABLE_PREFIX." (or however it is displayed) the inserts should look like the ones below

PHP Code:

INSERT INTO `lottery_settingsVALUES (10'uttpoints'3'50,30,10'11111'1,2,5,10'1); 

PHP Code:

INSERT INTO `lottery_slots_statsVALUES (1111111); 

(Run a clean install again)

it works as far as I can see however, the Slots Machine is not working same issue as before. I thought adding on the addon would help however, it did not. I am thinking of disabling this because the points status on my board I want to stay low as if it were real money.. once a user becomes "point rich" they get in the casino and bet high.. and win high.... I guess it all depends on how you run it... I may just use the lottery and a couple of other games.. minus roulette and the slot machine....

oh yeah, for some reason you have to edit (but change nothing) any phrase so that the phrases show correctly... that's it. I hope it works

But.. lol If I can get any assistance here I would be happy.

stangger5 08-22-2005 08:34 PM

OK,I got it fixed.

I over wrote the lottery.php with the one micheal332001 posted.
You can get it here,
https://vborg.vbsupport.ru/attachmen...chmentid=32825

I used the installer from above (no changes at all).

Works fine now !!

micheal332001 08-23-2005 09:51 PM

Hi there

The way i got all the phrases to work was to take them out and put my own in.
You would have to edit all the templates and main lottery.php file.
Also on the install file one of the templetes is named wrong so you will have to update that. The template that is wrong is missing a y at the end.

Here is my LOTTERY template
PHP Code:

 $stylevar[htmldoctype]
<
html id="moooo" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
<if condition="$alert">
<
script type="text/javascript">
    
alert("$alert");
</
script>
</if>
</
head>
<
body onLoad="if(history.length>0)history.go(+1)">
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
<
td class="tcat">
    <
span class="smallfont"><a href="lottery.php?$session[sessionurl]">$vboptions[bbtitle]'s Casino</a></span>
</td>
</tr>
<tr align="left">
    <td class="alt1"><span clas="smallfont">Welcome To $vboptions[bbtitle]'
s CasinoPlay a Game and maybe you 'll win the big jackpot!!</span>
<div class="smallfont">
<a href="lottery.php?do=home">Casino Index</a>&nbsp;&nbsp;&nbsp;
<if condition="$lotterysettings[lotteryactive]==1">
<a href="lottery.php?do=main">Lottery</a>&nbsp;&nbsp;&nbsp;
</if>
<a href="lottery.php?do=winners">Winners</a>&nbsp;&nbsp;&nbsp;
<if condition="$lotterysettings[slotsactive]==1">
<a href="lottery.php?do=slots">Slots</a>&nbsp;&nbsp;&nbsp;
</if>
<if condition="$lotterysettings[guessactive]==1">
<a href="lottery.php?do=guess">Higher/Lower</a>&nbsp;&nbsp;&nbsp;
</if>
<if condition="$lotterysettings[rouletteactive]==1">
<a href="lottery.php?do=playroulette">Roulette</a>&nbsp;&nbsp;&nbsp;
</if>
<if condition="$lotterysettings[pickactive]==1">
<a href="lottery.php?do=pick">Pick 3</a>
</if>
</div>
</td>
</tr>
</table>
<div style="padding: 5px 5px 5px 5px;"></div>
$current
<div style="padding: 5px 5px 5px 5px;"></div>
$footer
</body>
</html> 

as you can see from this line <a href="lottery.php?do=pick">Pick 3</a>

I have taken out the phrase for the pick 3 link.
If you want me to post all the templates with out the phrases please just let me know and ill make a txt file up with all the templates with out the phrases.

If i can help anyone i will do so just ask.

Mike

P.S

Im just finishing oh an updated slots stats page whitch is made in flash.
here is a screen shot of it.

stangger5 08-24-2005 10:19 AM

Quote:

Originally Posted by micheal332001

Im just finishing oh an updated slots stats page whitch is made in flash.
here is a screen shot of it.

Cool !!!
Cant wait.. :classic:

BTW : Nice site you have Micheal !!

slim cutty 08-24-2005 02:32 PM

Wow.. lol

Is that going to be released to the public??
Your graphic makes the other half of the hack look shabby aesthetic wise (not to take away from the hack) would you ever consider doing the other graphics for the hack? That Slot Stats flash image kicks a**.

can't wait until you release this if you are?

micheal332001 08-24-2005 05:07 PM

I will be releasing it very soon and thanks for the nice words.
I am working on a flash home page for the casino too.
And working on stats for all the other games in the casino.
So you will be able to see how many times a game has been played and how much
has your members have bet for each game.

I will let you know very soon on the release of the flash stats for the slots.

Mike

micheal332001 08-24-2005 05:09 PM

Quote:

Originally Posted by stangger5
Cool !!!
Cant wait.. :classic:

BTW : Nice site you have Micheal !!


Thanks m8

Has taken 4 years to get it like this and i get about 600000 hits a month now.
Still working on the site all the time, Im also getting ready to sell my league module for postnuke using the vbulletin forums. I might think about making one for vb but we will have to wait and see.

Thanks again m8

Mike

micheal332001 08-25-2005 07:20 PM

Here we go all a new addon for you.
Here is the slots stats in flash for you.

The flash slots stats will work only if you have the default payouts installed.

I am updating the swf so that you can have this with out having the default payouts hack installed.

Please read the slots stats install text file on how to put this in your site,
also make a backup copy of the template you are going to change.


All times are GMT. The time now is 04:21 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.01549 seconds
  • Memory Usage 1,876KB
  • 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_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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