Argonath RPG - A World of its own

GTA:SA => SA:MP - San Andreas Multiplayer => SA:MP General => Topic started by: Zaila on January 05, 2014, 09:20:29 pm

Title: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Zaila on January 05, 2014, 09:20:29 pm
First, credits to [Rstar]Louis for creating the actual script. The job done by me is just bug fixing / improvements.



So, finally we are ready to release our new gambling script. This gambling script is a blackjack script which makes it impossible to scam other players  (As far as we know) as you do not need to send any money when betting. All you need is to have the money available in either your loose change or in your wallet and the script will handle the rest.

Commands:
*/bjhost [min bet] [max bet] - Hosting a BJ game
*/bjjoin [id] - To join a BJ game
*/bjready - Used to mark as ready (The game will start automatically when both are ready)
*/bjhitcard - To get a new card (Also a clickable button while playing)
*/bjstay - To stay and let the other player continue (Also a clickable button while playing)
*/bjexit - To leave a BJ game (Also a clickable button while playing)

Known issues
*If you press esc while in a BJ game, the cursor will disappear. You can either continue playing by commands stated above, or leave the game and re-create it.

How to start a game
A player can start a game inside a casino by using /bjhost and specify a minimum bet and a maximum bet. That will bring up this screen:

(http://i.imgur.com/UfZgUUD.jpg)
(The betting functions is not implemented properly yet. You can only play by using the minimum bet for now. This will be fixed in a future update)

How to play
You join an available game by using /bjjoin [id]. This command can be used on anyone that has started a BJ game. When there is 2 players available, the second player (not the host) needs to use /bjready and the screen will be updated like on this picture:

(http://i.imgur.com/96GmpMy.jpg)
The marked area shows that player 2 is ready.

When player 2 is ready, the host needs to use /bjready as well which will make the game automatically start. When the game is started, it will look like this:

(http://i.imgur.com/J8ngtvi.jpg)

The cards of the host is at the top and the cards of player 2 is at the bottom. To get a new card, you either press 'HIT' or use /bjhitcard. If you go above 21, you loose automatically. If you reach 21, you will win. It's the same for both players.

Blackjack Screen:

(http://i.imgur.com/wiwSyri.jpg)

If you either go above 21, or the other player got higher points than you, that player will win. When that happens, the screen can look like this:

(http://i.imgur.com/ZDcJ2Td.jpg)



I hope you all will enjoy this new feature. As usual, if you encounter any bugs, please report it in our bug report forum board.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Zaila on January 05, 2014, 09:47:00 pm
This is now released to the public.

The script will be uploaded in an hour or so.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Mobius on January 05, 2014, 09:49:55 pm
Holy....shit...THIS...IS...AWESOME....
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Dean. on January 05, 2014, 09:50:16 pm
Now this is revolutionary! Even though I don't like gambling  :rofl:



Great job guys! (and bear)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Slavik on January 05, 2014, 09:50:43 pm
It looks AWESOME!!! :)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Jaka_Lah on January 05, 2014, 09:54:37 pm
this is.. actually pretty cool
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Demir. on January 05, 2014, 09:56:33 pm
this is GREAT .
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Manoni on January 05, 2014, 10:02:03 pm
This is Awesome!! too bad i don't like to gamble cause i always loose :rofl:
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Khm on January 05, 2014, 10:04:42 pm
Good bye to the ban for scamming in casino. :D
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Slavik on January 05, 2014, 10:17:38 pm
Good bye to the ban for scamming in casino. :D

 :lol:

Indeed
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Kent on January 05, 2014, 10:21:11 pm
This looks amazing!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: murdoxix on January 05, 2014, 10:24:15 pm
Yaaaaaaaaaaaaaay! Thank you guys, very good job [Rstar]Louis :D
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 05, 2014, 10:41:58 pm
So who was talking about not having new, revolutionary scripts?! This looks great!

Also, /help gambling has been written for anyone who's too lazy to go to forums.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Zaila on January 05, 2014, 10:54:51 pm
The script is now available for public use.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Kimya. on January 05, 2014, 11:03:09 pm
This is Awesome, Thanks [Rstar]Louise!!, Also thanks Zalia for fixing the bugs, J3rry was talking with [Rstar]Rusty y-day about gambling, Rusty said that completely script changed, i see that, BTW what about 1x,2x and 3x?

Thank you very much Scripters!!!  :D :D
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Zaila on January 06, 2014, 12:36:49 am
Forgot to mention that in order to gamble, you need to have a passport.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Acika on January 06, 2014, 12:42:36 am
Is there option to split cards ?
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Rusty on January 06, 2014, 01:16:38 am
Is there option to split cards ?

Nope.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Thomas R on January 06, 2014, 01:23:06 am
Cool!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: CharlieKasper on January 06, 2014, 08:38:06 am
So awesome!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Stivi on January 06, 2014, 09:31:02 am
Amazing!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Acika on January 06, 2014, 12:29:48 pm
Nope.
Then its not fully functional RL BJ and i would like to see /dice back.

I also doubt that people know how to play real BJ, but since this is based on SP script, go and play there !
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Devin on January 06, 2014, 12:39:00 pm
If you put some thought into it, the concept of BlackJack isn't difficult to grasp so what's the problem?
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Axison on January 06, 2014, 12:45:07 pm
Good job. I have a question though, Are dices going to be introduced back(of course in a different way with much more security from scamming) into RS5?
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Acika on January 06, 2014, 12:46:04 pm
I don't see any problem besides it doesnt have the option to split cards, which gives you a way higher chance of winning and that you need to explain many people how to play blackjack which leads to them losing a lot of cash (which they dont have) untill they learn how to play and that will make them scream: "This shi' aint working, i lost all my money". Feel me ?

Everything else is cool and i like it.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: TiMoN on January 06, 2014, 01:11:56 pm
But I don't know how to play the real blackjack :(
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 06, 2014, 02:01:53 pm
/help gambling


Everything is explained.

No, it's not RL Blackjack, and I don't see Zaila claiming it is. Apart from splitting cards, it's the same, however. Splitting cards would also be just too confusing for newcomers to BJ, so why bother.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: andy kane on January 06, 2014, 02:20:39 pm
That is Beyond Awesomness thanks Scripters :)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Alb3rt on January 06, 2014, 04:47:46 pm
wow
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Aiden. on January 06, 2014, 04:55:24 pm
This Topic made my day. Awesome gambling script thank you zaila <3
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Sandi on January 07, 2014, 12:23:44 am
I like it
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Louis_Keyl on January 07, 2014, 01:27:10 am
I received a message saying "Awesome work with the blackjack", i was like LOLWUT, then I got linked this. Glad you guys are using it after all! (Aragorn would be so proud! :D), althought I am pretty sure that when I did this i had created a "Ready" button along with the other ones.  :neutral: Zaila ate the buttons!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Zaila on January 07, 2014, 09:19:33 am
I received a message saying "Awesome work with the blackjack", i was like LOLWUT, then I got linked this. Glad you guys are using it after all! (Aragorn would be so proud! :D), althought I am pretty sure that when I did this i had created a "Ready" button along with the other ones.  :neutral: Zaila ate the buttons!

Nope, there has never been any 'Ready' button created by you. ;)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Stivi on January 07, 2014, 09:22:48 am
Nope, there has never been any 'Ready' button created by you. ;)
Well the idea sound interesting, instead of /bjready, you can create the "ready" button :)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Ritcher on January 07, 2014, 09:40:32 am
AwEsOmE  :app:
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Bruce. on January 07, 2014, 09:46:24 am
Good Job  :app: :app:
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: andy kane on January 07, 2014, 11:21:13 am
I tried Gambling today and won. It is Awesome and Easy Great Work guys thank you <3 :)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: AryaN on January 07, 2014, 11:47:14 am
I tried Gambling today and won. It is Awesome and Easy Great Work guys thank you <3 :)
Ye sure, easy for dealer :p
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: andy kane on January 07, 2014, 12:08:30 pm
Ye sure, easy for dealer :p
Blame Your Luck :P
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Aiden. on January 07, 2014, 09:40:31 pm
How can we play other games it's only BJ.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: murdoxix on January 07, 2014, 09:47:06 pm
How can we play other games it's only BJ.
They give you a cookie and you already request more? :S... Appreciate their work and have fun with the BJ, we will probably get more games sometime!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Louis_Keyl on January 07, 2014, 09:55:58 pm
How can we play other games it's only BJ.

