PBBG Network
|
BuildingBrowserGames
|
Top-PBBG
March 10, 2010, 07:23:54 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Join the forums now, and start posting to receive access to our Scripts Vault!
Home
Forum
Help
Login
Register
BBGameZone.net
>
Webmasters
>
Coding Discussion
>
Video Poker
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Video Poker (Read 1124 times)
Slashmore
Level 17
Reputation: 1
Offline
Posts: 158
Video Poker
«
on:
February 14, 2009, 09:35:12 PM »
Ermm, I was wondering if anyone could make or give me the script and db values for this..
Right, Someone can own the casino and you can play at it just like you can play BJ. If you win money it comes out of owners money and if they go bankrupt they drop the casino. If you lose the money it goes to the owners money and in the poker CP the profit will update ($500 ) / (-$500).
The owner can send the casino to another player and can drop the casino and change the max bet of the poker.
When you play the poker you get 5 cards come up at random. You can hold as many of them as you want.
The ones you don't hold get randomed again and added with the cards to held and then if you get any good hand it will payout..
Hands.. ( In order from crap to good )
Nothing - Crap
Pair
Two Pair
Three Kind
Straight
Flush
Full House
Four of a kind
Straigh Flush
Royal Flush - Good
Payouts
( Your Bet * Payout = Winnings )
Nothing - x0
Pair - x1
Two Pair - x2
Three Kind - x3
Straight - x4
Flush - x9
Full House - x9
Four of a kind - x25
Straigh Flush - x50
Royal Flush - x250
I hope this all makes scence and I would really love somoene to code this for me.
Send me a PM for more infomation or post here. Maybe a some money if someone gets it how I want it. PM me for more info or post here.
Thanks once again,
Sean
Logged
jannesiera
Level 35
Reputation: 5
Offline
Posts: 934
Re: Video Poker
«
Reply #1 on:
February 15, 2009, 02:22:44 AM »
Why don't you just code it for yourself? Because I would be realy surprised if someone was willing to do this for you.
Logged
BBGameDesign BLOG - The development, religion and science of browser based games
PBBG Snippets - PBBG developers are sharing for better code and faster development
raestlyn
Level 28
Reputation: 3
Offline
Posts: 428
Re: Video Poker
«
Reply #2 on:
February 15, 2009, 04:35:26 AM »
I'm so nice that I'll give you a simple poker script but you need to edit the core around it. I'm not doing that. Just give me a day to find it from my archives..
Logged
Quote from: trollface666 on January 12, 2009, 02:15:16 AM
I can send you pics of my cocks if you want reference.
Slashmore
Level 17
Reputation: 1
Offline
Posts: 158
Re: Video Poker
«
Reply #3 on:
February 15, 2009, 06:02:01 AM »
Quote from: raestlyn on February 15, 2009, 04:35:26 AM
I'm so nice that I'll give you a simple poker script but you need to edit the core around it. I'm not doing that. Just give me a day to find it from my archives..
Thanks, Shouldn't take me long to edit..
Why don't I code it myself? I'd love to I'm been with php and mysql for a month now and still learning. Editing codes is a great way of learning I think.
Logged
raestlyn
Level 28
Reputation: 3
Offline
Posts: 428
Re: Video Poker
«
Reply #4 on:
February 15, 2009, 01:22:30 PM »
There you go, have fun with it.
«
Last Edit: February 15, 2009, 03:58:07 PM by raestlyn
»
Logged
Quote from: trollface666 on January 12, 2009, 02:15:16 AM
I can send you pics of my cocks if you want reference.
codestryke
Administrator
Level 31
Reputation: 18
Offline
Posts: 519
Re: Video Poker
«
Reply #5 on:
February 15, 2009, 03:39:53 PM »
Sorry to me this is pathetic. Hey lets all just give him snippets so he doesn't have to code anything, just hack it into his game. Sorry programming at your level (Slashmore) is not just hacking something to work within the context of your game.
Poker should be one of those things you should master by YOURSELF. It's a simple game with a very specific set of rules. It also forces the programmer to think, how to shuffle, how to check for a winning set, basically all the basics you need to master to become a proficient programmer. So far you have shown none of this and continue to come up with ideas with no course of how to go about adding them yourself. You post what you want and then everyone comes to your rescue. This is a forum for those that genuinely want to learn how to program games, you are not, you are just looking to plug things into your game at the expense of other peoples hard work.
Eventually the rest of the community may catch up to you and your antics, until then enjoy the free codes.
Logged
Creating online addictions, one game at a time:
www.extremecast.com
raestlyn
Level 28
Reputation: 3
Offline
Posts: 428
Re: Video Poker
«
Reply #6 on:
February 15, 2009, 03:59:47 PM »
I did remove the script, even when it was very simple one, until this mess is settled up. You really should be able to do the poker script by your own. Hell, think of it as a lesson to array manipulation.
Logged
Quote from: trollface666 on January 12, 2009, 02:15:16 AM
I can send you pics of my cocks if you want reference.
Nox
Level 28
Reputation: 10
Offline
Posts: 414
Re: Video Poker
«
Reply #7 on:
February 15, 2009, 04:06:43 PM »
I'd second these last oppinions, you'll learn most by doing it yourself, this applies in general to everything.
It's like...you're reading something you'd like to learn (e.g. for school) and go "yeah, I understand, I understand it", but when there's a blank sheet of workspace and I should do something, suddenly it's a problem...experience speaking
Of course you can learn some new tricks, but generally...
Don't see it as evil and grudging, it'll pay itself off in the long run
Logged
Bookmark worthy:
Sirlin.net (game design)
codestryke
Administrator
Level 31
Reputation: 18
Offline
Posts: 519
Re: Video Poker
«
Reply #8 on:
February 15, 2009, 04:44:40 PM »
Quote from: raestlyn on February 15, 2009, 03:59:47 PM
I did remove the script, even when it was very simple one, until this mess is settled up. You really should be able to do the poker script by your own. Hell, think of it as a lesson to array manipulation.
Sorry raestlyn, it wasn't about you I hope no hard feelings, the majority here are really here to help and thats part of the problem sometimes (which also makes this a great forum)
Logged
Creating online addictions, one game at a time:
www.extremecast.com
die4me
Level 16
Reputation: 0
Offline
Posts: 139
When life gives you lemons throw them at people
Re: Video Poker
«
Reply #9 on:
February 15, 2009, 04:59:12 PM »
I think everyone should learn how to do things themselves. But you do learn by seeing or watching how others do things. An example say you want to repair your car and you want to do it yourself so you ask someone to teach you does this person make you learn how to build the whole car buy yourself no he shows you how to fix it and you learn by seeing how he did it. You will learn quite a bit by studying books and such but seeing how codes are put together into a script is a good way to learn too so you should do both and anyone that says you gotta only learn by doing on there should try and remember how it was when they were starting out and try and help. Post a couple of examples or link a tutorial instead of saying go learn on your own. This is a help section after all.
Logged
MystressNyx
Administrator
Level 14
Reputation: 4
Offline
Posts: 105
Re: Video Poker
«
Reply #10 on:
February 15, 2009, 05:10:09 PM »
How about this, have Slashmore post even a single snippet of code that he's written himself to show that he's even *trying* to learn and then maybe this could be considered "helping". As it stands now, he's done nothing, but beg for code laid out on a silver platter, not help to implement something he doesn't quite get. He's also not asking for direction or tutorials. He's asking for completed code that he can just drop into his game.
Logged
Slashmore
Level 17
Reputation: 1
Offline
Posts: 158
Re: Video Poker
«
Reply #11 on:
February 15, 2009, 06:14:06 PM »
I see your point codestryke, Before I post here from now on I'll attempt it myself.
with my limited time on a PC its a little hard to get into a code then have to come off it and chuck it into the "save for later" pile.
But.. I will start to make more of an effort.
Thanks for pointing this out.
-Sean
Logged
die4me
Level 16
Reputation: 0
Offline
Posts: 139
When life gives you lemons throw them at people
Re: Video Poker
«
Reply #12 on:
February 15, 2009, 06:19:03 PM »
Like i said i think everyone should learn for themselves and they did ask for the whole code and you are right about that.
But if someone wants to give them the code it is for that person to decide.
I won't tell anyone else not to cause it is kinda rude to a person that just wants to be generous. Also if they don't wanna really learn that is there problem we can't force someone to learn.
Logged
Slashmore
Level 17
Reputation: 1
Offline
Posts: 158
Re: Video Poker
«
Reply #13 on:
February 15, 2009, 06:27:35 PM »
Here, I coded this a few days ago. Its for my menu. My game has thier own family forum each. There is a limit to one family per location so it works by locations. So if I'm not in a family it will point me to
forum.php?forum=family
If I was in a family it would point me to the location where my family was made. So only people in the family x can view that locations forum. Each family would have thier own family forum like they have thier own location..
There
P.S :: Rushed the text above, times up once again.
Code:
function famforum(){
$player = $_SESSION['playername'];
$qry = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error());
$arr = mysql_fetch_array($qry);
$family = $arr['family'];
if ($family != "None"){
$q = mysql_query("SELECT `location` FROM `family` WHERE `name` = '$family' LIMIT 1")or die(mysql_error());
$a = mysql_fetch_array($q);
$loc = $a['0'];
print (" <a href=\"forum/forum.php?forum=".$loc."\" target=\"main\">Family forum</a><br />");
}elseif ($family == "None"){
print (" <a href=\"forum/forum.php?forum=family\" target=\"main\">Family forum</a><br />");
}}
?>
-Sean
Logged
raestlyn
Level 28
Reputation: 3
Offline
Posts: 428
Re: Video Poker
«
Reply #14 on:
February 16, 2009, 05:45:41 AM »
Quote from: Slashmore on February 15, 2009, 06:27:35 PM
Here, I coded this a few days ago. Its for my menu. My game has thier own family forum each. There is a limit to one family per location so it works by locations. So if I'm not in a family it will point me to
forum.php?forum=family
If I was in a family it would point me to the location where my family was made. So only people in the family x can view that locations forum. Each family would have thier own family forum like they have thier own location..
There
P.S :: Rushed the text above, times up once again.
Code:
function famforum(){
$player = $_SESSION['playername'];
$qry = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error());
$arr = mysql_fetch_array($qry);
$family = $arr['family'];
if ($family != "None"){
$q = mysql_query("SELECT `location` FROM `family` WHERE `name` = '$family' LIMIT 1")or die(mysql_error());
$a = mysql_fetch_array($q);
$loc = $a['0'];
print (" <a href=\"forum/forum.php?forum=".$loc."\" target=\"main\">Family forum</a><br />");
}elseif ($family == "None"){
print (" <a href=\"forum/forum.php?forum=family\" target=\"main\">Family forum</a><br />");
}}
?>
-Sean
That works, but its very unoptimal. Now, try to make that with one query and in 10 lines of code instead of 20+.
Logged
Quote from: trollface666 on January 12, 2009, 02:15:16 AM
I can send you pics of my cocks if you want reference.
Slashmore
Level 17
Reputation: 1
Offline
Posts: 158
Re: Video Poker
«
Reply #15 on:
February 16, 2009, 09:44:51 AM »
Quote from: raestlyn on February 16, 2009, 05:45:41 AM
Quote from: Slashmore on February 15, 2009, 06:27:35 PM
Here, I coded this a few days ago. Its for my menu. My game has thier own family forum each. There is a limit to one family per location so it works by locations. So if I'm not in a family it will point me to
forum.php?forum=family
If I was in a family it would point me to the location where my family was made. So only people in the family x can view that locations forum. Each family would have thier own family forum like they have thier own location..
There
P.S :: Rushed the text above, times up once again.
Code:
function famforum(){
$player = $_SESSION['playername'];
$qry = mysql_query("SELECT * FROM `players` WHERE `playername` = '$player' LIMIT 1")or die(mysql_error());
$arr = mysql_fetch_array($qry);
$family = $arr['family'];
if ($family != "None"){
$q = mysql_query("SELECT `location` FROM `family` WHERE `name` = '$family' LIMIT 1")or die(mysql_error());
$a = mysql_fetch_array($q);
$loc = $a['0'];
print (" <a href=\"forum/forum.php?forum=".$loc."\" target=\"main\">Family forum</a><br />");
}elseif ($family == "None"){
print (" <a href=\"forum/forum.php?forum=family\" target=\"main\">Family forum</a><br />");
}}
?>
-Sean
That works, but its very unoptimal. Now, try to make that with one query and in 10 lines of code instead of 20+.
Yeah it works, Why would I want to change it so it does the same thing?
Logged
Nox
Level 28
Reputation: 10
Offline
Posts: 414
Re: Video Poker
«
Reply #16 on:
February 16, 2009, 09:59:42 AM »
That's again not really good approach. Because something somehow works doesn't mean it can't be better. Especially as browser games are in general case systems where optimization is very important
Logged
Bookmark worthy:
Sirlin.net (game design)
jannesiera
Level 35
Reputation: 5
Offline
Posts: 934
Re: Video Poker
«
Reply #17 on:
February 16, 2009, 03:46:39 PM »
I have mixed feelings about what's said here. Mainly because I understand that it can be much more fun learning from someone else's script (esspecialy in the beginning), and that's also the way I would do it. Look for something usable and start working. Also that's how I just started programming. Learned some stuff from a book and made some little expercieses (didn't learn me that much), so I just started woth a framework and started. And my game is going in the right direction.
So for me it was nice to just get working on my game directly insead of making boring stuff just to "learn" programming.
But, now, I won't ask help here if I don't need to. Some problems I needed days to solve (mainly bugs / some other weird stuff
), but didn't ask any of you guys' help because I knew I could try some more.
I think the most questions I asked here were about how to do approach a certain feature, ...
My 2cents? lol
Logged
BBGameDesign BLOG - The development, religion and science of browser based games
PBBG Snippets - PBBG developers are sharing for better code and faster development
Hypemaster
Level 15
Reputation: 2
Offline
Posts: 135
Re: Video Poker
«
Reply #18 on:
February 16, 2009, 05:15:41 PM »
Your right. I learned php with downloading some big gamescript and modify the crap out of it, learned from the code. Used php.net to search stuff that i dident know to do and some google. After 2 months of editing hours and hours every day (was in vacation period) and learning i ended up with a big modified game wich looked totaly different from original in features. I knew almost everything from php then only some way to protect my code. Ended up being a cheatfest, so i closed down the game. But it was fun way to learn programming.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
BBGameZone
-----------------------------
=> Announcements
=> Help, Suggestions & Feedback
=> Introductions
-----------------------------
Webmasters
-----------------------------
=> The Starting Line
=> The Articles
=> Coding Discussion
===> Code Help
=> Game Design
=> Game Management
=> Web Design & Graphics
=> Revenue & Promotion
=> Hosting & Domains
=> General Game Discussion
===> Text Games
===> Flash Games
===> Java Games
===> Other Games
-----------------------------
Advertise
-----------------------------
=> Projects
=> Advertisements
=> Marketplace
===> Scripts
===> Employment
===> Webmaster Exchanges
===> Advertisements
-----------------------------
Other Stuff
-----------------------------
=> General Chat & Entertainment
=> Archive
===> PBBG Contest #1
=====> Entries
Loading...