Jump to content
FlasH Ady

c++/lua/python [Owsap]Slot Machine System

Recommended Posts

jygn2Sg.png

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
| |
Debes iniciar sesión para ver el contenido del enlace en esta publicación.

Hello,

It’s been awhile since I haven’t released anything for the community so today I decided to release one of my systems I created some days ago, it’s very simple and it consists on gambling to say the least…

7Bxgs9q.jpg

 

The point is to bet your money (yang/gold) on a higher amount of gold and the higher you bet the higher the payout is, similar as how a casino slot machine works without being too complex.

The rules are simple, you have three (3) possible jackpots in which each one has a payout amount.

Get the same icon three (3) times and you will win the jackpot.
If you get any other combination that contain jackpot reel icons, you will win half your bet back with a short bet multiplier.
So, the jackpot reels work as so,
A, A, A = Jackpot 1
B, B, B = Jackpot 2
C, C, C = Jackpot 3
All other possible combinations to have a winning: A, A, B; A, A, C; B, B, A; B, B, C; C, C, A; C, C, B; A, B, C; C, A, B; B, A, C; C, B, A; A, C, B;
If you happen to win a jackpot while having close to maximum gold, you will receive an item in your inventory if you have space for it otherwise you will receive it in your storage room. The item will contain the jackpot value.

 

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
How to configure?

 

@ game/constants.cpp you can edit all the betting values you want.
@ game/constants.cpp you can edit as well the jackpot values.
@ root/uiSlotMachineSystem.py you can edit the reel icons and bet values.

In-game, you can also use the commands,
/e slot_machine_reels < x > where < x > is the number of reels you want to randomize.
The more reel icons you have, the harder it is to win a jackpot!

/e slot_machine_multiplier < x > where < x > is the value of the multiplied you want.
The higher this value, the higher the payout is.
For those who are using older versions of C++ some data type identifiers need to be changed as shown below.
  • uint32_t = DWORD
  • uint32_t = UINT
  • uint16_t = WORD
  • uint8_t = BYTE
  • unt16_t = short
  • Change g_MaxGold with GOLD_MAX

Debes iniciar sesión para ver el contenido del enlace en esta publicación.

VT:

Debes iniciar sesión para ver el contenido del enlace en esta publicación.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...