We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Casino Mod v1; By .Scott
Topic Started: Jan 23 2010, 01:00 AM (135 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: .Scott
Casino Mod v1
 
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=casino

You 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>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create a free forum in seconds.
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply