LoGD Standardrelease steht hier zum Download zur Verfügung!

Zeige Source: /supersix.php

Hier klicken für den Source, ODER
Weitere Dateien, von denen du den Quelltext sehen kannst:
(Das Lesen des Source, um sich spielerische Vorteile zu verschaffen, ist nicht erlaubt. Solltest du Schwachstellen oder Fehler entdecken, bist du als Spieler verpflichtet, diese zu melden.)

Source von: /supersix.php

<?php
/*
Six's Super Six by sixf00t4
for http://www.sixf00t4.com/dragon
modded from:

Eric's lotto v. 1.0
Tsukasa

Based upon the original LORD IGM Seth's Scratch-offs By Joseph Masters
Author: bwatford
Board: http://dragon.osomyr.com
*/

require_once "common.php";
checkday();
$jack=stripslashes(getsetting("jackpot",""));

if ($HTTP_GET_VARS[op]==""){
page_header("Super Six");
output("`n`c`^`bSuper Six`b`0`c`n");

addnav("Spielen","supersix.php?op=yes");
//addnav("oder");
addnav("Zurück zur Lobby","casino.php");

output("Du gehst in Richtung eines Tisches der ziemlich interessant ausschaut. ".($session[user][sex]?"Ein Mann":"Eine Frau")."
hat 12 Würfel und einen Berg Goldstücke vor sich liegen. Hier scheint es doch um größere Beträge zu gehen.`n`n");
} elseif ($HTTP_GET_VARS[op]=="yes"){
page_header("Super Six");
//$session[user][casinouse]++;
//output("`n`c`^<h4>Nollopa Helden Casino</h4>`0`c",true);
if($session[user][gold]<100){
output("`n`7".($session[user][sex]?"Der Mann":"Die Frau")." schaut dich an und macht dich darauf aufmerksam,
daß Du nicht genug Gold zum spielen hast und Kredit gibts hier wohl nicht!");


addnav("Zurück zur Lobby","casino.php");
} else {
addnav("Vorlegen","supersix.php?op=scratch");
addnav("Zurück zur Lobby","casino.php");

output("`n`@".($session[user][sex]?"Der Mann":"Die Frau")." erklärt dir die Regeln. `2\"Jedes Spiel kostet `^100 Gold`2.
Ich werde 6 mal würfeln und die Reihe vorlegen. Danach darfst Du 6 mal würfeln. Mit jeder Übereinstimmung erhöht sich dein
Gewinn.\"`@`n`n");
output("`@Lust es mal zu probieren?`n`n");

$session[user][gold]-=100;
$session[romar][jackpot]=$jack+=10;

savesetting("jackpot",addslashes($session[romar][jackpot]));
}
} elseif ($HTTP_GET_VARS[op]=="scratch"){
page_header("Super Six");

//output("`n`c`^<h4>Nollopa Helden Casino</h4>`0`c",true);
output("`n`@".($session[user][sex]?"Der Mann":"Die Frau")." beginnt und würfelt:`@`n`n");

$s1=e_rand(1,6);
$s2=e_rand(1,6);
$s3=e_rand(1,6);
$s4=e_rand(1,6);
$s5=e_rand(1,6);
$s6=e_rand(1,6);

output("`0<h2> $s1 - $s2 - $s3 - $s4 - $s5 - $s6</h2>`n",true);
output("`2\"Jetzt bist du dran!\"`n");

addnav("Würfeln","supersix.php?op=match&s1=$s1&s2=$s2&s3=$s3&s4=$s4&s5=$s5&s6=$s6");

} elseif ($HTTP_GET_VARS[op]=="match"){
page_header("Super Six");

//output("`n`c`^<h4>Nollopa Helden Casino</h4>`0`c",true);

$scratchmatches=0;

$s1 = (int) $HTTP_GET_VARS[s1];
$s2 = (int) $HTTP_GET_VARS[s2];
$s3 = (int) $HTTP_GET_VARS[s3];
$s4 = (int) $HTTP_GET_VARS[s4];
$s5 = (int) $HTTP_GET_VARS[s5];
$s6 = (int) $HTTP_GET_VARS[s6];

output("`n`6".($session[user][sex]?"Geber":"Geberin")." hatte:");
output("`0<h2> $s1 - $s2 - $s3 - $s4 - $s5 - $s6</h2>`n`n",true);

$sw1= e_rand(1,6);
$sw2= e_rand(1,6);
$sw3= e_rand(1,6);
$sw4= e_rand(1,6);
$sw5= e_rand(1,6);
$sw6= e_rand(1,6);

output("`@Dein Wurf:");
output("`0<h2> $sw1 - $sw2 - $sw3 - $sw4 - $sw5 - $sw6</h2>`",true);

if($s1==$sw1){
output("`^`bDie erste Nummer ist identisch!`^`b`n`n");
$scratchmatches++;
}
if($s2==$sw2){
output("`^`bDie zweite Nummer ist identisch!`^`b`n`n");
$scratchmatches++;
}
if($s3==$sw3){
output("`^`bDie dritte Nummer ist identisch!`^`b`n`n");
$scratchmatches++;
}
if($s4==$sw4){
output("`^`bDie vierte Nummer ist identisch!`^`b`n`n");
$scratchmatches++;
}
if($s5==$sw5){
output("`^`bDie fünfte Nummer ist identisch!`^`b`n`n");
$scratchmatches++;
}
if($s6==$sw6){
output("`^`bDie sechste Nummer ist identisch!`^`b`n`n");
$scratchmatches++;
}
if($scratchmatches==0){
output("`^`bKeine deiner Nummern war richtig!`^`b`n`n");
addnav("Nochmal spielen","supersix.php?op=yes");
addnav("Zurück zur Lobby","casino.php");
}
if($scratchmatches>0){
addnav("Nimm Gewinn!","supersix.php?op=win&scratchmatches=$scratchmatches");
}
} elseif ($HTTP_GET_VARS[op]=="win"){
page_header("Super Six");

$scratchmatches = (int) $HTTP_GET_VARS[scratchmatches];

//output("`n`c`^<h4>Nollopa Helden Casino</h4>`0`c",true);

addnav("Nochmal spielen","supersix.php?op=yes");
addnav("Zurück zur Lobby","casino.php");

if($scratchmatches==0){
output("`@`cDu hast `bVERLOREN`b! Wütend schiebst du die Würfel zur Seite.`@`c`n`n");
//output("`^`cSorry You Didn't Win!`^`c");
} else {
if($scratchmatches==1){
output("`^`nDu hast 1 Identische! Du gewinnst 50 Gold!`^");
$session[user][gold]+=50;
} elseif ($scratchmatches==2){
output("`^`nDu hast 2 Identische! Du gewinnst 100 Gold!`^");
$session[user][gold]+=100;
} elseif ($scratchmatches==3){
output("`^`nDu hast 3 Identische! Du gewinnst 300 Gold!`^");
$session[user][gold]+=300;
} elseif ($scratchmatches==4){
output("`^`nDu hast 4 Identische! Du gewinnst 500 Gold!`^");
$session[user][gold]+=500;
} elseif ($scratchmatches==5){
output("`^`nDu hast 5 Identische! Du gewinnst 1000 Gold!`^");
$session[user][gold]+=1000;
} elseif ($scratchmatches==6){
output("`^`nSUPER 6 JACKPOT! Du gewinnst 5000 Gold!`^");
$session[user][gold]+=5000;
}
}
}

page_footer();
?>