Jump to content
MakeWebGames

jock

Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Everything posted by jock

  1. <?php include_once ('globals.php'); if ($ir['tickets']<1) die ("you are out of tickets. [url='casino.php']<font color=red>Click here to buy more</font>[/url]"); if ($_GET ['action'] == luckyroller) { } $roll = rand(1,6); $rol = rand (1,6); $rol3 = rand (1,6); $r1 = $roll; $r2 = $rol; $r3 = $rol3; $sum =$r1 + $r2 +$r3; $db->query("UPDATE users SET tickets=tickets-5 WHERE userid=$userid"); print <<< HERE <align='center'> <table BORDER=2 CELLPADDING=2 CELLSPACING=2> <tr> <td> any combinations of 6 = 2 vouchers </td> <tr> <td> any combinations of 12 = 3 vouchers </td> </tr> <tr> <td> score 18 = 6 vouchers + $2500 </tr> </td> </table> Your total roll is</p> $r1 + $r2 + $r3 = $sum</p> </p> <image src='die/die$roll.jpg' alt ='die:$roll' /> <image src ='die/die$rol.jpg' alt = 'die:$rol' /> <image src ='die/die$rol3.jpg' alt = 'die:$rol' /> [url="rollem1.php"]<font color='red'>click to roll again</font>[/url] you have {$ir['tickets']} tickets</p> vouchers won {$ir['vouchers']}</p> <align='center'> <table BORDER=2 CELLPADDING=2 CELLSPACING=2> <tr> <td> exchange </td> <tr> <td> exchange </td> </tr> <tr> <td> exchange </tr> </td> </table> HERE; if ($sum == 6) { print "<h1>Winner !! </h1> take these 2 vouchers</p>"; $db->query("UPDATE users SET vouchers=vouchers+2 where userid=$userid"); } if ($sum == 12) { print'<h1>Winner </h1> take these 3 vouchers</p>'; $db->query("UPDATE users SET vouchers=vouchers+3 where userid=$userid"); } if ($sum == 18) { print '<h1>evens win </h1> take these 6 vouchers and $2500</p>'; $db->query( "UPDATE users SET vouchers=vouchers+6,money=money+2500 where userid=$userid"); } $h->endpage(); ?>     still learn so go easy right the idea is you roll 3 die and have to score a set number to win and you get dollar /vouchers if you win the dollar you win goes to game money but what i im trying to do is say once you collect say x amount of vouchers. you can exchange them for either crystals or exp by click a link some thing like exchange x vouchers for 5 crystals --<exchange> exchange x vouchers for x donator days---< exchange >   all help welcome as this is just for learning purpose so even code tips are welcome
×
×
  • Create New...