-Genocide- Posted September 20, 2006 Posted September 20, 2006 updated 2/27/2007 crystalslots.php <?php /*-------------------------------------- MCCodes Lite original slotsmachine.php Rev 1.0.0 Copyright © 2006 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Updated By: spellbyte Fixed By: Genocide http://notoriousonline.net This mod is distributed without warranty! ---------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); $tresder = (int) (rand(100,999)); $maxbet=$ir['level']*250; $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresde'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh or go back on the slots, please use a side link to go somewhere else. > Back"); } $_SESSION['tresde']=$_GET['tresde']; $_GET['bet']=abs((int) $_GET['bet']); print " Crystal Slots"; if($_GET['bet']) { if($_GET['bet'] > $ir['crystals']) { die("You are trying to bet more than you have. > Back"); } else if($_GET['bet'] > $maxbet) { die("You have gone over the max bet. > Back"); } $slot[1]=(int) rand(0,9); $slot[2]=(int) rand(0,9); $slot[3]=(int) rand(0,9); print "You place {$_GET['bet']} gems into the slot and pull the handle. You see the numbers: $slot[1] $slot[2] $slot[3] You bet {$_GET['bet']} gems "; if($slot[1]==$slot[2] && $slot[2]==$slot[3]) { $won=$_GET['bet']*26; $gain=$_GET['bet']*25; print "and won $won gems by lining up 3 numbers pocketing you $gain extra."; } else if ($slot[1]==$slot[2] || $slot[2]==$slot[3] || $slot[1]==$slot[3]) { $won=$_GET['bet']*3; $gain=$_GET['bet']*2; print "and won $won gems by lining up 2 numbers pocketing you $gain extra."; } else { $won=0; $gain=-$_GET['bet']; print "and lost it."; } mysql_query("UPDATE users SET crystals=crystals+({$gain}) where userid=$userid", $c); $tresder = (int) (rand(100,999)); print " > Another time, same bet. > I'll continue, but I'm changing my bet. > Enough's enough, I'm off."; } else { print "Ready to try your luck? Play today! The maximum bet for your level is $maxbet. Bet: "; } $h->endpage(); ?> Quote
trulu Posted February 20, 2007 Posted February 20, 2007 Re: crystal slots for lite or full when i play this crystal machine, it isn't betting with crystal but it's betting money. Quote
Solid Snake Posted February 20, 2007 Posted February 20, 2007 Re: crystal slots for lite or full change money into crystals Quote
HITMAN 17 Posted August 23, 2007 Posted August 23, 2007 Re: [mccode] crystal slots i like the crystal slots as i have just added them +1 thnx Quote
HITMAN 17 Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots emm has anyone got this for v1 as i have a header error Quote
Kaotic07 Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots if i am correct this is for V1 downsy. Or are you looking for a V2 of this? Quote
HITMAN 17 Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots cant u read <?php /*-------------------------------------- MCCodes Lite original slotsmachine.php Rev 1.0.0 Copyright © 2006 Dabomstew i need v1 Quote
Guest Anonymous Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots This is V1 Quote
Kaotic07 Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots Thank you danny. If you look you will see global_func.php.... V1 runs off of that. V2 on the other hand uses globals.php. Big diff... If you mail the person who made this mod maybe they could help you alot better Quote
Guest Anonymous Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this is simply v2.0 Quote
Kaotic07 Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots Thanks danny... I was about to give this a shot for myself to see if i could make v1 into v2. You got to it before me but thanks anyways Quote
Guest Anonymous Posted October 1, 2007 Posted October 1, 2007 Re: [mccode] crystal slots It,s simply getting.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And replacing it with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and mysql_ to $db-> well i don,t think u even have to do that this is most mods any way Quote
HITMAN 17 Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots i fixed this give me +1 if it works You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Guest Anonymous Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots what was the prob with it in the first place :lol: Quote
Isomerizer Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots Probaly nothing. :lol: Quote
gear4life Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots how to convert mods can any1 learn me Quote
Isomerizer Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots how to convert mods can any1 learn me downsy007 the 2nd. Quote
gear4life Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots hus downsy007 Quote
Guest Anonymous Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots humm gear4life aquib1 Quote
Isomerizer Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots Theres noone to stop him from spamming either :( Quote
HITMAN 17 Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots im not mate :? :? :? :? :? :? :? :? :? Quote
Isomerizer Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots im not mate :? :? :? :? :? :? :? :? :? I was referring to aqib1 / gear4life and his other accounts... Quote
Guest Anonymous Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots no staff :cry: :lol: Quote
HITMAN 17 Posted October 9, 2007 Posted October 9, 2007 Re: [mccode] crystal slots o lol well aquib just gave me an illegal mod 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.