Code Name: Casino Mod v1
Description: Creates a Casino for your board! Comes with 2 complete games such as Slot Machine and War. Both are pretty self-explanatory and if you don't know what to do there is a section in the Casino you can read on. :)
Preview of it in Use: http://z11.invisionfree.com/Casinov1_Beta/....php?act=casinoYou will need to sign up to see the code, though there is a test account with username test and password test.
First you must go to your Admin CP> Skinning & Styles> Board Wrappers> Header & Body> find your <% BOARD %> tag and make it look like this:
- Code:
-
<div id="casino">
<% BOARD %>
</div>
Where it goes: Board Wrappers> Footer
You only need to change whats in the arrays, which I have commented on what they are. :)
- Code:
-
<script>
/*
Casino Mod v1.0
Created by slayer766 of thecodingzone.com
This code may not be re-distributed, re-hosted, or edited without the authors permission.
*/
//Set price for Slot Machine
var slot_price = 25;
var slot_sevenswin_price = 260;
var slot_cherrieswin_price = 90;
//Set the price for War
var war_price = 50;
//Set minimum amount you need so you can gamble
var minimum_amount = 30;
//Set default amount users recieve upon creating a profile
var default_amount = 500;
//Name of the currency
var money_name = "Money"
//Sign of the currency
var sign = "$"
//Set decimal to increase chances of matching
//Higher the decimal point, more likely not to match
var matchcherry_ = .2;
var matchseven_ = .6;
var Image_Set = new Array();
Image_Set[0]=["http://i5.ifrm.com/11661/52/upload/p2236921.ibf"];
Image_Set[1]=["http://i5.ifrm.com/11661/52/upload/p2137895.jpg"];
Image_Set[2]=["http://i5.ifrm.com/11661/52/upload/p2137904.jpg"];
Image_Set[3]=["http://i5.ifrm.com/11661/52/upload/p2236433.ibf"];
Image_Set[4]=["http://i5.ifrm.com/11661/52/upload/p2236406.ibf"];
Image_Set[5]=["http://i5.ifrm.com/11661/52/upload/p2236410.ibf"];
Image_Set[6]=["http://i5.ifrm.com/11661/52/upload/p2236426.ibf"];
Image_Set[7]=["http://i5.ifrm.com/11661/52/upload/p2236423.ibf"];
Image_Set[8]=["http://i5.ifrm.com/11661/52/upload/p2236917.ibf"];
Image_Set[9]=["http://i5.ifrm.com/11661/52/upload/p2236927.ibf"];
Image_Set[10]=["http://i5.ifrm.com/11661/52/upload/p2237245.ibf"];
//Submenu Image
var submenu_img = "http://i4.ifrm.com/10716/40/upload/p2559688.ibf";
//Image sets for the slot machine
var img1 = "http://i4.ifrm.com/10716/40/upload/p2559688.ibf";
var img2 = "http://i4.ifrm.com/10716/40/upload/p2559661.ibf";
var img3 = "http://i4.ifrm.com/html/team_icons/orange_x.gif";
document.write("<script language='javascript' src='http://i5.ifrm.com/11661/52/upload/p2615851.ibf'><\/script>");
</script>