Jump to content
MakeWebGames

seanybob

Members
  • Posts

    666
  • Joined

  • Last visited

Everything posted by seanybob

  1. This error should be fixed now - Bludcart, sent you an email with the updated file   Leaving a table should force an auto-fold. Clicking the leave table button should do the exact same thing as pressing the fold button, with the addition of removing them from the table. Great idea. I'll add it. Not sure if I'm going to add this or not. The idea behind it is good, but it adds significant complications. Since creating a new table costs nothing and just takes a few seconds, if a user makes a mistake they could easily just leave the table and make a new one. As of yet, I'm not seeing a need to add this (though I could be persuaded). I think it would be nice to down-size all the images -- to make the cards smaller, and then the table as well. Not being a graphics man at all, I can't really do that. I can try and see if I can get someone to give it a shot though. Except in rare circumstances, each turn lasts 20-30 seconds before they are auto-folded. I plan on (in a future patch) adding functionality so people can change this time. However, if it's made longer than 20-30 seconds... people will get bored waiting for that user to load the images. I don't know what the stats are in other countries, but I'm fairly certain that the number of dial-up users in the USA has been drastically reduced during the last several years. I'll ponder this one. I'll tweak this one with number 2. Once number 2 is done, you can view the table before sitting down. I'll make it so as you sit down you are given the option to buy chips (although I think I'll be leaving the buy/sell chips option in pokerrooms.php as well, for ease of functionality). I like the idea of adding a popup box option to it. I'll be adding that. Thanks for all that input Illusions.
  2. You're right about the 4 thing being an easy enough bug to fix, I'm working on that now. I'm going through illusions suggestions and working on them one by one.   I didn't quite understand that last sentence... What I gather here is Illusions made a game, then went afk. The game was never started, and had just one player in it. Then, you join it, and it ends the round it was on (which was none) and begins a new one? The end game button is (like all the buttons) optional. After a specified amount of time, it presses it for you.
  3. Heya mate :) You have a 4 coming up when your mate joins, and when he leaves you can see the table again. Does he see the table, or a 4? Does it only happen when he joins, or when anyone joins? How many people are at the table when it happens (just you and your mate, or others too)? Regarding the second part - is that when you immediately create a new table and join it? Or did something happen before? Did people join?   Thanks for helping me test it mate! :) The POT cash does not have AI, so it can't just increase/decrease whenever it wants... I assume you meant it increases/decreases seemingly randomly though. That's interesting, I've never seen that bug before. Where did you see this bug, on the demo site? Or another site which installed it? When a player folds, the game ends - and it should reset their 'folded status'. Their 'folded status' will also be reset if they decide to leave the table. What specifically do you mean 'no game can start' - are there more than 2 players in the game? Is it a game on the same table? They just fold, the round ends, and then it bugs up? I haven't seen all these errors before, and the game has run perfectly fine with beta test groups, so are you sure the mod was installed correctly on the server you're testing it on? (If you're testing it on the demo server, then I withdraw this question).   Not having been subject to significant user tests (since I only have 3-4 users I could test with, and not too often) there are possibly some 'cases' that have not been examined. I fully intend on fixing any bugs (including the ones posted above) immediately - this project is one that will constantly be improved. I'm very happy for you that you 'always tell the truth and never lie', in this modern day and age, that's something few people can claim. You have my congrats there. Also... please link to these poker scripts you mentioned, so people can see their other options in this thread (since this is likely where someone looking for a texas hold 'em mod will pop up). Thanks for your input mate ;)
  4. Currently, it 'forces the start' whenever there are 3 or more people at the table. One person can't play by himself, and Texas Hold 'Em with 2 players has slightly different rules than standard texas hold 'em, so it requires 3 minimum.   Yes, in a sense. A new currency is created (chips). Money can be converted to chips, and chips to money. The main reason I didn't use money straight up is that amounts of money vary greatly game to game - some games have economies under control (with just several million dollars floating around) others have quadrillions of dollars. So... I made it so you can set a chip price. By default, $1 worth of chips costs $5 worth of game money, but this can be easily editted.
  5. thanks seanybob :) just got home and am gonna "Attempt" to install this correctly now :P EDIT:- i dont have it in my paypal email address ;( is it in a different email address? =\ sorry i couldnt private mail you it wont load lol I originally sent you an email to your yahoo paypal address. Upon hearing you did not receive it, I was given a hotmail address to send it to. I need you to verify the hotmail address, and your game url. Please just pm me, post here, do whatever you have to do to get this information to me. My email is Seanybob --- at --- gmail.com. I don't know why you wouldn't receive it, it should not have gone to your spam folder.   I'd strongly prefer not, I'd rather the whole discount thing not get too complicated. If someone is unable to afford it at full price, just PM me, and I'm sure we could work something out.
  6. It's true :) Chicka installed the mod on her game on thursday/friday. Since she was the one who made me decide to finish it, she got to install it for her players a few days ahead of everyone else. Sent you an email bludcart.
  7. View the pre-sale thread here. Texas Hold 'Em Multiplayer has been released! License Cost: $150 standard price $75 for contributors Paypal: [email protected] To purchase: Send payment to the above paypal. All future updates to the mod will be sent to your paypal email (unless you specify otherwise). Receiving the code may take up to 24 hours (though it's rather unlikely to take that long). Contents: 7 Normal php Files 1 Encrypted php File Sql: 3 Tables and 6 user variables 7 Normal Images 54 Card Images Languages: Ajax/Javascript Php Also contains extra image options available for download. The install requires some minor editting on one file. Demo: http://seanybob.net/mccodesv2 Each license is for a single game on a single url. If you game goes under, and you create a new game, you will be permitted to transfer the license to the new game - but you must contact me, as the files from your old game will not work (each set of files is specifically designed to work on only one game). Current list of Contributors (who can buy it for $75 if they so desire): Dayo Mcfarlin BludClart BoGFx New additions to the mod will come at regular intervals, fixing any bugs that may pop up, as well as rolling out new image packs (and perhaps a strategy guide/rules page). You can still contribute to this mod. Please view the pre-sale thread (link given at top) to find out ways you can contribute (to get the $75 price). NEW If you purchase this mod, you will also get my other casino mods to add to your in-game casino :D This includes: Blackjack Video Poker Roulette Slots
  8. Ah, thank you for clarifying. I'd really be curious about whether you tested the functionality on the demo site. If so, alrighty then - I'm sorry you feel that way.   Graphics are indeed a significant factor - they can make or break a site. Thus, the little competition I hosted for this mod :) It is time, I'm posting the sale thread now.
  9. Wrong section of the forum. In addition to that, it sounds rather suspicious. I'm going to temporarily lock this thread. Krypt, please communicate with me via PM to talk about this mod and who the creator is if you'd like to get the thread unlocked.
  10. I'm afraid your question is too vague; please try and re-word it. Anyone can enter a form into a site, and will be using their IP to do so (unless they have some kind of proxy set up). If you're asking how to store the contents a user submit from a form using their IP as a sort of user-system, that's different.
  11. cpanel -> phpmyadmin -> Your database -> Announcements table -> Big red X
  12. Excellent, excellent work on the images guys. I totally forgot to post the card images (although some of you already jumped onto them and started making new ones!) Here they are: http://seanybob.net/mccodesv2/images/cards.zip For these, I was hoping to get the white background that shows on each card eliminated (turned into transparent), and get new backgrounds for the 2 cards that show a design on them (in this case, a moose sign). I think I'm going to throw up a simple website with all the designs you guys have made, so purchasers of the mod can browse through and easily install a new template. 2 More days until release!
  13. Thanks for your opinion ;) I encourage you to try coding it yourself. Anyways, I already mentioned I suck with images - not sure if that's what you're critiquing by the word 'quality', but if so you are entirely justified. If you can be a bit more specific, I actually respond to (and improve) your critiques.
  14. Awesome. Thanks Dayo ;)
  15. Good job on those images. The table is nearly perfect - not sure what those little circles are on each player location. Cup holders? Chips? Maybe replace them with a stack of chips or something, or just take them off completely. The chairs look great. One thing though - for both the table, chairs, and all images, can you make the backgrounds transparent? Instead of white, black, or whatever. Good idea for the different silhouettes. Those are fine once you resize them. Also a note to others - even if I use McFarlin's images, that doesn't mean you still can't get the deal. Ideally, I'd like to get 3-5 templates of images set up, so people who purchase the mod can choose which one they want to use. Regarding the mod price: It will be $150 for a single license, straight up. It will be $75 for a single license if you contribute something to the mod. Contributions include: -Image sets -Texas Hold 'em tutorial -Strategy guide -A significant idea for improvement to the mod that is added (awarding of this is based upon my sole discretion) -Other (this isn't a conclusive list, if you have an idea that would fall in this category just pm/post it) All contributions that are made become property of the mod owner, and will be distributed to everyone who purchases the mod. Meaning - if you contribute images to the mod, you get the 50% off price. You don't get 50% of sales, or 10% of sales, or a $200 bonus, yada, yada. They are no longer yours, so you can't suddenly decide to sue me a few weeks down the road or whatever (just wanted to put that disclaimer in here somewhere). The mod price is fairly steep, but affordable. It will come with support, and constant updates. I'll be using this code for my senior project in college, so I'll be continuously adding new things/tweaking it. All updates will be free. If you have a smaller game, and can't afford the straight up price, just contribute something to the mod and you get it for the cheaper price. $75 is the cost for McCodes v1, and thus shouldn't be too far out of your budget for a mod this big. Any more questions, comments? I'll be releasing this mod to the general public on Monday. Right now I'm just adding some 'cleaner-uppers' to the mod that delete empty tables, remove people from tables who go afk for more than 3 rounds, etc.
  16. Those are decent. Although, the sizes of the BB, SB, and D pictures is wayyyyyy too big. Also, the table layout is: 3 on top 1 on each side 3 on bottom Not 2 on each size like in that table picture... But pretty good.
  17. So I finally coded it. Over the past year or so, I've gotten about a dozen emails asking when I would finish this mod (as I started it a long time ago). Recently, having gotten into ajax, I decided to pick it up again. So I did, and now it's finished. It is coded COMPLETELY from scratch, from the ground up. I'M NOT RELEASING IT YET! I'll be releasing it in about a week. First though, I want to get a little more beta testing in on it trying to find bugs. There's also little tidbits I want to make 'more pretty', as I pretty much slew stuff together so I can test the game part of it. Also, I'd like to get better graphics. That's why I'm posting. I suck at graphics. The graphics for the game are currently horrible. So I thought I'd hold a little mini-competition right before I release it to get better graphics for it. Anybody who wants to, can make their own version of graphics for this mod. The best 3 will get a '50% off mod price' coupon for this mod, if they choose to buy it. You can see a demo of the mod here: http://seanybob.net/mccodesv2 Here is the package of images that you can alter/create as you wish: http://seanybob.net/mccodesv2/images/images.zip I'd like for the images to stay about the same size, and preferably the same format. Also, just a heads up: This mod will have one file obfuscated, to ensure that as few illegal versions of this mod as possible will be distributed. The mod consists of 6-7 files total, and the file in question will consist solely of functions that should not be changed (but are vital to the game) such as dealing out cards, determining who has the best hand, etc. So you'll still be able to customize the code for the mod in any way you want, save for those basic game functions. That's all for now, you'll hear more about this soon. -Seanybob
  18. Sigh, let's not get into the whole "let's argue with crazy-t" thing again. Redex, good guide. It shows you're learning (and have learned) quite a bit. One major thing to note is that both $_GET and $_POST are inputs. As someone mentioned above me, GET appends the variables to the end of the url, while POST encodes them with the page (in a sense). They are both inputs sent via a form, and the method can be changed in the form declaration. <form method=get action=#> or <form method=post action=#> Keep up the good work!
  19. I suppose I could post the files as well as the download link: ReadMe.txt Thank you for purchasing Seanybob's Slots Casino mod. To setup, simply upload the files in the upload folder to your game directory, and run the sql in the sql file. Any questions/comments, email me at [email][email protected][/email] Be sure to check out my other mods at [url]http://seanybob.net/index.php?act=mccodes[/url]   mysql.sql CREATE TABLE IF NOT EXISTS `slots_stats` ( `plays` int(11) NOT NULL, `houseprofit` int(11) NOT NULL, `jackpot7` int(11) NOT NULL, `jackpotbar` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `slots_stats` (`plays`, `houseprofit`, `jackpot7`, `jackpotbar`) VALUES (0, 0, 2400, 50); CREATE TABLE IF NOT EXISTS `slot_reel` ( `id` int(11) NOT NULL auto_increment, `reel1` varchar(255) NOT NULL default 'blank', `reel2` varchar(255) NOT NULL default 'blank', `reel3` varchar(255) NOT NULL default 'blank', `reel1bef` varchar(255) NOT NULL, `reel1aft` varchar(255) NOT NULL, `reel2bef` varchar(255) NOT NULL, `reel2aft` varchar(255) NOT NULL, `reel3bef` varchar(255) NOT NULL, `reel3aft` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=65 ; INSERT INTO `slot_reel` (`id`, `reel1`, `reel2`, `reel3`, `reel1bef`, `reel1aft`, `reel2bef`, `reel2aft`, `reel3bef`, `reel3aft`) VALUES (1, '2bar', '2bar', '2bar', '1bar', '3bar', '1bar', '3bar', '1bar', '3bar'), (2, '2bar', '2bar', '2bar', '1bar', '3bar', '1bar', '3bar', '1bar', '3bar'), (3, '2bar', 'blank', '2bar', '1bar', '3bar', '2bar', '3bar', '1bar', '3bar'), (4, 'blank', 'blank', 'blank', '2bar', '3bar', '2bar', '3bar', '2bar', '3bar'), (5, 'blank', '3bar', 'blank', '2bar', '3bar', '2bar', 'white7', '2bar', '3bar'), (6, '3bar', '3bar', '3bar', '2bar', 'white7', '3bar', 'white7', '2bar', 'white7'), (7, '3bar', 'blank', 'blank', '2bar', 'white7', '3bar', 'white7', '3bar', 'white7'), (8, 'blank', 'blank', 'blank', '3bar', 'white7', '3bar', 'white7', '3bar', 'white7'), (9, 'blank', 'blank', 'blank', '3bar', 'white7', '3bar', 'white7', '3bar', 'white7'), (10, 'blank', 'white7', 'white7', '3bar', 'white7', 'white7', '1bar', '3bar', '1bar'), (11, 'white7', 'blank', 'white7', '3bar', '1bar', 'white7', '1bar', '3bar', '1bar'), (12, 'white7', 'blank', 'white7', '3bar', '1bar', 'white7', '1bar', '3bar', '1bar'), (13, 'white7', 'blank', 'white7', '3bar', '1bar', 'white7', '1bar', '3bar', '1bar'), (14, 'white7', '1bar', 'white7', '3bar', '1bar', 'white7', 'blue7', '3bar', '1bar'), (15, 'white7', '1bar', 'white7', '3bar', '1bar', 'white7', 'blue7', '3bar', '1bar'), (16, 'white7', '1bar', 'white7', '3bar', '1bar', 'white7', 'blue7', '3bar', '1bar'), (17, 'blank', '1bar', 'blank', 'white7', '1bar', 'white7', 'blue7', 'white7', '1bar'), (18, 'blank', 'blank', 'blank', 'white7', '1bar', '1bar', 'blue7', 'white7', '1bar'), (19, 'blank', 'blank', 'blank', 'white7', '1bar', '1bar', 'blue7', 'white7', '1bar'), (20, '1bar', 'blank', '1bar', 'white7', 'blue7', '1bar', 'blue7', 'white7', 'blue7'), (21, '1bar', 'blue7', '1bar', 'white7', 'blue7', '1bar', '2bar', 'white7', 'blue7'), (22, '1bar', 'blue7', '1bar', 'white7', 'blue7', '1bar', '2bar', 'white7', 'blue7'), (23, 'blank', 'blue7', '1bar', '1bar', 'blue7', '1bar', '2bar', 'white7', 'blue7'), (24, 'blank', 'blue7', '1bar', '1bar', 'blue7', '1bar', '2bar', 'white7', 'blue7'), (25, 'blank', 'blue7', 'blank', '1bar', 'blue7', '1bar', '2bar', '1bar', 'blue7'), (26, 'blue7', 'blue7', 'blank', '1bar', '2bar', '1bar', '2bar', '1bar', 'blue7'), (27, 'blue7', 'blue7', 'blank', '1bar', '2bar', 'blue7', '2bar', '1bar', 'blue7'), (28, 'blue7', 'blank', 'blue7', '1bar', '2bar', 'blue7', '2bar', '1bar', '2bar'), (29, 'blue7', 'blank', 'blank', '1bar', '2bar', 'blue7', '2bar', 'blue7', '2bar'), (30, 'blue7', 'blank', 'blank', '1bar', '2bar', 'blue7', '2bar', 'blue7', '2bar'), (31, 'blue7', '2bar', 'blank', '1bar', '2bar', 'blue7', '3bar', 'blue7', '2bar'), (32, 'blank', '2bar', '2bar', 'blue7', '2bar', 'blue7', '3bar', 'blue7', '3bar'), (33, 'blank', 'blank', '2bar', 'blue7', '2bar', '2bar', '3bar', 'blue7', '3bar'), (34, 'blank', 'blank', '2bar', 'blue7', '2bar', '2bar', '3bar', 'blue7', '3bar'), (35, '2bar', '3bar', 'blank', 'blue7', '3bar', '2bar', 'red7', '2bar', '3bar'), (36, '2bar', '3bar', 'blank', 'blue7', '3bar', '3bar', 'red7', '2bar', '3bar'), (37, 'blank', 'blank', '3bar', '2bar', '3bar', '3bar', 'red7', '2bar', 'red7'), (38, 'blank', 'blank', 'blank', '2bar', '3bar', '3bar', 'red7', '3bar', 'red7'), (39, '3bar', 'blank', 'blank', '2bar', 'red7', '3bar', 'red7', '3bar', 'red7'), (40, 'blank', 'blank', 'blank', '3bar', 'red7', '3bar', 'red7', '3bar', 'red7'), (41, 'blank', 'blank', 'blank', '3bar', 'red7', '3bar', 'red7', '3bar', 'red7'), (42, 'blank', 'red7', 'blank', '3bar', 'red7', '3bar', '3bar', '3bar', 'red7'), (43, 'blank', 'red7', 'red7', '3bar', 'red7', '3bar', '3bar', '3bar', '3bar'), (44, 'blank', 'red7', 'blank', '3bar', 'red7', 'red7', '3bar', 'red7', '3bar'), (45, 'red7', 'blank', 'blank', '3bar', '3bar', 'red7', '3bar', 'red7', '3bar'), (46, 'blank', 'blank', 'blank', 'red7', '3bar', 'red7', '3bar', 'red7', '3bar'), (47, 'blank', 'blank', 'blank', 'red7', '3bar', 'red7', '3bar', 'red7', '3bar'), (48, 'blank', 'blank', 'blank', 'red7', '3bar', 'red7', '3bar', 'red7', '3bar'), (49, 'blank', 'blank', '3bar', 'red7', '3bar', 'red7', '3bar', 'red7', '2bar'), (50, 'blank', '3bar', '3bar', 'red7', '3bar', 'red7', '2bar', 'red7', '2bar'), (51, '3bar', '3bar', '3bar', 'red7', '2bar', 'red7', '2bar', 'red7', '2bar'), (52, '3bar', '3bar', 'blank', 'red7', '2bar', '3bar', '2bar', '3bar', '2bar'), (53, '3bar', 'blank', 'blank', 'red7', '2bar', '3bar', '2bar', '3bar', '2bar'), (54, 'blank', 'blank', '2bar', '3bar', '2bar', '3bar', '2bar', '3bar', '1bar'), (55, 'blank', '2bar', '2bar', '3bar', '2bar', '3bar', '1bar', '3bar', '1bar'), (56, '2bar', '2bar', '2bar', '3bar', '1bar', '2bar', '1bar', '3bar', '1bar'), (57, '2bar', 'blank', 'blank', '3bar', '1bar', '2bar', '1bar', '2bar', '1bar'), (58, 'blank', 'blank', 'blank', '2bar', '1bar', '2bar', '1bar', '2bar', '1bar'), (59, 'blank', '1bar', '1bar', '2bar', '1bar', '2bar', '2bar', '2bar', '2bar'), (60, '1bar', '1bar', '1bar', '2bar', '2bar', '2bar', '2bar', '2bar', '2bar'), (61, '1bar', '1bar', '1bar', '2bar', '2bar', '2bar', '2bar', '2bar', '2bar'), (62, '1bar', '1bar', '1bar', '1bar', '2bar', '1bar', '2bar', '2bar', '2bar'), (63, 'blank', 'blank', 'blank', '1bar', '2bar', '1bar', '2bar', '1bar', '2bar'), (64, 'blank', 'blank', 'blank', '1bar', '2bar', '1bar', '2bar', '1bar', '2bar');   slots.php <?php include "globals.php"; $sst=$db->fetch_row($db->query("SELECT * FROM slots_stats LIMIT 1")); $betamt=abs((int)$_GET['betamount']); print" <div class='heading'>7's and Stripes Slots</div>"; if($ir['user_level']==2) { $adst=$db->query("SELECT * FROM slots_stats LIMIT 1"); $adsta=$db->fetch_row($adst); print"<hr /> Stats: [b]House Profit:[/b] ".number_format($adsta['houseprofit'])." money [b]Total Plays:[/b] ".number_format($adsta['plays'])." <hr />"; } print"<hr width=98%> [b]Jackpots:[/b] <font size=1.5>Red 7 / White 7 / Blue 7</font> - \$[b]".number_format($sst['jackpot7'])."[/b] <font size=1.5>1 Bar / 2 Bar / 3 Bar</font> - \$[b]".number_format($sst['jackpotbar'])."[/b] "; if($betamt>0) { if($ir['money']<$betamt){print"You don't have that many money. ";} else { $randomincident=rand(1,500); if($randomincident==13) {//5 credit bonus print"[b]SOMETHING HAPPENED![/b] <font size=1.5>A random bystander watches you play the slots for a few minutes, then [i]hands you 5 dollars[/i] and shakes his head sadly while walking away.</font> "; $db->query("UPDATE users SET money=money+5 WHERE userid={$ir['userid']}"); $db->query("UPDATE slots_stats SET houseprofit=houseprofit-5"); } if($randomincident==11 || $randomincident==43 || $randomincident==14) {//1 credit bonus print"[b]SOMETHING HAPPENED![/b] <font size=1.5>You see a dollar lying on the floor... nobody is looking, so you pick it up. Woot! You just got one dollar!</font> "; $db->query("UPDATE users SET money=money+1 WHERE userid={$ir['userid']}"); $db->query("UPDATE slots_stats SET houseprofit=houseprofit-1"); } print"You bet \$$betamt. "; $db->query("UPDATE users SET money=money-$betamt WHERE userid={$ir['userid']}"); $db->query("UPDATE slots_stats SET plays=plays+1, houseprofit=houseprofit+$betamt"); $reel1=rand(1,64); $reel2=rand(1,64); $reel3=rand(1,64); $re1=$db->query("SELECT reel1,reel1aft,reel1bef FROM slot_reel WHERE id=$reel1"); $r1=$db->fetch_row($re1); $re2=$db->query("SELECT reel2,reel2aft,reel2bef FROM slot_reel WHERE id=$reel2"); $r2=$db->fetch_row($re2); $re3=$db->query("SELECT reel3,reel3aft,reel3bef FROM slot_reel WHERE id=$reel3"); $r3=$db->fetch_row($re3); $score=getscore($r1['reel1'], $r2['reel2'], $r3['reel3']); $winamount = $score[1] * $betamt; $r1img=$r1['reel1']; $r2img=$r2['reel2']; $r3img=$r3['reel3']; ?> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> <tr><td colspan=5></td></tr> <tr><td></td><td>[img=images/slots/<?php print $r1['reel1bef']; ?>btm.PNG]</td><td width="9"></td><td>[img=images/slots/<?php print $r2['reel2bef']; ?>btm.PNG]</td><td width="9"></td><td>[img=images/slots/<?php print $r3['reel3bef']; ?>btm.PNG]</td><td></td></tr> <tr><td></td><td>[img=images/slots/<?php print $r1img; ?>.PNG]</td><td width="9"></td><td>[img=images/slots/<?php print $r2img; ?>.PNG]</td><td width="9"></td><td>[img=images/slots/<?php print $r3img; ?>.PNG]</td><td></td></tr> <tr><td></td><td>[img=images/slots/<?php print $r1['reel1aft']; ?>top.PNG]</td><td width="9"></td><td>[img=images/slots/<?php print $r2['reel2aft']; ?>top.PNG]</td><td width="9"></td><td>[img=images/slots/<?php print $r3['reel3aft']; ?>top.PNG]</td><td></td></tr> <tr><td colspan=5></td></tr> </table> <?php //{$r1['reel1']} - {$r2['reel2']} - {$r3['reel3']} if($winamount>0){$outcome="[b]You won \$$winamount.[/b]";} else{$outcome="Sorry, you didn't win anything.";} print" $score[0] $outcome "; if($winamount>0) { $db->query("UPDATE slots_stats SET houseprofit=houseprofit-$winamount LIMIT 1"); $db->query("UPDATE users SET money = money + $winamount WHERE userid={$ir['userid']}"); } print" <form method=post action=slots.php?betamount=$betamt><input type=submit value='Play Again'></form> "; } } else { ?> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> <tr><td colspan=5></td></tr> <tr><td></td><td>[img=images/slots/2barbtm.PNG]</td><td width="9"></td><td>[img=images/slots/3barbtm.PNG]</td><td width="9"></td><td>[img=images/slots/1barbtm.PNG]</td><td></td></tr> <tr><td></td><td>[img=images/slots/red7.PNG]</td><td width="9"></td><td>[img=images/slots/white7.PNG]</td><td width="9"></td><td>[img=images/slots/blue7.PNG]</td><td></td></tr> <tr><td></td><td>[img=images/slots/3bartop.PNG]</td><td width="9"></td><td>[img=images/slots/1bartop.PNG]</td><td width="9"></td><td>[img=images/slots/2bartop.PNG]</td><td></td></tr> <tr><td colspan=5></td></tr> </table> <?php print" <form method=get action='slots.php'> How many money do you want to bet per spin? \$<input size=3 type=text name='betamount' value=1> <input type=submit value='Start Playing the Slots!'> </form> "; } print" [img=images/slotspayout.png]<center> "; $h->endpage(); function getscore($r1, $r2, $r3) { global $db; /* single bar red double bar white triple bar blue */ //red 7, white 7, blue 7 if($r1=='red7' && $r2=='white7' && $r3 == 'blue7') { $sst2=$db->fetch_row($db->query("SELECT * FROM slots_stats LIMIT 1")); $score[0]="JACKPOT!";$score[1]=$sst2['jackpot7']; $db->query("UPDATE slots_stats SET jackpot7=2400 LIMIT 1"); } //red 7, red 7, red 7 else if($r1=='red7' && $r2=='red7' && $r3 == 'red7') { $score[0]="Triple Red Sevens!";$score[1]=1200; $bonus=$score[1]/3; $db->query("UPDATE slots_stats SET jackpot7=jackpot7+$bonus LIMIT 1"); } //white 7, white 7, white 7 else if($r1=='white7' && $r2=='white7' && $r3 == 'white7') { $score[0]="Triple White Sevens!";$score[1]=200; $bonus=$score[1]/3; $db->query("UPDATE slots_stats SET jackpot7=jackpot7+$bonus LIMIT 1"); } //blue 7, blue 7, blue 7 else if($r1=='blue7' && $r2=='blue7' && $r3 == 'blue7') { $score[0]="Triple Blue Sevens!";$score[1]=150; $bonus=$score[1]/3; $db->query("UPDATE slots_stats SET jackpot7=jackpot7+$bonus LIMIT 1"); } //any 3 sevens else if(($r1=='red7' || $r1=='white7' || $r1 == 'blue7') && ($r2=='red7' || $r2=='white7' || $r2 == 'blue7') && ($r3=='red7' || $r3=='white7' || $r3 == 'blue7')) { $score[0]="Triple Sevens!";$score[1]=80; $bonus=$score[1]/3; $db->query("UPDATE slots_stats SET jackpot7=jackpot7+$bonus LIMIT 1"); } //1 Bar, 2 Bar, 3 Bar else if($r1=='1bar' && $r2=='2bar' && $r3 == '3bar') { $sst2=$db->fetch_row($db->query("SELECT * FROM slots_stats LIMIT 1")); $score[0]="Easy as 1-2-3! JACKPOT!";$score[1]=$sst2['jackpotbar']; $db->query("UPDATE slots_stats SET jackpotbar=50 LIMIT 1"); } //3 Bar, 3 Bar, 3 Bar else if($r1=='3bar' && $r2=='3bar' && $r3 == '3bar') { $score[0]="Triple 3-bars!";$score[1]=40; $bonus=$score[1]/2; $db->query("UPDATE slots_stats SET jackpotbar=jackpotbar+$bonus LIMIT 1"); } //2 Bar, 2 Bar,2 Bar else if($r1=='2bar' && $r2=='2bar' && $r3 == '2bar') { $score[0]="Triple 2-bars!";$score[1]=25; $bonus=$score[1]/2; $db->query("UPDATE slots_stats SET jackpotbar=jackpotbar+$bonus LIMIT 1"); } /* //Any red, any white,any blue else if(($r1=='1bar' || $r1=='red7') && ($r1=='2bar' || $r1=='white7') && ($r1=='3bar' || $r1=='blue7')) { $score[0]="Red, White and Blue!";$score[1]=20; } */ //1 Bar, 1 Bar,1 Bar else if($r1=='1bar' && $r2=='1bar' && $r3 == '1bar') { $score[0]="Triple 1-bars!";$score[1]=10; $bonus=$score[1]/2; $db->query("UPDATE slots_stats SET jackpotbar=jackpotbar+$bonus LIMIT 1"); } //any 3 bars else if(($r1=='1bar' || $r1=='2bar' || $r1 == '3bar') && ($r2=='1bar' || $r2=='2bar' || $r2 == '3bar') && ($r3=='1bar' || $r3=='2bar' || $r3 == '3bar')) { $score[0]="Three different bars!";$score[1]=5; $bonus=$score[1]/2; $db->query("UPDATE slots_stats SET jackpotbar=jackpotbar+$bonus LIMIT 1"); } //any 3 reds else if(($r1=='1bar' || $r1=='red7') && ($r2=='1bar' || $r2=='red7') && ($r3=='1bar' || $r3=='red7')) { $score[0]="I'm seeing red...";$score[1]=2; } //any 3 whites else if(($r1=='2bar' || $r1=='white7') && ($r2=='2bar' || $r2=='white7') && ($r3=='2bar' || $r3=='white7')) { $score[0]="Everything is white!";$score[1]=2; } //any 3 blues else if(($r1=='3bar' || $r1=='blue7') && ($r2=='3bar' || $r2=='blue7') && ($r3=='3bar' || $r3=='blue7')) { $score[0]="Feeling a little blue?";$score[1]=2; } //3 blanks else if($r1=='blank' && $r2=='blank' && $r3 == 'blank') { $score[0]="3 Blanks. How sad. Here's a pity bonus.";$score[1]=1; } return $score; } ?>   There are images that are needed as well in the zip posted above.
  20. No worries ;) Apologies if I came off rude as well, this medium of communication makes it hard to convey thoughts and emotions properly, leading quite easily to misunderstandings. I'll be eagerly awaiting your results from your test! I've been curious about this for some time (whether or not malicious code can sift through it, that is). I know there are ways to avoid standard code, such as using the % sign and numbers as symbols for letters, and other ways of obfuscating code to get past filters, but I don't recall ever seeing a method that uses pure letters and numbers. I genuinely wish you luck!
  21. I have been working on a large mod as of late that I expect to release in the next week or two. Because of that, I decided to release most of my previous mods for free, for people to alter/add as they see fit. Here is the first of many. Merry Christmas. Slots mod. Play is the same as 7’s and Stripes slots in the casino, with the same probabilities, but with two progressive jackpots added, as well as random events (like finding a dollar on the ground). Pretty spiffy little graphics. Demo: http://seanybob.net/mccodesv2 Download: http://seanybob.net/mods/download/slotsmod.zip
  22. I was not trying to imply in any fashion that that function made a site fully secure. That is not the case. What I said (if you read over my post) is that I doubt any malicious input could get past that script. Here, let me remind you:   Of course this doesn't stop csrf, session hijacking, putting a virus on an admin's computer, hacking into the cpanel of a webserver hosting mccodes, a ddos attack, the IP header spoof, or countless other things you could do. I was not making that claim. I was making the claim (which I admit, I may be wrong) that you would have an extremely difficult time inputting malicious code into the site with that function. That function would also make messages between users more unreadable, the in-game forum system disgusting-looking, and profile signatures/any other sentence-type input malformed. But that's not my problem. If you want your code secured properly, pay someone a couple hundred bucks to do it or buy a decent engine. If you just want to get a game up and running, follow all the guides on this forum for securing you can find, then stick that code in your header.php and you'll give a hacker a headache. So. I'll reiterate. Show me malicious input that gets past this, and I'll admit it's a fail. Otherwise, you're full of it. :)
  23.   Fail. Show me malicious input that gets past this, and I'll admit it's a fail. Otherwise, you're full of it. :)
  24. Add into your header.php foreach($_POST as $k => $v) { $_POST[$k] = preg_replace("/[^0-9a-zA-Z\s]/", "", $v); } foreach($_GET as $k => $v) { $_GET[$k] = preg_replace("/[^0-9a-zA-Z\s]/", "", $v); }   Win.
  25. Good to hear mate! Let me know if you need any help setting it up ;)
×
×
  • Create New...