Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Casino - Blackjack (http://www.bvlist.com/showthread.php?t=6767)

Fynnon 19th July 2011 18:06

Casino - Blackjack
 
2 Attachment(s)
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.",
'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




pokemon401 22nd October 2011 20:09

there are no pictures
 
there is no picture on the card

http://uploadimage.ro/images/73384716361072047588.jpg

wMan 22nd October 2011 21:13

Quote:

Originally Posted by pokemon401 (Post 30772)
there is no picture on the card

did you put the cards on root dir

pokemon401 23rd October 2011 09:11

How do I get books :sos:

x360zone 23rd October 2011 09:19

wtf
 
books what books/ make sure your pictures are in the right folders/cmod the folder if they dont show

pokemon401 23rd October 2011 09:28

Quote:

Originally Posted by x360zone (Post 30779)
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

x360zone 23rd October 2011 09:35

lol
 
1 Attachment(s)
Quote:

Originally Posted by pokemon401 (Post 30781)
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

pokemon401 23rd October 2011 09:46

Thank you

Flash123 23rd May 2012 14:38

it works but how can i add it to menu , you know to write
Salut, Userhttp://divertatorrent.org/pic/star.gif [ Administrator ] | Blackjack

Typon 14th August 2012 18:03

I still cant get the pictures on..

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

:sos:


All times are GMT +2. The time now is 10:32.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.