Guest Anonymous Posted March 16, 2008 Posted March 16, 2008 This is an old version of my roulette extension... Installation is simple - just replace the roulette.php with this one (backup your old one first!). It's small, fast and it works - At least on the sites I hosted it for... You'll also need to drop in a small graphic (roulette.png) into the folder where roulette.php resides... Screenies are not available -- the 16x16 single image you need -- well I'm sure you can find one to suit. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Enjoy Quote
Haunted Dawg Posted March 16, 2008 Posted March 16, 2008 Re: Free 2 - Roulette Nice script i modified it a bit and added another session so that they can not refresh the hole time. Quote
tittlemouse Posted March 18, 2008 Posted March 18, 2008 Re: Free 2 - Roulette wow i really like your mods Quote
shrek1609 Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Roulette love it added it already :-D Thank you Quote
Guest Anonymous Posted March 20, 2008 Posted March 20, 2008 Re: Free 2 - Roulette shrek1609 pointed out a small error with this... Apparently when betting on both red and black - you always win. It seems I made a mistake when I rewrote the roulette script for you guys - Sorry about that... ... Quick change to the act_play() function ... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This will now debit the initial bet from the players account *before* crediting any win. So betting $100 on red and black would result in debit user $100 -- initial bet place $50 on red and $50 on black spin the wheel ... 14 - red red wins - so you get $50 for a win on red black loses - so you lose that $50 I think that will work - but try various combinations out Quote
shrek1609 Posted March 20, 2008 Posted March 20, 2008 Re: Free 2 - Roulette Tested on all possible combinations and works a treat thanks Nyna :) Quote
shrek1609 Posted March 20, 2008 Posted March 20, 2008 Re: Free 2 - Roulette Sorry another slight problem that has fixed them being able to win if the cover both bets say red and black now it takes money first... but i think the winning amount needs changing as they only win the amount they betted... ie bet $500 it takes $500 they win pays out $500 so if they win they gain 0 Quote
Guest Anonymous Posted March 20, 2008 Posted March 20, 2008 Re: Free 2 - Roulette Oh frak ... , Okay, I'm a bit busy at the mo, but if I get a chance I'll look at it later on this evening... That'll teach me for trying to do high speed rewrites and remove all trace of commercial APIs Quote
shrek1609 Posted March 20, 2008 Posted March 20, 2008 Re: Free 2 - Roulette Thank Nyna really appreciate you releasing this for free and giving support with it :) Quote
Guest Anonymous Posted March 21, 2008 Posted March 21, 2008 Re: Free 2 - Roulette Patch to correct the payoffs: The OP has been amended as well. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
shrek1609 Posted March 21, 2008 Posted March 21, 2008 Re: Free 2 - Roulette Sorry nyna still problems with it... If they bet $1000 on red and black they gain $500 If they just bet on red and win they win $2000 and gain $2000 (<<< i think this should be a gain of $1000) If they just bet on red and lose they lose $1000 (<<< this is fine) Quote
Guest Anonymous Posted March 21, 2008 Posted March 21, 2008 Re: Free 2 - Roulette The bet is split however ... You say you bet $100 You place a bet on red and black. Now both red and black have $50 riding on them Red comes up... You lose the $50 from black You get your $50 from red back, plus your initial stake (on red -- $50) => $100.. Quote
shrek1609 Posted March 21, 2008 Posted March 21, 2008 Re: Free 2 - Roulette hi nyna No if they bet on both red and black now say $100 on each they will profit by $50 if they bet $100 on red and win they win $200 ($300 if you include the betted amount) if they bet $100 on red and lose the lose $100 So i think it needs to be that if they bet $100 on red and win the win $100 ($200 if you include betted amount) Quote
Guest Anonymous Posted March 21, 2008 Posted March 21, 2008 Re: Free 2 - Roulette Well you can see how the act_play( ) operates ... You can modify it suit -- The method there is almost identical to the larger version I have (only single house 0 and bets can be placed on 4 cells as well as 6 cells), so it should be easy to fixup to suit your environment. Remember the win is not much - high ranking players will not really benefit - only the lower ones, and I'm all in favor of giving them a boost. Quote
Ishy Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Roulette This is a great modification, I love it. Quote
jay-dogg2006 Posted April 29, 2008 Posted April 29, 2008 Re: Free 2 - Roulette when you bet on the five diffrent bets i will only take money for the one bet not the other 4 and will only payout for one bet is this right? Quote
Zero-Affect Posted April 30, 2008 Posted April 30, 2008 Re: Free 2 - Roulette must have took you ages to make this nice work hun Quote
Guest Anonymous Posted April 30, 2008 Posted April 30, 2008 Re: Free 2 - Roulette A couple of hours in fact - although I did stop for a cuppa ;) Quote
Delete ! Posted April 30, 2008 Posted April 30, 2008 Re: Free 2 - Roulette Nice work nyna ;) Top Quality Stuff =D Quote
Zero-Affect Posted April 30, 2008 Posted April 30, 2008 Re: Free 2 - Roulette Tea or Coffee? lol Incase yall dunno what "cuppa" means... it rather means "a cup of tea/coffee" :lol: Quote
Magictallguy Posted May 2, 2008 Posted May 2, 2008 Re: Free 2 - Roulette Nyna is a big coffee drinker - Nescafe Gold Blend I might add! xD Quote
Zero-Affect Posted May 2, 2008 Posted May 2, 2008 Re: Free 2 - Roulette lol i prefer dark blend myself :lol: Quote
swindonsaleshosting Posted June 1, 2008 Posted June 1, 2008 Re: Free 2 - Roulette Can anyone point me in the right direction? I get this error above the roulette Warning: include(./prepend.php) [function.include]: failed to open stream: No such file or directory in /home/shubmitn/public_html/roulette.php on line 1 Warning: include(./prepend.php) [function.include]: failed to open stream: No such file or directory in /home/shubmitn/public_html/roulette.php on line 1 Warning: include() [function.include]: Failed opening './prepend.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/shubmitn/public_html/roulette.php on line 1 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/shubmitn/public_html/roulette.php:1) in /home/shubmitn/public_html/globals.php on line 6 Well i'm guessing that its looking for prepend.php but as i don't have one, it's sending back errors. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.