Jump to content
MakeWebGames

Curt

Members
  • Posts

    525
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Curt

  1. Incase you did not find it here is the free timestamp mod: [any version] Removal of 1 minute crons you can the code for to run all your crons a few pages in... good luck with your project.
  2. Well a template could be purchased if necessary so graphic design and CSS skills are not a requirement... I will be setting money to the side as I work on the project so there will be a fair budget growing while the project is in production...I expect to have a few thousand ready to invest by time project is ready to launch.. Im not expecting someone to match me dollar for dollar but a little cash to invest toward the project for advertising/hosting once the project is to that point would be great... After the game gets a little attention, money invested should make a nice return :) My main goal is to get this project underway before someone else creates it and reaps the benefits...
  3. Hello, A few months ago I was sitting in front of my PC brainstorming a new idea for a unique type of game. I have come up with what I believe if done correctly could be a MAJOR successful game as the type of gameplay/strategy is not common and I personally have not seen any game like the idea I have. It is a Text-based game but would stray far from any text-based games I have personally ever seen... At this point in time, it is purely an Idea...I did however begin working on it but because of my other 2 games and the complexity of some of the systems that would need to be created for it, I have set it to the side for now. I will not be posting any specifics about the Idea here because I believe this is a truly unique game to the text based game network... The theme of the game appeals to a huge population percent of the world to people of all ages... Because of the complexity of this project I believe it would take 6 months to a year before it would be to the point for others to play. PHP programming knowledge is a must... I believe this project has the potential to make all parties involved a nice sum of money for the time invested into it. If you think you may be interested feel free to PM me or post here and if I am interested, I will pitch a vague description of the idea to you. I will be ready to work steadily on this project at the turn of the year, as I am working to get my second game released now which only needs some info added to the database and a few features changed/added. If I do pitch the idea to you, i simply ask that you keep the idea to yourself... If i cannot find a partner I will simply work on this project alone... Thanks, Curt
  4. My programming skills are limited to PHP and I like to think im halfway decent with the language..lol I am definitely interested in the offer but I will need a little time to give it further thought before I can make a final decision as this would majorly effect my game. I will PM you shortly :)
  5. Curt

    Comet Chat

    Yes, I did get my copy successfully integrated with my mccodes based game.  By default the chat calls from a "Friends table" but you can also change it so it calls from all the users online, which is what i did.  Thanks for this suggestion, I will be changing mine shortly so that brand new players can not use this feature.  The 50$ version I bought comes with two themes, the silver one you guys seen on the website and a black theme. (not sure if the more expensive ones come with more themes or not) It is CSS based as Danny mentions so with some skill you should be able to create a theme for the bar to fit your game theme.
  6. Curt

    Comet Chat

    Hello, I recently purchased a new feature for my game called Comet Chat. I'm sure some of you have heard of this before but if you haven't, it is a Chat Bar that rests at the bottom of the screen. This enables players to easily chat with one another while continuing to browse your website/game. It costs 50$ but I believe its well worth it for the quality of the feature. It can be easily implemented to pretty much any site, so it says on the website. Also if your having trouble getting it installed, the owners will help you install it. The website is Cometchat.com It has plenty of features, including a feature so players can video/voice chat with each other. I just felt like sharing this with you guys :) Thanks Everyone, Curt
  7. Thanks guys for the replies.. Also Thanks a_bertrand I actually read that article a long while back...lol I do all thats listed there except for blog, RSS feed, and cross-promotion...which i will look into I actually found that article pretty helpful awhile back.. Thanks Again :)
  8. Hello, I currently own 2 online web browser games (one of which is not released yet) and have been in the game development scene for about a year and a half now... I am not too experienced in promoting a website and I believe my game could be doing a bit better with the right promotion techniques used. I would like to chat with someone who is experienced in this area of game development and maybe work out a deal with this person to promote my website. I am currently using methods such as top vote sites, forums and banner exchange services to promote my game...as i said im not too experienced in this area... My game is Thugbattle.com and I have almost 2800 total players of which 150 or so is active daily, and this is after being public for 1 year and 1 month. If you are experienced in game promotion then check out my game and get in contact with me. I would like to work out a deal with someone. Any questions, feel free to post them or PM me and i will do my best to answer them... Thanks Everyone, Curt
  9. Dementor you are taking the criticism to strongly... As common with many things, people will point out the bad before they mention the good... Your game has active players and as you said have been around for a while, so you must be doing something right :) Best of luck to you and the future of your game :)
  10. Very nice, I will be riding the nebula shortly and try to come up with some more ideas for you :)
  11. Hey, Interesting game you are developing :) Regarding the paypal payments, a person has 45 days from date of the transaction to submit a complaint for their money back. so not sure all the talk about an approval system ? I always thought funds send from one paypal account to another paypal account was instant...im guessing you have a different paypal setup or something... Anyway, have fun with your project and good luck :thumbsup:
  12. take a look at line 17 ;) EDIT: you fixed line 17...lol One other thing i see is the else case on the bottom...besides that the mod should work fine...
  13. continued from above :   // Midnight function dicegame_4() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">Midnight</div>'; echo "RULES: Player gets one roll and if player rolls a total dice amount of 12 you win. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); $diceamnt = $dice1+$dice2; // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*10; if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=midnight'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=midnight'] Back [/url]"; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=midnight'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=midnight'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='Midnight'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($diceamnt == 12) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'> Congragulations you won \$".number_format($winnings)." !</span>"; } else { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'>You did not win.</span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=midnight' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; } // HI LO function dicegame_5() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">Hi-Lo</div>'; echo "RULES: Player gets one roll and if player rolls a total dice amount of 2 or 12 you win. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); $diceamnt = $dice1+$dice2; // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*8; // WINNINGS if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=hi-lo'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=hi-lo'] Back [/url]"; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=hi-lo'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=hi-lo'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='HI-LO'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($diceamnt == 12 OR $diceamnt == 2) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'>Congragulations you won \$".number_format($winnings)." !</span>"; } else { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'>You did not win.</span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=hi-lo' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; } // Any Craps function dicegame_6() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">Any Craps</div>'; echo "RULES: Player gets one roll and if player rolls a total dice amount of 2, 3 or 12 you win. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); $diceamnt = $dice1+$dice2; // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*5; // WINNINGS if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=anycraps'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=anycraps'] Back [/url]"; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=anycraps'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=anycraps'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='Any Craps'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($diceamnt == 12 OR $diceamnt == 2 OR $diceamnt == 3) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'>Congragulations you won \$".number_format($winnings)." !</span>"; } else { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'> You did not win.</span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=anycraps' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; } // 7-11 function dicegame_7() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">7-11</div>'; echo "RULES: Player gets one roll and if player rolls a total dice amount of 7 or 11 you win. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); $diceamnt = $dice1+$dice2; // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*5; // WINNINGS if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=seven-11'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=seven-11'] Back [/url]"; echo "</td></tr></table>"; echo "[img=layout_bottom.png] "; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=seven-11'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=seven-11'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='7-11'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($diceamnt == 7 OR $diceamnt == 11) { echo "<table width = 100%> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'>Congragulations you won \$".number_format($winnings)." !</span>"; } else { echo "<table width = 100%> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'>You did not win.</span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=seven-11' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; } $h->endpage();   There is also a SQL table included which keeps track of how many times a game has been played:   -- -- Table structure for table `dicegames` -- CREATE TABLE IF NOT EXISTS `dicegames` ( `dicegameID` int(11) NOT NULL AUTO_INCREMENT, `dicegameNAME` varchar(255) NOT NULL, `dicegamePLAYED` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`dicegameID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; -- -- Dumping data for table `dicegames` -- INSERT INTO `dicegames` (`dicegameID`, `dicegameNAME`, `dicegamePLAYED`) VALUES (1, 'Snake Eyes', 0), (2, 'Ace Duece', 0), (3, 'YO!', 0), (4, 'Midnight', 0), (5, 'HI-LO', 0), (6, 'Any Craps', 0), (7, '7-11', 0);   That should be everything...let me know of any problems. As always this is free and do what you want with it and Constructive criticism is welcome.. Enjoy, Curt
  14. This is a mod I coded a while back but have not released to the public... Its basically some standard Dice games your members can play to gamble there money... This mod will need some dice images which are NOT INCLUDED. This is a pretty simple mod as you all will notice :P here is where they should go and what they should be named: images/dicegame/one.png images/dicegame/two.png images/dicegame/three.png images/dicegame/four.png images/dicegame/five.png images/dicegame/six.png   Also the layout will need to be edited as my Div styles are currently there..lol   Filename= dicegame.php <?php /* DICE GAME Thugbattle.com Coded by: CURT Single Roll Games Game #1 - 2 (snake eyes, or Aces): Wins if shooter rolls a 2. payback = 10x Bet Payback -- DONE game #2 - 3 (ace-deuce): Wins if the shooter rolls a 3. payback = 10x Bet Payback -- DONE game #3 - Yo: Wins if the shooter rolls 11. payback = 10x Bet Payback -- DONE game #4 - 12 (boxcars, midnight, or cornrows): Wins if shooter rolls a 12. payback = 10x Bet Payback -- DONE game #5 - 2 or 12 (hi-lo): Wins if shooter rolls a 2 or 12. payback = 8x Bet Payback -- DONE game #6 - Any Craps (Three-Way): Wins if the shooter rolls 2, 3 or 12. 5x Bet Payback -- DONE game #7 - 7-11: Wins if the shooter rolls a 7 or 11. 5x Bet Payback -- DONE Multi Roll Games game #1 - Hard way: A bet that the shooter will throw a 4, 6, 8 or 10 the "hard way", before he throws a seven or the corresponding "easy way". A hard way is when both dice show identical values, also known as "doubles" or "pairs", so 2-2 is hard way 4. game #2 - Big 6 and Big 8: A player can choose either the 6 or 8 being rolled before the shooter throws a seven. These wagers are usually avoided by experienced craps players since they pay even money (1:1) while a player can make place bets on the 6 or the 8, which pay more (7:6). Some casinos do not even offer the Big 6 & 8. The bets are located in the corners behind the pass line, and bets may be placed directly by players. */ include "globals.php"; status_update("Playing Dice Games"); $maxbet = 250000; $_POST['bet'] = abs((int)$_POST['bet']); echo'<div class="gray-block"> <div class="heading">Dice Games</div>'; echo "[url='dicegame.php']GAME INFORMATION [/url] "; echo " [url='dicegame.php?action=snake-eyes'] Snake Eyes [/url] | [url='dicegame.php?action=ace-duece'] Ace Duece [/url] | [url='dicegame.php?action=yo'] YO! [/url] | [url='dicegame.php?action=midnight'] Midnight [/url] | [url='dicegame.php?action=hi-lo'] HI-LO [/url] | [url='dicegame.php?action=anycraps'] Any Craps [/url] | [url='dicegame.php?action=seven-11'] 7-11 [/url] | "; echo "</div>"; switch($_GET['action']) { case "seven-11": dicegame_7(); break; case "anycraps": dicegame_6(); break; case "hi-lo": dicegame_5(); break; case "midnight": dicegame_4(); break; case "yo": dicegame_3(); break; case "ace-duece": dicegame_2(); break; case "snake-eyes": dicegame_1(); break; case "dicerules": dice_rules(); break; default: dice_games(); break; } function dice_games() { global $db,$ir,$c,$userid; echo'<div class="gray-block"> <div class="heading">Dice Games</div>'; $pg=$db->query("SELECT * FROM dicegames WHERE dicegameID>0 ORDER BY dicegamePLAYED DESC LIMIT 1"); $p=$db->fetch_row($pg); echo " MOST POPULAR GAME : {$p['dicegameNAME']} "; echo " Here You can Choose from a number of Craps Dice games to play for Game Money. Choose The game you would like to play below : * [url='dicegame.php?action=snake-eyes'] Snake Eyes [/url] - Wins if shooter rolls a 2. | PAYRATE: 10x Original Bet * [url='dicegame.php?action=ace-duece'] Ace Duece [/url] - Wins if the shooter rolls a 3. | PAYRATE: 10x Original Bet * [url='dicegame.php?action=yo'] YO! [/url] - Wins if the shooter rolls 11. | PAYRATE: 10x Original Bet * [url='dicegame.php?action=midnight'] Midnight [/url] - Wins if shooter rolls a 12. | PAYRATE: 10x Original Bet * [url='dicegame.php?action=hi-lo'] HI-LO [/url] - Wins if shooter rolls a 2 or 12. | PAYRATE: 8x Original Bet * [url='dicegame.php?action=anycraps'] Any Craps [/url] - Wins if the shooter rolls 2, 3 or 12. | PAYRATE: 5x Original Bet * [url='dicegame.php?action=seven-11'] 7-11 [/url] - Wins if the shooter rolls a 7 or 11. | PAYRATE: 5x Original Bet "; echo "</div>"; } // SNAKE EYES DICE GAME function dicegame_1() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">Snake Eyes</div>'; echo "<h3> SNAKE-EYES </h3>"; echo "RULES: Player gets one chance to roll a Pair of Ones. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*10; if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=snake-eyes'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=snake-eyes'] Back [/url]"; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=snake-eyes'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=snake-eyes'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='Snake Eyes'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($dice1 == 1 AND $dice2 == 1) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'>Congragulations you won \$".number_format($winnings)." !</span>"; } else { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'> You did not win. </span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=snake-eyes' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; } // ACES-DUECE function dicegame_2() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">Aces - Dueces</div>'; echo "<h3> Aces-Duece </h3>"; echo "RULES: Player gets one roll and if player rolls a 1 and 2 you win. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*10; if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=ace-duece'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=ace-duece'] Back [/url]"; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=ace-duece'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=ace-duece'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='Ace Duece'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($dice1 == 1 AND $dice2 == 2) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'> Congragulations you won \$".number_format($winnings)." !</span>"; } else if ($dice1 == 2 AND $dice2 == 1) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'> Congragulations you won \$$winnings !</span>"; } else { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'> You did not Win.</span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=ace-duece' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; } // YO function dicegame_3() { global $db,$ir,$c,$userid,$maxbet; echo'<div class="gray-block"> <div class="heading">YO!</div>'; echo "RULES: Player gets one roll and if player rolls a total dice amount of 11 you win. "; $dice1 = mt_rand(1,6); $dice2 = mt_rand(1,6); $diceamnt = $dice1+$dice2; // DISPLAY IMAGES //DICE 1 if ($dice1 == 1) { $diceimage1 = "images/dicegame/one.png"; } else if ($dice1 == 2) { $diceimage1 = "images/dicegame/two.png"; } else if ($dice1 == 3) { $diceimage1 = "images/dicegame/three.png"; } else if ($dice1 == 4) { $diceimage1 = "images/dicegame/four.png"; } else if ($dice1 == 5) { $diceimage1 = "images/dicegame/five.png"; } else if ($dice1 == 6) { $diceimage1 = "images/dicegame/six.png"; } // DICE 2 if ($dice2 == 1) { $diceimage2 = "images/dicegame/one.png"; } else if ($dice2 == 2) { $diceimage2 = "images/dicegame/two.png"; } else if ($dice2 == 3) { $diceimage2 = "images/dicegame/three.png"; } else if ($dice2 == 4) { $diceimage2 = "images/dicegame/four.png"; } else if ($dice2 == 5) { $diceimage2 = "images/dicegame/five.png"; } else if ($dice2 == 6) { $diceimage2 = "images/dicegame/six.png"; } //-- if ($_POST['submit']) { $lastbet = $_POST['bet']; $bet = $_POST['bet']; $winnings =$_POST['bet']*10; if ($_POST['bet'] == "" OR $_POST['bet'] == "0") { echo "Please enter an amount to bet."; echo " "; echo "[url='dicegame.php?action=yo'] Back [/url]"; return; } if ($_POST['bet'] > 250000) { echo " You have exceeded the maximum bet ! Please lower your bet."; echo " "; echo "[url='dicegame.php?action=yo'] Back [/url]"; return; } if ($_POST['bet'] < 1000) { echo " You bet is lower than the minimum bet ! Please raise your bet."; echo " "; echo "[url='dicegame.php?action=yo'] Back [/url]"; return; } if ($_POST['bet'] > $ir['money']) { echo " You do not have enough cash to cover this bet !"; echo " "; echo "[url='dicegame.php?action=yo'] Back [/url]"; return; } // Play GAME $db->query("UPDATE dicegames SET dicegamePLAYED=dicegamePLAYED+1 WHERE dicegameNAME='YO!'"); $db->query("UPDATE users SET money=money-$bet WHERE userid={$ir['userid']}"); if ($diceamnt == 11) { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; $db->query("UPDATE users SET money=money+$winnings WHERE userid={$ir['userid']}"); echo " <span style='color:green'> Congragulations you won \$".number_format($winnings)." !</span>"; } else { echo "<table width = 100%> <tr align=center class='trneww2'><td> First Dice </td><td> Second Dice </td></tr> <tr align=center><td>[img=$diceimage1] </td> <td> [img=$diceimage2]</td></tr> </table>"; echo " <span style='color:red'> You did not Win.</span>"; } //-- } echo " "; if ($lastbet == "") { $lastbet=0; } echo "<form action='dicegame.php?action=yo' method=POST> Bet Amount: \$<input type='text' name='bet' size=5 value='$lastbet'> <input type='Submit' name='submit' value='Play'></form> "; echo "MAXIMUM BET - \$".number_format($maxbet)." || MINIMUN BET - \$1,000"; echo "</div>"; }   Continued in next post..
  15. Hey, Dont let some criticism get you down. As you stated this is your first mod, so its only common that mistakes will be made. The most important thing is that you are learning. When you post a free mod you should always expect some negative comments, but what does not kill you makes you stronger. So keep your head up :)
  16. LOL...no offense at all but I can not say if your trustworthy or not simply because I do not know you too well... Sure we have talked in PM and I have helped you here and there but I dont know if your a trustworthy person...not trying to sound mean or anything but I don't. What would I look like saying Oh yea hes trustworthy then you rip someone off ? ( not saying you will...lol) That would look very bad on me... To be perfectly Clear I am not saying you are NOT trustworthy...I'm just stating that I'm not the right person to ask...lol but thanks for mentioning me :)
  17. updated my idea list and added some possible misc activities.. I will continue to add to the list as more things come to thought :)
  18. Curt

    Mod price

    As said above you would need to come up with a unique not seen before feature and it may sell well...you also will need to release a few free mods so people can see how you code...examples are always good to get your work seen. As for the steal item feature, sure it could be coded rather quickly..it all depends on the person coding it..lol In concept it doesn't sound to difficult at all...I have personally never seen a feature like this but I would expect it exists somewhere...
  19. This will be my list of Ideas for the game, I will update this list as more ideas come to mind instead of making more posts =)   General Features: 1) I believe you need a feature similar to the tracker beam in Freelancer. So players can pick up lose items from space. 2) A way to store important places visited so players can find there way back there 3) Auto-Pilot feature so players can click a visited place and will be directed there 4) Hyper-jump - A player can click a visited place and Hyper jump there immediately (Some kind of energy for this so players dont do it frequently) 5) Own able bases - A player can own there own space station where they can store multiple ships and supplies. 6) Various different AI factions like in freelancer, so players can gain respect for different factions. 7) Scan Item - so players can scan enemy ships and determine weapons and goods being carried 8. Players can be different classes such as : Fighters,Explorers,Traders, Pirates.. 9) User Factions - Players create there own factions 10) strafe feature - so players can move sideways 11) go backwards 12)   Missions: 1) You could use the tracker beam to attach to distressed ships and pull them back to base (unique feature i think..lol) 2) Tracking down a fugitive. 3) Delivering goods 4) escort someone 5) protect someone 6) Locating rouge bases 7) destroying rouge bases 8. Relocate citizens from one planet to another 9)     You could have it so there is Main Story Missions and Side Missions. Side missions will only gain you money, while the story missions will advance you further into the game. Although this would require a unique story to be created for the game.. Misc Activities: 1) Scavenging meteor fields for resources 2) searching planets for resources ? 3) Helping to rebuild destroyed planets. (bring them resources needed to rebuild colony) 4) Exploration - Players are shown a % of the galaxy they have currently explored. Maybe get respect or something for exploring vast amounts. 5) PVP combat - this will keep them occupied for a good bit of time...lol 6) Trading - Players earn money by by buying cheap resources on one planet and selling them for more on another(im sure this is already Planned) 7) Planet Colonization - players find uninhabited planets and can colonize them. (Would be a bit more to this) 8. Discovery - Players can discover things by exploring un mapped space (Planets,new races, technology maybe..) (kinda goes with the Exploration) 9) Deploying robots to planets to mine them for resources, player must come back later to retrieve robot and resources 10) Racing ? 11) certain AI factions will have advanced weapons/ships but you must have there respect to buy them (Like in freelancer..lol) 12)     This list will grow as more ideas pop into my head :) I will also elaborate more on some of the ideas...
  20. Curt

    Mod price

    hmm interesting concept with be able to steal items from players but I believe there should also be an option where a player can store Items so they have no chance of being stolen. same with crystals...such as a crystals bank.. Good luck with your mod =)
  21. The game is looking great. I will be looking forward to watching this game progress. Come on guys, Lets show some support for this project as it is looking very promising already in my eyes... Layout is clean and attractive :) Have fun with it a_bertrand :D
  22. Curt

    Advertising

    lol....I believe a_bertrand wrote a nice topic about Free advertising methods... I think banner advertising methods are probably the best to use....but im not the best with advertising either...lol Good luck going this route :) BTW advertising on other games makes the game you are advertising look bad...so try to stay away from that route...
  23. cool, i look forward to seeing this mod completed :) Im going to begin learning javascript and Ajax as i see it brings some nice features to any game.
  24. Thanks guys for the replies, I have decided to move to hostgator.
  25. Hey, You could simply add this code to the top of the pages under globals that you want to hide while a player is in jail or the hospital :   if ($ir['jail'] OR $ir['hospital']) { echo 'You cannot access this page while in jail or the hospital !'; exit; }   But i would not recommend restricting many things from players while they are in the hospital or jail because then they wont have much to do during that time and will most likely look for entertainment elsewhere...lol
×
×
  • Create New...