Casino Slots
Casino Slots
Casino Slots allows you to easily set up interactive and proper block-based slot machines anywhere in your world. Nearly every aspect of these slot machines can be customized to your needs, including block types, costs and prizes, winning chances and more. The slot machines are compact and elegant, designed to give you large amounts of freedom to sculpt them any way you'd like.
Features
- Animated, block-based slot machines, including audio
- Highly customization
- Tracks statistics
- Costs and prizes supported through practically all economy plugins
- Configurable custom prizes and actions upon winning
- Permissions (superperms)
Commands
For a full list of all commands either go http://dev.bukkit.org/server-mods/casino-slots/pages/info/commands/ or do /casino in game.
Permissions
See http://dev.bukkit.org/server-mods/casino-slots/pages/info/permissions/ for detailed information.
Installation
Just put the CasinoSlots.jar into the server's plugin directory, restart the server (don't /reload), and enjoy.
Note: If you had config files from AnCasino, simple rename AnCasino to CasinoSlots and they'll work.
Configuration
Documentation will be located: http://dev.bukkit.org/server-mods/casino-slots/pages/info/config/ soon
Actions have been defined: http://dev.bukkit.org/server-mods/casino-slots/pages/info/actions/
Video Tutorial
Special thanks to luigi_vampa for making the video!!!
Dependencies
- Vault
- Economy - can be any that are supported by vault
-
View User Profile
-
Send Message
Posted Aug 23, 2012@BBFChaser
Yes, if you look at the actionslot type in the default config.yml you'll see something like "35,3". Instead of using a ":" use a comma.
@deleted_7116233
Really? Hmmm i'll have to look into that :/
-
View User Profile
-
Send Message
Posted Aug 23, 2012Any way to use ids with a ":" min them? For like differant types of wool?
-
View User Profile
-
Send Message
Posted Aug 23, 2012Works a charm, thanks for the update!
Edit: Every 10 minutes or so, the slot machines stop working and say "This machine is already being used"
-
View User Profile
-
Send Message
Posted Aug 23, 2012@dogbig
Mind posting your config.yml in a pastebin link or something like that?
-
View User Profile
-
Send Message
Posted Aug 23, 2012found bug:
2012-08-23 12:09:57 [WARNING] Task of 'CasinoSlots' generated an exception
java.lang.ArrayIndexOutOfBoundsException 2
at com.craftyn.casinoslots.slot.RewardData.executeAction(RewardData.java:63)
at com.craftyn.casinoslots.slot.RewardData.send(RewardData.java:38)
at com.craftyn.casinoslots.slot.game.ResultsTask.run(ResultsTask.java:59)
at org.timedbukkit.craftbukkit.scheduler.TimedWrapper.run(TimedWrapper.java:34)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:510)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 23, 2012There will be no 2.5.0, due to a bug that was found in it that was breaking for managed slots. The newest version (when approved) will be 2.5.1.
-
View User Profile
-
Send Message
Posted Aug 22, 2012@deleted_7116233
Okay, well I just uploaded 2.5.0 and it's just waiting on them for approval. :)
-
View User Profile
-
Send Message
Posted Aug 22, 2012I'd only need one version for 1.2.5-R4 as I'm pretty sure Tekkit won't be updating any time soon.
Thanks for the information anyway, look forward to the fix. :)
-
View User Profile
-
Send Message
Posted Aug 21, 2012@Hangar
You're welcome.
No it's not a typo. The higher a number is put in, the more chances of getting that one certain block there is but by putting in more blocks to the "pot" you're lowering the chance of winning many times overall. Here's an illustration for you to hopefully help understand how CasinoSlot and picking the blocks that show up in the reels work:
Let's look at those numbers like this: You are to pick some fruits from a basket randomly, but you get to choose which fruit goes into that basket and how many of them go into the basket. So, let's say you want there to be 12 apples, 8 oranges, 10 kiwi, 14 bananas, and 1 grapefruit. This means that you have five different fruits in that basket with a combined total of 45 individual items that you can pick from. You have to pick one completely random one but it cannot be one that you previous picked out of the basket. So, the first time you randomly, without looking, pick a banana and write it down that you picked it then you place it back into the basket as to not change the probability of picking any of the others. Thus the chances of picking any of the fruits are completely random but the more there are of one kind the more likely it is to pick it but also the more of one certain kind the less chance there is of picking other ones.
That's how CasinoSlots does it, it's completely random but the probability of the blocks being picked is based on how many different kinds there are and how many of each different kind are in the "pot", so to speak. That make more sense now, or did I just confuse you more?
-
View User Profile
-
Send Message
Posted Aug 21, 2012Thanks for the reply. Is this a typo from the config page:
"The more times the items show up (the last numbers), the less likely chance of winning there is."
I thought the higher the number, the more of a chance the symbol would show up? Or am I reading that wrong?
-
View User Profile
-
Send Message
Posted Aug 21, 2012@deleted_7116233
Honestly, I'd rather not do that so I don't have to mess with two different versions. I've got it in my head how to fix this, so going to be putting it to code here shortly.
-
View User Profile
-
Send Message
Posted Aug 21, 2012@graywolf336
The error's with AnCasino, not your version. I'd happily use a version without the blocks with data values as I don't use them anyway, could you perhaps release 2 versions until the issue is fixed? :p
Thanks!
-
View User Profile
-
Send Message
Posted Aug 21, 2012@Hangar
@deleted_7116233
What error are you getting with the noteblocks?? Any chance you can paste them in a pastebin style website? Because I'm not getting any errors yet I'm also not getting any sound, just the little note thing above it. That code is still in the plugin, but I'm not 100% sure it works as of recently since I changed it to work with blocks with extra data on them.
@lumptie
That's a bug I've yet to trace down fully since I've actually never got it myself. :/
-
View User Profile
-
Send Message
Posted Aug 21, 2012@Hangar
The source code for the original version, not sure about this one is here:
https://github.com/Darazo/AnCasino/tree/master/AnCasino
The noteblocks are broken and show an error in the console when they make a noise, which is the only thing which stops me from using AnCasino. However, it doesn't have duplicate blocks, and I saw this piece of code "preventing silly-looking duplicate blocks".
https://github.com/Darazo/AnCasino/blob/master/AnCasino/src/me/darazo/ancasino/slot/game/RotateTask.java#L36
-
View User Profile
-
Send Message
Posted Aug 18, 20121) Any progress on fixing the reload command? It's going to be very hard to tune a slot machine on a live server without :/
2) Also confirming that sounds no longer play when the slot is spinning. If that's not going to work anymore, I'd rather almost remove the noteblock altogether as it can be annoying to hear a bunch of people pounding on them. Maybe we could get redstone torches attatched to the top of the 3 columns that could pulse on/off a few times if you win (and maybe we could have that either way?).
3) I'd like to be able to generate a log of winnings (and maybe losses, showing the fee paid instead of a winning amount) so I can see who has been playing and how much money they've gotten over time. Maybe a CSV file with: date, player name, slot name, world, money paid, money won
4) In 1.4, it would be amazing if we could use the new frame block in the reels (customizing what can appear in them), so we could use all of the hand-held items as well. 3 apples across, etc. :)
5) I see you're using a GPL license. Is the source code available? I'm curious about how the odds/chance works and maybe seeing the exact routines will help clear it up.
Thanks.
-
View User Profile
-
Send Message
Posted Aug 17, 2012i need a little help i try to create a machine and it say "unknown command" i know i have installed the plugin correctly but it wont work. any one else have this problem? please help thanks.
-
View User Profile
-
Send Message
Posted Aug 17, 2012I really like this casino plugin as its identical to ANCASINO =) good job and keep up the good work!
-
View User Profile
-
Send Message
Posted Aug 16, 2012@Rendercraftadmin
Click that "WikiCreole" thing and change it to BBCode (I guess) to make that better readable :P
-
View User Profile
-
Send Message
Posted Aug 16, 2012Below is my .yml file: I'm guessing it's the problem.
-
View User Profile
-
Send Message
Posted Aug 16, 2012@graywolf336
I'm using /casino, /casino add <name> <(block)>, /casino help and more. The only casino one I have installed is this one, and the following are installed: - Essentials. - Group Manager. - Border Guard - Automessage - Lottery - World Edit - World guard - Minebooks - Permissions - Core protect - Logblock - Core protect - Found Diamonds - Family Jewels - Hero Chat - Lwc - Vault - Shop Keeper - Transporter - No cheat plus
Yes, the plugin was working until I went into the config.yml, and changed the Prices and rows and such.
The newest version of java.
Thanks!