Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 19th July 2011, 18:06
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default Casino - Blackjack
this is for http://www.bvlist.com/tbdev/4931-tbdev-2009-a.html

1. in database create table blackjack:

PHP Code:
CREATE TABLE `blackjack` (
`
useridint(11NOT NULL default '0',
`
pointsint(11NOT NULL default '0',
`
statusenum('playing','waiting'NOT NULL default 'playing',
`
cardstext NOT NULL,
`
dateint(11) default '0',
PRIMARY KEY  (`userid`)

2. run
PHP Code:
ALTER TABLE `usersADD `bjwinsint(10NOT NULL default '0';
ALTER TABLE `usersADD `bjlossesint(10NOT NULL default '0'
3. in database create table cards
PHP Code:
CREATE TABLE `cards` (
`
idint(11NOT NULL auto_increment,
`
pointsint(11NOT NULL default '0',
`
pictext NOT NULL,
PRIMARY KEY  (`id`)

4. run:

PHP Code:
INSERT INTO `cardsVALUES (12'2p.bmp');
INSERT INTO `cardsVALUES (23'3p.bmp');
INSERT INTO `cardsVALUES (34'4p.bmp');
INSERT INTO `cardsVALUES (45'5p.bmp');
INSERT INTO `cardsVALUES (56'6p.bmp');
INSERT INTO `cardsVALUES (67'7p.bmp');
INSERT INTO `cardsVALUES (78'8p.bmp');
INSERT INTO `cardsVALUES (89'9p.bmp');
INSERT INTO `cardsVALUES (910'10p.bmp');
INSERT INTO `cardsVALUES (1010'vp.bmp');
INSERT INTO `cardsVALUES (1110'dp.bmp');
INSERT INTO `cardsVALUES (1210'kp.bmp');
INSERT INTO `cardsVALUES (131'tp.bmp');
INSERT INTO `cardsVALUES (142'2b.bmp');
INSERT INTO `cardsVALUES (153'3b.bmp');
INSERT INTO `cardsVALUES (164'4b.bmp');
INSERT INTO `cardsVALUES (175'5b.bmp');
INSERT INTO `cardsVALUES (186'6b.bmp');
INSERT INTO `cardsVALUES (197'7b.bmp');
INSERT INTO `cardsVALUES (208'8b.bmp');
INSERT INTO `cardsVALUES (219'9b.bmp');
INSERT INTO `cardsVALUES (2210'10b.bmp');
INSERT INTO `cardsVALUES (2310'vb.bmp');
INSERT INTO `cardsVALUES (2410'db.bmp');
INSERT INTO `cardsVALUES (2510'kb.bmp');
INSERT INTO `cardsVALUES (261'tb.bmp');
INSERT INTO `cardsVALUES (272'2k.bmp');
INSERT INTO `cardsVALUES (283'3k.bmp');
INSERT INTO `cardsVALUES (294'4k.bmp');
INSERT INTO `cardsVALUES (305'5k.bmp');
INSERT INTO `cardsVALUES (316'6k.bmp');
INSERT INTO `cardsVALUES (327'7k.bmp');
INSERT INTO `cardsVALUES (338'8k.bmp');
INSERT INTO `cardsVALUES (349'9k.bmp');
INSERT INTO `cardsVALUES (3510'10k.bmp');
INSERT INTO `cardsVALUES (3610'vk.bmp');
INSERT INTO `cardsVALUES (3710'dk.bmp');
INSERT INTO `cardsVALUES (3810'kk.bmp');
INSERT INTO `cardsVALUES (391'tk.bmp');
INSERT INTO `cardsVALUES (402'2c.bmp');
INSERT INTO `cardsVALUES (413'3c.bmp');
INSERT INTO `cardsVALUES (424'4c.bmp');
INSERT INTO `cardsVALUES (435'5c.bmp');
INSERT INTO `cardsVALUES (446'6c.bmp');
INSERT INTO `cardsVALUES (457'7c.bmp');
INSERT INTO `cardsVALUES (468'8c.bmp');
INSERT INTO `cardsVALUES (479'9c.bmp');
INSERT INTO `cardsVALUES (4810'10c.bmp');
INSERT INTO `cardsVALUES (4910'vc.bmp');
INSERT INTO `cardsVALUES (5010'dc.bmp');
INSERT INTO `cardsVALUES (5110'kc.bmp');
INSERT INTO `cardsVALUES (521'tc.bmp'); 
5. download attached file blackjack.php and put it in your root
or you could download the file blackjack_SHOUT.php rename it to blackjack.php and put it in your root

6. create file lang_blackjack.php:

PHP Code:
<?php

$lang 
= array(

'blackjack_sorry' => "Sorry ",
'blackjack_ydu' => "You didn't uploaded ",
'blackjack_sorry1' => "Sorry ",
'blackjack_yrilt' => "Your ratio is lower than ",
'blackjack_sorry2' => "Sorry ",
'blackjack_youhavetowait' => "You'll have to wait until someone plays against you",
'blackjack_sorry3' => "Sorry ",
'blackjack_youmost' => "You must finish your old game. ",
'blackjack_welcome' => "Welcome, ",
'blackjack_points' => "Points = ",
'blackjack_stdhead' => "BlackJack",
'blackjack_youwon' => "You won ",
'blackjack_youlost' => "You lost ",
'blackjack_to' => " to ",
'blackjack_youhad' => " (You had ",
'blackjack_points' => " points, ",
'blackjack_had21points' => " had 21 points). ",
'blackjack_playagain' => " Play again?",
'blackjack_nowon' => "Nobody won this game",
'blackjack_gameover' => "GAME OVER!",
'blackjack_yh21p' => "You have 21 points, your opponent was ",
'blackjack_hehad' => ", he had ",
'blackjack_points1' => " points, ",
'blackjack_playagain1' => "Play Again?",
'blackjack_gameover1' => " GAME OVER!",
'blackjack_wooot' => "You have 21 points, there's no other players, so you'll have to wait until someone will play against you. You will be PM'd about game results",
'blackjack_nowon1' => "Nobody won!",
'blackjack_yow1' => "Your opponent was ",
'blackjack_nowon2' => ", nobody won . ",
'blackjack_playagain2' => "Play Again?",
'blackjack_youwon2' => "You won ",
'blackjack_youlost2' => "You lost ",
'blackjack_had' => " had ",
'blackjack_points2' => " points ",
'blackjack_points3' => " points ",
'blackjack_from' => " from ",
'blackjack_youhave' => "You have ",
'blackjack_points4' => " points, your opponent was ",
'blackjack_point5' => " points, there's no other players, so you'll have to wait until someone will play against you. You will be PM'd about game results",
'blackjack_points6' => "Points = ",
'blackjack_wooot3' => " points, there's no other players, so you'll have to wait until someone will play against you. You will be PM'd about game results",
'blackjack_youmusthave21' => "You must collect 21 points without going over.<br /><br />",
'blackjack_note' => "<b>NOTE:</b> By playing blackjack, you are betting 100 MB of upload credit!",
'blackjack_start' => "START THE GAME",
'blackjack_ps' => "<h1>Personal Statistics</h1>",
'blackjack_wins' => "<b>Wins</b>",
'blackjack_losses' => "<b>Losses</b>",
'blackjack_gamesplayed' => "<b>Games Played</b>",
'blackjack_winp' => "<b>Win Percentage</b>",
'blackjack_plus' => "<b>+/-</b>",
)
?>
7. in bitorrent.php find:

PHP Code:
if ($CURUSER
      { 
      
$htmlout .= "<div class='tb-top-left-link'>
      <a href='./index.php'>
{$lang['gl_home']}</a>
      <a href='./browse.php'>
{$lang['gl_browse']}</a>
      <a href='./search.php'>
{$lang['gl_search']}</a> 
replace it with:
PHP Code:
if ($CURUSER
      { 
      
$htmlout .= "<div class='tb-top-left-link'>
      <a href='./index.php'>
{$lang['gl_home']}</a>
      <a href='./browse.php'>
{$lang['gl_browse']}</a>
      <a href='./search.php'>
{$lang['gl_search']}</a>
      <a href='./blackjack.php'>
{$lang['gl_blackjack']}</a> 
8. open file lang/en/lang_global.php and add to it:

PHP Code:
'gl_blackjack' => "Blackjack"
thx to kidvision & samehzone@tbdev.net/topic/22223-mod-blackjack-mod



Attached Files
File Type: php blackjack.php (20.4 KB, 167 views)
File Type: php blackjack_SHOUT.php (22.7 KB, 115 views)
Reply With Quote
  #2  
Old 22nd October 2011, 20:09
pokemon401's Avatar
pokemon401 pokemon401 is offline
Member
 
Join Date: Oct 2010
P2P
Posts: 7
Exclamation there are no pictures
there is no picture on the card

Click the image to open in full size.
Reply With Quote
  #3  
Old 22nd October 2011, 21:13
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Quote:
Originally Posted by pokemon401 View Post
there is no picture on the card
did you put the cards on root dir
Reply With Quote
  #4  
Old 23rd October 2011, 09:11
pokemon401's Avatar
pokemon401 pokemon401 is offline
Member
 
Join Date: Oct 2010
P2P
Posts: 7
Default
How do I get books
Reply With Quote
  #5  
Old 23rd October 2011, 09:19
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default wtf
books what books/ make sure your pictures are in the right folders/cmod the folder if they dont show
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
  #6  
Old 23rd October 2011, 09:28
pokemon401's Avatar
pokemon401 pokemon401 is offline
Member
 
Join Date: Oct 2010
P2P
Posts: 7
Default
Quote:
Originally Posted by x360zone View Post
books what books/ make sure your pictures are in the right folders/cmod the folder if they dont show
Sorry how do I get pictures
Reply With Quote
  #7  
Old 23rd October 2011, 09:35
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default lol
Quote:
Originally Posted by pokemon401 View Post
Sorry how do I get pictures
i would say google/images for a crack but cant be bothered

try these make sure they have right name file as these are for ts
Attached Files
File Type: rar cards.rar (36.4 KB, 80 views)
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
The Following User Says Thank You to x360zone For This Useful Post:
pokemon401 (23rd October 2011)
  #8  
Old 23rd October 2011, 09:46
pokemon401's Avatar
pokemon401 pokemon401 is offline
Member
 
Join Date: Oct 2010
P2P
Posts: 7
Default
Thank you
Reply With Quote
  #9  
Old 23rd May 2012, 14:38
Flash123's Avatar
Flash123 Flash123 is offline
Member
 
Join Date: Jun 2011
P2P
Posts: 5
Default
it works but how can i add it to menu , you know to write
Salut, UserClick the image to open in full size. [ Administrator ] | Blackjack
Reply With Quote
  #10  
Old 14th August 2012, 18:03
Typon's Avatar
Typon Typon is offline
Senior Member
 
Join Date: Aug 2012
P2P
Posts: 16
Unhappy
I still cant get the pictures on..

Anyone who can tell me what i should rename the card images to?

Reply With Quote
Reply

Tags
blackjack , casino

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 05:28. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.