Gambling/Minigame Area

Discussion in 'Closed' started by Ekul, Jun 16, 2014.

Thread Status:
Not open for further replies.
  1. Ekul
    Offline

    Ekul Well-Known Member

    Joined:
    Aug 6, 2013
    Messages:
    271
    Likes Received:
    246
    Location:
    Minnesota
    Country Flag:
    IGN:
    Ekul
    Level:
    95
    Hello fellow Royalers and other readers.

    Perhaps this has already been suggested or is already in place, I haven't been back long.

    Basically it is exactly as the title says: an area with NPCs with minigames and/or games involving gambling.

    I've seen this on a few other servers. It is always a fun little break and easy to implement. I'm not sure if ragezone is still around, but you could probably do a little surfing on there to find some NPCs related.

    Some examples: Rock paper scissors, gemz (bejewled), tic tac toe, etc.

    Here is one I made a long time ago when I was more familiar with javascript. It is definitely not optimized, but if I recall it works just fine!

    It would need to be changed from stamps to mesos, stamps was the currency on the server I made it for. If you guys are interested I'd be willing to go back and change it to however you want to do it. Though I would not recommend letting them pick however mesos they want, because people could get really rich really fast.

    PHP:
    // In this NPC they pick a number 1-5. Then they bet 1-3 4002000 (Snail Stamps). If their number is picked by the randomizer, they win triple the amount of 4002000 picked.


    var num = [12345];
    var 
    status 0;
    var 
    num1 num[Math.floor(Math.random()*num.length)];

    function 
    start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(modetypeselection) {
        
    selected selection;
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
            if (
    status >= && mode == 0) {
                
    cm.sendOk("Bye!");
                
    cm.dispose();
                return;
            }
            if (
    mode == 1)
                
    status++;
            else
                
    status--;
            if (
    status == 0) {
                
    cm.sendNext("Hello and welcome to Triple or Nothing, the NPC version. Click next to learn about how to play.");
            } else if (
    status == 1) {
                
    cm.sendNext("#eHow to play:#n\r\n\r\nFirst, you will pick a number #b1-5#n. This will decide the number you want to bet your money on. Then, you will a pick number #b1-3#n. This number will indicate the amount of #i4002000# you want to bet. If your number is chosen by the random generator, you will recieve 3 times the amount of #i4002000# you bet. If your number if not picked, you will not recieve any #i4002000#.");
            } else if (
    status == 2) {
                
    cm.sendSimple("#b#L0#I want to play!#l");
            } else {
                if (
    selection == 0) {
                    if (
    cm.itemQuantity(4002000) > 0) {
                        
    cm.sendSimple("Pick the number you want to bet on\r\n\r\n#b#L1#1#l\r\n#L2#2#l\r\n#L3#3#l\r\n#L4#4#l\r\n#L5#5#l");
                    } else {
                        
    cm.sendOk("Sorry, you do not have enough #i4002000#");
                        
    cm.dispose();
                    }
                } else if (
    selection == 1) {
                    
    cm.sendSimple("Pick the amount of #i4002000# you want to bet\r\n\r\n#b#L6#1#l\r\n#L7#2#l\r\n#L8#3#l");
                } else if (
    selection == 2) {
                    
    cm.sendSimple("Pick the amount of #i4002000# you want to bet\r\n\r\n#b#L9#1#l\r\n#L10#2#l\r\n#L11#3#l");
                } else if (
    selection == 3) {
                    
    cm.sendSimple("Pick the amount of #i4002000# you want to bet\r\n\r\n#b#L12#1#l\r\n#L13#2#l\r\n#148#3#l");
                } else if (
    selection == 4) {
                    
    cm.sendSimple("Pick the amount of #i4002000# you want to bet\r\n\r\n#b#L15#1#l\r\n#L16#2#l\r\n#L17#3#l");
                } else if (
    selection == 5) {
                    
    cm.sendSimple("Pick the amount of #i4002000# you want to bet\r\n\r\n#b#L18#1#l\r\n#L19#2#l\r\n#L20#3#l");

                
    // 1 Below

                
    } else if (selection == 6) {
                    
    cm.gainItem(4002000, -1);
                    
    cm.dispose();
                    if (
    num1 == 1) {
                        
    cm.gainItem(40020003);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 7) {
                    
    cm.gainItem(4002000, -2);
                    
    cm.dispose();
                    if (
    num1 == 1) {
                        
    cm.gainItem(40020006);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 8) {
                    
    cm.gainItem(4002000, -3);
                    
    cm.dispose();
                    if (
    num1 == 1) {
                        
    cm.gainItem(40020009);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }

                
    // 2 Below

                
    } else if (selection == 9) {
                    
    cm.gainItem(4002000, -1);
                    
    cm.dispose();
                    if (
    num1 == 2) {
                        
    cm.gainItem(40020003);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 10) {
                    
    cm.gainItem(4002000, -2);
                    
    cm.dispose();
                    if (
    num1 == 2) {
                        
    cm.gainItem(40020006);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 11) {
                    
    cm.gainItem(4002000, -3);
                    
    cm.dispose();
                    if (
    num1 == 2) {
                        
    cm.gainItem(40020009);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }

                
    // 3 Below

                
    } else if (selection == 12) {
                    
    cm.gainItem(4002000, -1);
                    
    cm.dispose();
                    if (
    num1 == 3) {
                        
    cm.gainItem(40020003);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 13) {
                    
    cm.gainItem(4002000, -2);
                    
    cm.dispose();
                    if (
    num1 == 3) {
                        
    cm.gainItem(40020006);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 14) {
                    
    cm.gainItem(4002000, -3);
                    
    cm.dispose();
                    if (
    num1 == 3) {
                        
    cm.gainItem(40020009);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }

                
    // 4 Below

                
    } else if (selection == 15) {
                    
    cm.gainItem(4002000, -1);
                    
    cm.dispose();
                    if (
    num1 == 4) {
                        
    cm.gainItem(40020003);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 16) {
                    
    cm.gainItem(4002000, -2);
                    
    cm.dispose();
                    if (
    num1 == 4) {
                        
    cm.gainItem(40020006);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 17) {
                    
    cm.gainItem(4002000, -3);
                    
    cm.dispose();
                    if (
    num1 == 4) {
                        
    cm.gainItem(40020009);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }

                
    // 5 Below

                
    } else if (selection == 18) {
                    
    cm.gainItem(4002000, -1);
                    
    cm.dispose();
                    if (
    num1 == 5) {
                        
    cm.gainItem(40020003);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 19) {
                    
    cm.gainItem(4002000, -2);
                    
    cm.dispose();
                    if (
    num1 == 5) {
                        
    cm.gainItem(40020006);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                } else if (
    selection == 20) {
                    
    cm.gainItem(4002000, -3);
                    
    cm.dispose();
                    if (
    num1 == 5) {
                        
    cm.gainItem(40020009);
                        
    cm.sendOk("Congratulations, you won!");
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("Sorry, you have lost. Try again next time!");
                        
    cm.dispose();
                    }
                }
            }
        }
    }
     
    Misiek, Unix, maggles and 2 others like this.
  2. Gags
    Offline

    Gags Donator

    Joined:
    Nov 14, 2013
    Messages:
    1,467
    Likes Received:
    939
    Location:
    Israel
    I vote no because I don't want a gambling system to be implanted in the game atm.
     
    Jooon, Sybe and Heidi like this.
  3. Heidi
    Offline

    Heidi GM Intern

    Joined:
    Feb 8, 2014
    Messages:
    1,809
    Likes Received:
    2,867
    Gender:
    Female
    Location:
    no idea
    Country Flag:
    IGN:
    CaptainHeidi
    Level:
    188
    I'd much rather that developer time goes into getting all the quests and stuff working.

    I just don't think we need a maple royals casino.
     
    Katsuruka and Gags like this.
  4. Ekul
    Offline

    Ekul Well-Known Member

    Joined:
    Aug 6, 2013
    Messages:
    271
    Likes Received:
    246
    Location:
    Minnesota
    Country Flag:
    IGN:
    Ekul
    Level:
    95
    Well yes, as would I. Obviously things have priority over others! This is just something where everything is already out there, and pretty easy to implement.

    As to the other guy, the gambling part is not necessary. That can be disastrous if someone is able to make a ton of money off it. But just having the little minigames can be enjoyable! :p
     
  5. maggles
    Offline

    maggles Donator

    Joined:
    Jun 5, 2013
    Messages:
    2,874
    Likes Received:
    2,768
    Location:
    local crag
    Guild:
    synergy
    Mr Pick-Lock-smith(?) in Kerning is already a gambling npc.. why not have more.
    Mini-games such as these and omok are wonderful, gives us other things to do.
     
    Pete likes this.
  6. Christine
    Offline

    Christine Donator

    Joined:
    Jun 30, 2013
    Messages:
    1,537
    Likes Received:
    1,315
    Gender:
    Female
    Location:
    local supermarket
    IGN:
    2spoop-e4u
    Guild:
    fruits inc
    There already is one in place.
    Kerning city, Mr. Pickall.
     
  7. Moo
    Offline

    Moo Donator

    Joined:
    Jun 13, 2014
    Messages:
    176
    Likes Received:
    233
    IGN:
    Moooooooo
    Guild:
    Fate/Home
    Mr Pickall is a scammer he took 1.8m from me

    I'd trust Ekul's casino though
     
    Sen, Christine and Ekul like this.
  8. Leeuw
    Offline

    Leeuw Well-Known Member

    Joined:
    Dec 12, 2013
    Messages:
    472
    Likes Received:
    322
    Gender:
    Male
    Location:
    Amsterdam,NL
    Country Flag:
    IGN:
    Rogue / pOOq
    Level:
    TOP
    Guild:
    Freaky
    If you consider Mr Pickall as the gambling guy of a server, then there is no gambling. I'd love some higher stakes and a real game, instead of absolutely random shit noone uses. However, RockPaperScissors is technically the same of course.

    I would totally agree if there were real casino games like Roulette or BlackJack. That would really be amazing, and I'd play that alot.

    Just be sure to get no-limit stakes or something. 200k from mr pickall is seriously lame and not worth any trouble.
     
  9. Ekul
    Offline

    Ekul Well-Known Member

    Joined:
    Aug 6, 2013
    Messages:
    271
    Likes Received:
    246
    Location:
    Minnesota
    Country Flag:
    IGN:
    Ekul
    Level:
    95
    Yeah, but you also don't want the stakes too high. We had a system in place that mirrored the NPC I made (that is in the original post) on another server. People started losing too much money and complaining so we had to stop. That is why I don't suggest we have it be too high stakes. While some are good with gambling, others are horrible and spend all their money.
     
  10. Marty
    Offline

    Marty Donator

    Joined:
    Dec 7, 2013
    Messages:
    3,444
    Likes Received:
    2,485
    Gender:
    Male
    Country Flag:
    IGN:
    Linyah
    Level:
    170
    Yes, true. This is why I made the lottery thing, since there's no gambling environment in the game (Mr. Pickall is a joke).

    Btw, Blackjack would have to be altered, since it can be tricked in the traditional way to make a fortune, pretty much ruining the economy.

    Speaking of gambling: You owe me 10m, Nick!
     
  11. Geyforlife
    Offline

    Geyforlife Well-Known Member

    Joined:
    Jul 30, 2017
    Messages:
    1,187
    Likes Received:
    2,617
    Country Flag:
    IGN:
    Geybrian
    Level:
    o7
    Guild:
    USSR
    if you don't want it, why did you necro this thread?
     
  12. Tect
    Offline

    Tect Well-Known Member

    Joined:
    Aug 15, 2017
    Messages:
    3,341
    Likes Received:
    5,631
    Country Flag:
    IGN:
    DTect
    Level:
    200
    Guild:
    Manon
    and copy paste a reply from above too o_O
     
  13. MartineGlass
    Offline

    MartineGlass Member

    Joined:
    Apr 18, 2020
    Messages:
    13
    Likes Received:
    8
    The staff could add optional betting to existing mini-games like the Memory Cards & Omok which could also give more incentive to play them. Say both players agree to bet 100k, and the winner gets the pool of 200k. (Or whatever amount they ante up.) One advantage to this is that mesos are gambled between players instead of NPCs and doesn't create inflation. Taxes could be added similar to trades when the game is closed if a meso sink is needed too. I'd be okay with gambling items as well if that was possible, but I could easily see that getting out of hand.

    Also, could the piece count be decreased to make the game sets? There's a reason later versions even pre-BB dropped the requirements to 15 cards and 2 pieces (1 per player) per table respectively.
     
  14. Misiek
    Offline

    Misiek Donator

    Joined:
    Feb 9, 2014
    Messages:
    221
    Likes Received:
    178
    Gender:
    Male
    Location:
    Poland
    Country Flag:
    Level:
    201
    Gammmmbling, machine with 777, moneymaker
     
Thread Status:
Not open for further replies.

Share This Page