vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   VBCasino (https://vborg.vbsupport.ru/showthread.php?t=92613)

waza 07-20-2005 10:00 PM

VBCasino
 
Hey,
There has been a new release of the casino. I have added a lot of features and also adamgessel helped me a lot.

Because I was on vacation and people were waiting for the new release adamgessel has released it in a new thread.
wich is right here: https://vborg.vbsupport.ru/showthread.php?t=93374

I don't now if we continue here or in the other thread.

Here are the features:

*On/Off switch for every game
*A lot more games
*Master on/off switch
*Set which row in the user table the money comes from (so you can use it with petz, ucash or other)
*Set how much winners the lottery has to take
*The staggering in percents for the lottery winners (like the first wins 90% of the jackpot, second 50% and third 20%)
*Staggering per 5 guesses in for higher/lower game
*Set per usergroup what the price of a lottery ticket is
*Set per usergroup, per game if they are allowed to play it
*Set per usergroup or they can view the casino
*Set per usergroup or they can buy multiple lottery tickets (from reset to reset)
*PM function for lottery winners
*Verified to work with vBulletin 3.0.8
*Installer now works right.
*Installer now uninstalls BETA 1.
*Fully phrased

DEMO BOARD:
http://www.a-d-a-m.com/forum

SCREENSHOTS:
see below

Logikos 07-21-2005 01:53 PM

Is this a addon or a stand alone hack? Great work though. You also forgot the .zip file ;)

waza 07-21-2005 01:56 PM

Hey, I didn't forget it, I just didn't have winzip. I thought I could also user .rar files
This is a addon in this way: u have to got a money system like petz or vbookie or ucash ushop, it can be integrated in several systems

boxingscene 07-21-2005 03:03 PM

will this hack work with 3.03?

waza 07-21-2005 03:15 PM

It has only been tested with 3.0.7 but normally it will work with all the 3.0.x (not 3.x) versions.

boxingscene 07-21-2005 03:20 PM

Quote:

Originally Posted by waza
It has only been tested with 3.0.7 but normally it will work with all the 3.0.x (not 3.x) versions.

I know this is a bit off the topic, but is there any Texas Hold'Em out there for VB in this format or is there a game version for any of the arcade game add ons? I would love to get a hold of something like that.

waza 07-21-2005 03:31 PM

Not in this type of game.
Maybe for you'll find something @ ibproarcade.com

Biker_GA 07-21-2005 03:49 PM

Whups!

Code:

Database error in vBulletin 3.0.6:

Invalid SQL:
                        ALTER TABLE usergroup ADD lotteryticketprice INT UNSIGNED DEFAULT '10' AFTER pmunread
               
mysql error: Unknown column 'pmunread' in 'usergroup'

mysql error number: 1054

Date: Thursday 21st of July 2005 12:49:12 PM


Koutaru 07-21-2005 04:27 PM

I love the slot machine! I'm definately adding it to my site when I get a shot at it ;)

Reeve of shinra 07-21-2005 05:02 PM

Niiiice

adamgessel 07-21-2005 05:16 PM

For those who are having the mySQL error (mysql error: Unknown column 'pmunread' in 'usergroup'), you can download this new install file that should fix the problem. I just tried it and it seems to work fine. The file is attached. Just replace it with the original, and once you're done installing, remove it.

EDIT: Updated with the new install file.

DR?@M W?@V?R 07-21-2005 05:31 PM

Anyone got a working demo to show us?

Biker_GA 07-21-2005 05:39 PM

Quote:

Originally Posted by adamgessel
For those who are having the mySQL error (mysql error: Unknown column 'pmunread' in 'usergroup'), you can download this new install file that should fix the problem. I just tried it and it seems to work fine. The file is attached. Just replace it with the original, and once you're done installing, remove it.

Boo-boo in yours as well. You're calling install_arcade.php at the end of the file when it should be casino_install.php.

adamgessel 07-21-2005 05:40 PM

I didn't do that. I only modified it so that the database was right.

Biker_GA 07-21-2005 05:48 PM

Found another error in the script. Where it adds usergrouppermissions to usergroup, it should actually read lotterygrouppermissions.

Biker_GA 07-21-2005 05:52 PM

OK.. This is getting just a wee bit tiresome.....

Quote:

Database error in vBulletin 3.0.6:

Invalid SQL:
INSERT INTO lottery_settins (active,lotteryactive,slotsactive,cashrow,winners, winamount) VALUES ('1','1','1','uttpoints','1','60')

mysql error: Table 'globalaf_vbulletin.lottery_settins' doesn't exist

mysql error number: 1146

Date: Thursday 21st of July 2005 02:51:47 PM

adamgessel 07-21-2005 05:52 PM

Here is the new one.... I fixed a lot of errors that were in the old one. This one has been tested and works. I missed something in the earlier one.

Enjoy!

EDIT: Biker_GA, found the error you just found. It made it so that it would come up with errors when trying to update the usergroup settings, but I've tried it and works when you use the one attached.

EDIT 2: Fixed the installation, now the phrases are installed correctly, and everything seems to work fine. Let me know if anybody has more problems with this.

adamgessel 07-21-2005 05:59 PM

DR€@M W€@V€R, I installed the lottery and you can try it by going to:

http://www.fh123swap.com/board/lottery.php

Keep in mind that you'll need to register to try it out. I'll try to make it so that you don't need to, but I'm not sure if it will still work like it should.

Biker_GA 07-21-2005 06:09 PM

Quote:

Originally Posted by adamgessel
Here is the new one.... I fixed a lot of errors that were in the old one. This one has been tested and works. I missed something in the earlier one.

Enjoy!

EDIT: Biker_GA, found the error you just found. It made it so that it would come up with errors when trying to update the usergroup settings, but I've tried it and works when you use the one attached.

