Honorable Member Owsap 8155 Posted March 25, 2021 Honorable Member Share Posted March 25, 2021 (edited) M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( MEGA ) This is the hidden content, please Sign In or Sign Up ( 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 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. How 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. Additional 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 April 6, 2021 by Owsap Additional information, reviewed code & updated files. 67 1 1 2 2 1 1 3 14 8 57 https://owsap.dev/ / https://osf.owsap.dev/ Link to comment Share on other sites More sharing options...
edwardcrkz 20 Posted March 25, 2021 Share Posted March 25, 2021 I like it Link to comment Share on other sites More sharing options...
memett4545 6 Posted March 26, 2021 Share Posted March 26, 2021 (edited) First of all, thanks for your sharing, I am getting an error. How can I solve it? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Premium filipw1 1927 Posted March 26, 2021 Premium Share Posted March 26, 2021 (edited) 46 minutes ago, memett4545 said: First of all, thanks for your sharing, I am getting an error. How can I solve it? 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" Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Honorable Member Owsap 8155 Posted March 27, 2021 Author Honorable Member Share Posted March 27, 2021 (edited) 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? 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. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 https://owsap.dev/ / https://osf.owsap.dev/ Link to comment Share on other sites More sharing options...
Management AZICKO 7330 Posted March 28, 2021 Management Share Posted March 28, 2021 Archive Updated (Internal) Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Defacer35 21 Posted April 8, 2021 Share Posted April 8, 2021 Incredible job ! Awesome, thank you. Link to comment Share on other sites More sharing options...
Kafa 153 Posted April 8, 2021 Share Posted April 8, 2021 Thank you. Everything work's now. Link to comment Share on other sites More sharing options...
Contributor Toki.San 1963 Posted June 4, 2021 Contributor Share Posted June 4, 2021 (edited) Thanks for this system but seems that there are some problem, or at least on my file. I link you the screenshot. char.h:2395: error: 'ESlotMachine' is not a class or a namespace On char.h, line 2395: BYTE m_bSlotMachineReel[ESlotMachine::MAX_SLOT_MACHINE_SLOTS]; Update: I solved by edit ESlotMachine on lenght.h in this way: namespace ESlotMachine { enum ESlotMachine { MAX_SLOT_MACHINE_SLOTS = 3, MAX_SLOT_MACHINE_REELS = 8, }; } But now I've another problem packet.h:2547: error: ISO C++ forbids initialization of member 'bHeader' packet.h:2547: error: making 'bHeader' static packet.h:2547: error: ISO C++ forbids in-class initialization of non-const static member 'bHeader' packet.h:2549: error: ISO C++ forbids initialization of member 'bWin' packet.h:2549: error: making 'bWin' static packet.h:2549: error: ISO C++ forbids in-class initialization of non-const static member 'bWin' packet.h:2550: error: ISO C++ forbids initialization of member 'bJackpot' packet.h:2550: error: making 'bJackpot' static packet.h:2550: error: ISO C++ forbids in-class initialization of non-const static member 'bJackpot' On packet.h line 2547: BYTE bHeader = HEADER_GC_SLOT_MACHINE; BYTE bSlotReel[ESlotMachine::MAX_SLOT_MACHINE_SLOTS]; bool bWin = false; bool bJackpot = false; } TPacketGCSlotMachine; #endif Update part2: Thanks to @Mali61 I solve this error. Now there's the last(I hope) one: char.cpp:9002:18: error: random: No such file or directory char.cpp: In member function 'bool CHARACTER::StartSlotMachine(BYTE)': char.cpp:9042: error: 'random_device' is not a member of 'std' char.cpp:9042: error: expected `;' before 'rd' char.cpp:9043: error: 'mt19937' is not a member of 'std' char.cpp:9043: error: expected `;' before 'mt' char.cpp:9044: error: 'uniform_real_distribution' is not a member of 'std' char.cpp:9044: error: expected primary-expression before '>' token char.cpp:9044: error: 'dist' was not declared in this scope char.cpp:9045: error: 'mt' was not declared in this scope char.cpp: In function 'long int SlotMachineEventFunc(LPEVENT, long int)': char.cpp:9174: error: 'unique_ptr' is not a member of 'std' char.cpp:9174: error: expected primary-expression before '>' token char.cpp:9174: error: 'pMsg' was not declared in this scope Any Advice? Edited June 4, 2021 by TokiSan 1 Link to comment Share on other sites More sharing options...
KolenMG 5 Posted February 8 Share Posted February 8 (edited) The system works great! Also the code is soo clean and so easy to understand what is going on even if you don't actually know a programming language. Also, I didn't have any problems in implementation, this system being my first system that I implemented without any errors in server / sources / syserr. Gif Owsap <<<<< Also, I recomment to look on Owsap site. He has some great systems there! Edited February 8 by Metin2 Dev International Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts