Inactive [FUN] Casino v2.1 - A casino games suite for Minecraft {Supports iConomy} [1060]

Discussion in 'Inactive/Unsupported Plugins' started by JorganPubshire, Jun 24, 2011.

  1. Offline

    JorganPubshire

    Casino games for Minecraft:
    Version: v2.1

    This is a casino games suite for Minecraft, eventually it will contain up to 5 different games, but right now it has only blackjack and basic slot machines. I am open to suggestions as to which game to add once slot machines are completed.

    This is a full blackjack game which includes:
    • Betting
    • Hitting
    • Staying
    • Teleportation (if you don't want teleportation, turn off block-based gameplay)
    • Up to 5 players (any additional players will be placed in a waiting queue)
    • Block-based gameplay (optional)
    • And many more!
    • NOW WITH SLOT MACHINES (Alpha phase)
    If you plan on having block-based gameplay turned on, READ THIS SETUP GUIDE! Please stop asking me why you fall through the map when you /blackjack as it is described in the setup below!
    Block-based (open)


    To use block-based gameplay:
    1. Place two signs. (More if desired)
    2. On one of them put "[HIT]" and on the other put "[STAY]". Make sure that both are put on line two the the signs without quotation marks.
    3. If a player left clicks on the [HIT] sign, they will issue the /hit command
    4. If a player left clicks on the [STAY] sign, they will issue the /stay command
    5. If a player right clicks on the [HIT] sign, they will issue the /double command
    6. Place two more signs
    7. Aim at the first sign and chat /blackjack <SlotNumber> 1
    8. Aim at the second sign and chat /blackjack <SlotNumber> 2
    9. Repeat steps 6, 7, and 8 using the numbers 1-5 to replace <SlotNumber>
    10. Player's cards will now be displayed on the signs set up in steps 6-9
    11. BRAND SPANKIN' NEW FEATURE: During the betting phase, the signs that display the player's card will also be use for betting.
    12. If the player punches the first sign (Which will have [BET] on it) they will bet the amount shown on the second sign
    13. If they punch the second sign, the number on it will increase 1
    14. If they right click the second sign, the number on it will decrease 1
    15. Stand where you want players to be teleported to upon game start and use /blackjack <SlotNumber>, where SlotNumber is the numbers 1-5
    16. If you do not set the teleport points, do not ask me for help when you fall into the map


    Slot Machines (open)

    Slot machines are very simple to set up and use. Here's how:

    To set up:
    1. Place a diamond block
    2. Put a switch on it
    3. Place a dispenser under the diamond block
    4. DONE!
    To use:
    1. Activate the switch
    2. DONE!
    Currently a player is charged 10 dollars to play, they break even if the bottom two blocks match, and they profit 10 if all three blocks match.Because slot machines are not fully developed, they fall short in many ways.
    • They are in no way configurable
    • They could already exist on your server where you do not want them
    • They don't work if you don't have iConomy
    • They don't spin like a slot machine
    • They are all the same
    Don't worry, these things will be fixed soon. I am planning on adding a third block to the setup of the slot machines to reduce the likelihood of them already existing on your server.
    I will add different types of slot machines (with different win probabilities) and configurable winning amounts. I will add item rewards for non-iConomy users. I will work on better simulating a slot machine. And any other things requested that I find suitable to add in.



    Downloads:
    Download/Source Code
    TODO (I swear I'll make a video soon ... maybe)

    Changelog

    v1.5:
    • Fixed some bugs
    • Removed some debug text
    • Began block-based gameplay
    v1.6:
    • Finished block-based gameplay
    • Added Slot object
    • Minor bugfixes
    v1.7:
    • Added betting to block-based gameplay (maybe officially finished with block-based)
    v1.8:
    • Added a toggle option for block-based and console-based gameplay
    • Plugin now prevents players from building and breaking blocks (if block-based gameplay is on)
    • Removed some debug text
    • Hitting (or right-clicking) a fence makes you leave the game
    v1.9:
    • Fixed a bug in block-based gameplay setup caused by client
    • Added draw/push
    • Added a configurable starting amount for non-iConomy users
    • Dealer's hand is now shown to players
    Full CHANGELOG

    v2.0:
    • Added very basic slot machines (much work to be done yet)
    • Added maximum bet to blackjack
    • Fixed how currency displays through the plugin
    • Slightly modified betting signs for blackjack
    • Usual bugfixes
    v2.1:
    • Added slot machine protection
    • Changed how slot machines are built
    • Added separate levels of winning
     
    ColbyM and NEO like this.
  2. Offline

    McSushi


    Ohhh! thanks for that.
    Could you make it so a user could own a table?

    edit 1- that still didnt work
     

    Attached Files:

  3. Offline

    lezyamin

    I have made my slots like the photo below shows and they still do not work BUT the blackjack works and its AMAZING thanks so much for the plugin :D
     

    Attached Files:

  4. Offline

    randeri221

    i havent understood a thing about the slot machine and the blackjack can u make a tutorial video that will be easier to follow
    thx
     
  5. Offline

    alfskan

    wow! finally!
    but where can I find maximum bet confgiuration?:'(
     
  6. Offline

    randeri221

    plz someone help?
    i cant make it work
     
  7. Offline

    JorganPubshire

    If I do anything like that it will just be a config option. I'm not currently planning on making multiple tables.

    As far as your slot machines go, do you use iConomy?

    Max bet config should be automatically added to your config file. If it does not automatically add itself, add it manually by adding the line maxBet: #.

    I'll make a video either tonight or tomorrow and get it posted soon. Be patient, I'm just getting ready to move back to school and finishing work and it's been a bit hectic. I haven't had as much time to work on the plugin as I would like.

    Can someone please confirm that slot machines are working for them. They work on my server, but so far I have only heard people say that they do not work for them. If your slot machines are working, please let me know.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  8. Offline

    alfskan

    added

    maxBet: 500

    but, still I can bet more.
    And plugin.yml that linked said ver 1.9.:'(
     
  9. Offline

    randeri221

    thank you so much!
    im going back to school only in 2 weeks xD(i live in israel :/)
    by the way it sounds awsome
     
  10. Offline

    JorganPubshire

    Sorry about that. I just looked on github and saw that my commit failed for the jar file. Nobody's slot machines were working because they were all still using the 1.9 jar. Totally my fault. It's fixed now, so just re-download and try it again.

    Attention all: I have figured out why your slot machines are not working. When I committed my update, the jar file was not included in the commit, so the source code was updated, but not the jar. I have re-committed and the jar is now updated. Please re-download the jar and all of the slot machine related problems should be resolved. Thank you.

    EDIT: This will also fix the maxBet configuration.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  11. Offline

    sonyusa

    I may be trolling but the game teleports me to my main world map and not the casino world. I've changed the world: to my casino world and rebooted but it still teleports me to the mainworld when I start blackjack. I've also typed /black jack [1-5] and set the slots (did not get any sort of feedback). Using the latest 2.0. Slots work great btw! But its a huge waste of money :p It should probably award more to make it worthwile.

    Update:
    Found a slot machine bug, it subtracts the money but when you win it doesn't give you money

    You'll probably want this:

    Code:
    starting amount: 100
    block-based: true
    slots:
        '3':
            yaw: -94.49998
            sign2:
                z: -1606
                y: 43
                x: -1289
            sign1:
                z: -1607
                y: 43
                x: -1289
            pitch: -19.949957
            z: -1606.0445319131063
            y: 41.0
            world: mansion
            x: -1290.3730479809453
        '2':
            yaw: -92.24997
            sign2:
                z: -1609
                y: 43
                x: -1289
            sign1:
                z: -1610
                y: 43
                x: -1289
            pitch: 5.1000404
            z: -1608.9200962700484
            y: 41.0
            world: mansion
            x: -1290.116235729288
        '1':
            yaw: -105.60021
            sign2:
                z: -1612
                y: 43
                x: -1289
            sign1:
                z: -1613
                y: 43
                x: -1289
            pitch: -26.8499
            z: -1612.125
            y: 41.0
            world: mansion
            x: -1289.65625
            sign0:
                z: -1613
                y: 43
                x: -1289
        '5':
            yaw: -99.00001
            sign2:
                z: -1600
                y: 43
                x: -1289
            sign1:
                z: -1601
                y: 43
                x: -1289
            pitch: -22.499971
            z: -1599.895363916604
            y: 41.0
            world: mansion
            x: -1290.3513073883516
        '4':
            yaw: -106.049965
            sign2:
                z: -1603
                y: 43
                x: -1289
            sign1:
                z: -1604
                y: 43
                x: -1289
            pitch: -19.949957
            z: -1602.8795338758584
            y: 41.0
            world: mansion
            x: -1290.410708236659
    minBet: 1
    console-based: true
    
    When I do /blackjack 1
    it doesn't update the 'world:' in the config file btw. I manually changed it but it didn't help
     
  12. Offline

    JorganPubshire

    I'll look into the multi-world issue. And yes, slots are a HUGE waste of money at the moment. Soon, I will make it so you can win larger amounts and maybe even add in a jackpot of some kind.
     
  13. Offline

    sonyusa

    Ok, so Large Win (20) actually credits you 10, and Small Win (10) credits you nothing
     
  14. Offline

    JorganPubshire

    Yes, you always have 10 taken from your account. If you lose, nothing happens. If you get a minor win, 10 gets added back to your account. If you get a major win, 20 gets added back to your account. Currently, it really is a losing proposition, but I wanted to release them to give people a good idea of where the plugin is heading and assure them that progress is being made.
     
  15. Offline

    sonyusa

    Ohhhh... right... duh! :p

    In blackjack, with multiple players, since you can all hit/stay at the same time, does it pull the card that they Hit on from a collective deck or is everyone playing with their own deck
     
  16. Offline

    viper2g1

    Sorry if you've covered this before but can you make it so players CANNOT break the blocks generated from the slots and get the ores? Or at least prevent the ores from dropping if broke? The slots work great, yeah you loose alot but at the same time after pulling the lever you can break the blocks and take all the ore then repeat. Anyway keep up the good work!
     
  17. Offline

    McSushi

    ok thats cool.
    and yes i have iconomy
     
  18. Offline

    JorganPubshire

    There is one collective deck, that is why I limited the plugin to only 5 players. And they cannot hit/stay at the same time, it is turn-based.

    I don't know if you saw it, but I fixed the slot machines. When I updated the post, I forgot to attach the new jar file, so everyone was just downloading 1.9 again.

    I am planning on making them unbreakable, but I haven't gotten around to it yet. If you look at my TODO list (link is in the original post) you can see what I have planned for slot machines so far.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  19. Offline

    Monkey_nuts

    Ok for some reason my slot machines aren't working at all :L is there a node that needs to be added for me to make them or what :L ?
    I placed the diamond block and put the lever on the front of it and nothing :(
     
  20. Offline

    viper2g1

    My bad, I didn't think to check the todo list :(
     
  21. Offline

    JorganPubshire

    Did you pull the lever? That's an important step.
    When did you download the jar? If you downloaded it more than two or three days ago, re-download it.
     
  22. Offline

    Monkey_nuts

    I sorted it i went into the the ajr and went to the plugin.ylm and found the version it was 1.9 so i read the earlier posts and found that u reloaded it or something so i just downloaded it again
     
  23. Offline

    JorganPubshire

    You just made English teachers everywhere weep with failure.
     
  24. Offline

    Monkey_nuts

    Huh?
    *EDIT*
    Ooooh right spelling ... :D
     
  25. Offline

    JorganPubshire

    Spelling, grammar, and the fact that there is no punctuation in your run-on sentence.
     
  26. Offline

    viper2g1

    lol fail
     
    JorganPubshire likes this.
  27. Offline

    Monkey_nuts

    It doesn't let me use the signs for hitting and staying :/ i set them up like

    |blank| |blank|
    |[Hit]| |[Stay]|
    |blank| |blank|
    |blank| |blank|
     
  28. Offline

    McSushi

    that is very cool!
    one thing can you make a node so only people with that node can make slot machines? because i dont want evryone to be building them
     
  29. Offline

    JorganPubshire

    Check your config file. Is block-based set to true or false?

    I don't know exactly what I'm going to do about making slot machines restricted. I'm working on it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  30. Offline

    sonyusa

    The block-based blackjacks signs HAVE to be in your main world. It doesn't matter what you set the "world: " to in the config, it seems to completely ignore it and just default to the main world anyway.

    I have my secondary world set up in config but the blocks work just fine in my main world but not secondary world
     
  31. Offline

    JorganPubshire

    Hmm. I thought that I fixed that issue, but maybe not. I'll take a look at it.
     

Share This Page