Had to fix the arcade reference again, but once that was done, the installation went fine. Thanks. :)

Biker_GA 07-21-2005 06:10 PM

Another error. When saving the settings in AdminCP, the error "Cannot find phrase "casino_cp_redirect" is displayed briefly.

adamgessel 07-21-2005 06:12 PM

I finally found what you meant by the arcade reference. I think I fixed it, but can't be sure because I never had a problem with it. Someone please confirm that it works, the posts I made earlier should have the newest one on it now, which should fix the reference.

m0nde 07-21-2005 06:14 PM

This would be a great addition to uCash/uShop. You could win uCash in the casino...

- Sid

Biker_GA 07-21-2005 06:23 PM

It does tie into uCash.

Biker_GA 07-21-2005 06:28 PM

Are purchase prices modified in the actual script? Or should there be something tied into uTT Store?

Edit -- Nevermind. Found it in the Usergroup settings.

yoyoyoyo 07-21-2005 06:30 PM

A nice addition to the slot machine would be to have animated gif pics for the resulting pictures of fruit. Then after they click on it they will roll a bit and then stop on the right picture. The results would be the same - just something pretty to look at :D

adamgessel 07-21-2005 06:32 PM

I fixed the phrase thing. The new installation file is available on my other posts.

DS MrSinister 07-21-2005 07:46 PM

Nice hack i will install tonight when i get home form work.

Clicks Install

Biker_GA 07-21-2005 07:47 PM

OK. Where do you set the payout values for the slots?

waza 07-21-2005 09:56 PM

Hey,
srry for the bugs, but that 's why it's a beta release ;).
I forgot to add the redirect phrase.
I will try to get out the bugs described and use the new installer (it's because I just changed the arcade installer.)
Thx to adamgessel and the others.
Btw, I would be glad if somebody could fix the winners section, I can't get it fixed.
Grz,
seba

mkdevo 07-21-2005 11:23 PM

Quote:

Originally Posted by adamgessel
DR?@M W?@V?R, I installed the lottery and you can try it by going to:

http://www.fh123swap.com/board/lottery.php

Keep in mind that you'll need to register to try it out. I'll try to make it so that you don't need to, but I'm not sure if it will still work like it should.

just a suggestion - you might want to make a 'test user' account for things like this.. saves people from the hassle of signing up for a one-time visit, and won't skew your numbers at all..

adamgessel 07-22-2005 02:08 AM

That's a good idea... I'll try setting up a test account.

Waza, I'll try to get the winner's section to work. I'll tell you if I get something going.

adamgessel 07-22-2005 02:12 AM

I have put up a test lottery account. If you would like the username/password, please PM me because I don't want my site to get spammed.

Mr. Brian 07-22-2005 03:56 AM

Looks cool.. Looking forward to it. :)

waza 07-22-2005 02:17 PM

@adamgessel: It 's not necesairy anymore to fix the winners, I did it myself, still another thx for fixing all the bugs in the installer.

Here I already fixed a million other bug fixes, the winners section and the phrases works also.

I'm now going to do the pm function and rewrite the cron so I can save some query's.

adamgessel 07-22-2005 03:08 PM

Okay... thanks waza for this hack. Let me know if there's something else I can help you with. I'd be happy to help you with any part of this hack. Just PM me if you need anything.

MUDERCOOL 07-23-2005 04:34 AM

dear waza I just installed the hack. I've been waiting for a thing like this for a long time. it's working smoothly. thank you very much. BTW I got "the" database error but fixed with adam's installer file. thank you adam, too.

I'm now trying to understand all the variables and (BTW it's smoothly working with UTTPOINTS) and waiting for someone to make the winners "SHOW" on the winners page, that is umm I think a must buddy.. also the PM add-on will be an awesome feature.

I didn't get how it pays the slots games' winners (what are the ratios, who can win or lose how much etc) but I'm on the code (I'm not a coder) and trying to figure out what controls what..

Thank You.

MUDERCOOL 07-23-2005 04:46 AM

Quote:

$applecount=0;
$bananacount=0;
$orangecount=0;
$starcount=0;
ummm I cannot figure out how the slots system work indeed, it's not about the hack maybe but can someone briefly explain, should I edit anywhere edit on lottery.php to adjust winning ratios etc? because it shows on my page like this (/lottery.php?do=slots)

everthing seems "zero" although I played 3-4 times and it cut my points (money, uttstore points) like below:

https://vborg.vbsupport.ru/

Thank you for all for all concerns and this great hack again.

mcyates 07-23-2005 09:49 AM

when i try to buy a lottery ticket it comes up with this error in a box

"U Mag geen tickets Kopen"

What does this mean?

mcyates 07-23-2005 12:22 PM

i get this error now or i think its an error, when i try to buy a ticket. I've set the admin usergroup to they can buy tickets, buy multiple tickets and use the slot. The error i get below is when i try to buy a lottery ticket.

U hebt te weinig geld

waza 07-23-2005 01:22 PM

Ow, srry this is dutch :)
in the next release it's all phrased, so you'll understand it.

For now:
U Mag geen tickets Kopen -> U can't buy tickets, you can set this per usergroup in the admincp

U hebt te weinig geld -> You don't have enough money. you can set the price per ticket per usergroup in the admincp, you also need a money system... (like ucash/ushop)

If you don't have a money system (this requires some phpmyadmin knowledge):
go to you phpmyadmin and go to your vbulletin user table.
at a column named like credits, points, money, ...
Give U are all the users something like 500 credits.

Go to you casino settings and set the cashrow to wath you have named you column.


All times are GMT. The time now is 01:36 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.04079 seconds
  • Memory Usage 1,817KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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