Jump to content

Recommended Posts

  • VIP
Posted (edited)

M2 Download Center

Download Here  ( Internal )
Download Here  ( MEGA )
Download Here  ( GitHub )

Hello again M2Dev,

 

It’s been quite I wile 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…

 

Spoiler


283517SlotMachineSystem.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.
Hit 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.

 

250914GreyInfo.pngHow to configure?

 

game/constants.cpp you can edit all the betting values you want.
game/contants.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.

 

250914GreyInfo.pngAdditional information

 

For those who are using older versions of C++ some data type identifiers need to be changed as shown below.

  • uint64_t = unsigned long long
  • uint32_t = UINT
  • int32_t = INT
  • uint16_t = WORD
  • uint8_t = BYTE

 

Sincerly,

Owsap

Edited by Owsap
Additional information, reviewed code & updated files.
  • Love 21
  • Love 2
  • Scream 1
Link to post
46 minutes ago, memett4545 said:

First of all, thanks for your sharing, I am getting an error. How can I solve it?

spacer.png

 

First of all, I bet you will have more problems that this one, so you should create a topic in Q&A section, but for now, change "g_MaxGold" to "GOLD_MAX"

  • Good 1
Link to post
  • VIP
On 3/26/2021 at 1:07 PM, memett4545 said:

First of all, thanks for your sharing, I am getting an error. How can I solve it?

spacer.png

 

I have forgot to change that to GOLD_MAX.

 

On 3/26/2021 at 1:57 PM, filipw1 said:

First of all, I bet you will have more problems that this one, so you should create a topic in Q&A section, but for now, change "g_MaxGold" to "GOLD_MAX"

In fact there were some mistakes that I forgot to remove and to included.
I have reviewed the system on a clean server revision 40250.

Topic updated,
Additional information, reviewed code & updated files.

If any one encounters any problem regarding the system please let me know.

  • Good 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.