I also thought about poker but believe me, with all the variants it has it's A LOT more complex to do. The blackjack didn't took long to achieve, plus it's the universal game everyone knows to play or can easily learn how to.
A more advanced russian roulette was going to be implemented too, and maybe will, let's hope somebody annoys zaila for it.

And zai, the ready button, you ate it. :(

Alright i'll be back to the shadows for another year or so.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 07, 2014, 10:21:05 pm
I also thought about poker but believe me, with all the variants it has it's A LOT more complex to do.
Safe to say NLH would be the game of choice. And once you've got the basic set up, adjusting script for other popular variations (PLO, PLH, etc) should be hardly a challenge.

I was thinking over possible methods to implement Poker in SA:MP earlier though, that'd be a massively confusing system.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Louis_Keyl on January 07, 2014, 10:29:08 pm
Safe to say NLH would be the game of choice. And once you've got the basic set up, adjusting script for other popular variations (PLO, PLH, etc) should be hardly a challenge.

I was thinking over possible methods to implement Poker in SA:MP earlier though, that'd be a massively confusing system.

Well, things such as pairs, three of a kind and etc are not complicated to do, but then if you have to add the colors and cards then that becomes a pretty interesting challenge.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 07, 2014, 11:28:24 pm
What's stopping you from assigning suit?

I've never looked at what resources are available for SA:MP, but theoretically speaking, if you can assign a trigger to get a specific picture out, then it shouldn't be any difficulty whatsoever creating 52 possible outcomes, each with their own values (picture, value and suit), and then it's just easy peasy scripting of the mechanics of the game, which are awfully simple.

I reckon a decent interface and player interactions would be the more difficult parts. Probably the easiest way to go around it would be to make use of in-game game table objects, instead of having someone host the games, and have players join the tables. That way you can have different kinds going on at once, 6max, 9max, No limit, pot limit, omaha, hold em, w/e you like. And then there's the order of actions, small blinds going first, button moving around... Should be possible anyway, you could actually assign XY co-ordinates around a table for "Seats" with textdraws on them, ie, "Seat: 1" "Occupied by [no one | username]", and joining a seat would TP you to these co-ordinates, freeze you and bring up the interface, and then it's just script going around the occupied seats, assigning them current position (SB, BB, UTG, UTG+1, CO, D) and going off of that.


I guess that works.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Louis_Keyl on January 08, 2014, 10:53:18 am
@Pingster: This was a long day but I've got it fully working. Althought the virtual maze hasn't been scripted because I forgot to it could be added, right now cards can be repeated.

(http://i.imgur.com/w6MN3nx.jpg)

ZAILAAAAA! I've got a little something for you.  :gand: PM me for more screens, it'll cost you one million dollars each.


EDIT two more pics: One is me owning fernando, the other is just a demonstration. Let's hope we can see this implemented in the future :)

(http://i.imgur.com/UsadwJg.jpg)

(http://i.imgur.com/GNaI1mu.jpg)


Note: Ale was just helping me test it, he's not a member of the FBI. Well, he's undercover as his own family leader and he has a mission to bust himself.  :dead:
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Nexus_Riggs on January 08, 2014, 11:01:15 am
Good work, this will definitely bring more enthusiasm when gambling.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 08, 2014, 11:18:03 am
Oh you bastard, I spent good deal trying to come up with something as well :D

Good job man.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Mark_C on January 08, 2014, 12:29:44 pm
Looks amazing. Look what great job the owners are doing while you moan.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Dean. on January 08, 2014, 01:22:32 pm
Note: Ale was just helping me test it, he's not a member of the FBI. Well, he's undercover as his own family leader and he has a mission to bust himself.  :dead:

so that's how things leaked!  :cowboy:
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Antonio. on January 08, 2014, 01:37:17 pm
Are players still allowed to continue /dice gambling?
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: CharlieKasper on January 08, 2014, 01:44:09 pm
Are players still allowed to continue /dice gambling?
/dice doesn't exist.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Antonio. on January 08, 2014, 01:48:31 pm
/dice doesn't exist.
Damn.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: KhornateMonkey on January 08, 2014, 05:48:55 pm
Looks neat, even if I'm not much of a blackjack player, more of a scratch card guy! Maybe scratch cards could be added as well?  :lol:
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: murdoxix on January 08, 2014, 09:58:56 pm
(http://i.imgur.com/w6MN3nx.jpg)
PWNED! Haha :P

Note: Ale was just helping me test it, he's not a member of the FBI. Well, he's undercover as his own family leader and he has a mission to bust himself.  :dead:
Shhh I said you to not talk about that -.-!
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Stivi on January 09, 2014, 01:23:42 pm
Is Poker Game going to be added ? It looks cool.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Zaila on January 09, 2014, 04:52:17 pm
Looking nice Louis. I saw your PMs, please come on Skype and send me the source code so can i take a look.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Louis_Keyl on January 10, 2014, 02:17:15 am
Is Poker Game going to be added ? It looks cool.

Maybe.  Here's two pics of what could be added.

(http://i.imgur.com/a8urKT6.jpg)
(http://i.imgur.com/doaXBFM.jpg)

(Ignore the | in the second one at where the cash is displayed, i've got it fixed.)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Cyril on January 11, 2014, 12:48:41 pm
I like that Poker game.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: TheLegitHabibi on January 11, 2014, 12:53:01 pm
I love this.

Probably the ONLY thing i like about RS5 xD

I remember this in the fbi server, pretty cool.
inb4 so many people asking how poker works :D

Waiting for it to be scripted IG ^^
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 11, 2014, 02:28:39 pm
How about adjust for Texas Hold Em? More player per game support (possibly hardcode in "table" that you can join, instead of having players host it? New game would start as soon as 2 people join, keeping the current mechanic), accurate positions and so on. Had a few ideas how to script this, but gave up, as there's already an existing base for card games, no point making a new system :P
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: TheLegitHabibi on January 11, 2014, 02:59:59 pm
How about adjust for Texas Hold Em? More player per game support (possibly hardcode in "table" that you can join, instead of having players host it? New game would start as soon as 2 people join, keeping the current mechanic), accurate positions and so on. Had a few ideas how to script this, but gave up, as there's already an existing base for card games, no point making a new system :P

People will start joining RS5 just to play Poker with their friends!!

PLEASE MAKE THIS.
5 players per table, one of them can host+play. PLEAASE!! They can all vote for blinds at the start. MAKE THIS

Proper Texas Hold Em. !! :D

 ;) INB4 "RP IT"
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: murdoxix on January 11, 2014, 08:15:15 pm
To support more than 2 players per table he should re-write the WHOLE script.




I love this feature:
(http://i.imgur.com/a8urKT6.jpg)
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 11, 2014, 08:25:20 pm
Not rewrite per say, but add a bunch more content for sure.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: murdoxix on January 11, 2014, 08:43:03 pm
Not rewrite per say, but add a bunch more content for sure.
I already talked him about adding this feature and he said me that he should re-write it. Anyway the actual system its amazingg! :D
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Pingster on January 11, 2014, 08:49:15 pm
I already talked him about adding this feature and he said me that he should re-write it. Anyway the actual system its amazingg! :D
And yet Texas Hold Em is a more interactive, popular, tactical poker game. Sure, I've no idea of the layout Louis has for the script, but it should be possible to do it without rewritting EVERYTHING, though it's probably a good idea to do so anyway.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Louis_Keyl on January 12, 2014, 12:37:31 am
And yet Texas Hold Em is a more interactive, popular, tactical poker game. Sure, I've no idea of the layout Louis has for the script, but it should be possible to do it without rewritting EVERYTHING, though it's probably a good idea to do so anyway.

The current system is optimized for only two players, the host and the second player. This means that adding more players with the current system would be completely unefficient the way I wrote the script. It is better to rewrite it completely from scratch with a new plan to make it two+ players compatible.
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Stivi on January 12, 2014, 10:41:23 am
The current system is optimized for only two players, the host and the second player. This means that adding more players with the current system would be completely unefficient the way I wrote the script. It is better to rewrite it completely from scratch with a new plan to make it two+ players compatible.
Get to work then. :P
Title: Re: RS5 Update - Blackjack Gambling! (picture heavy)
Post by: Sandi on January 13, 2014, 08:39:50 pm
Pokah face :D lololol
SimplePortal 2.3.7 © 2008-2025, SimplePortal