[FUN/MECH] RandomGlass v0.7 - Item & Money Slot Machine Plugin [1000]

Discussion in 'Inactive/Unsupported Plugins' started by dkramer, Jul 23, 2011.

  1. Offline

    dkramer

    <font color="rgb(128, 0, 0)">RandomGlass, an Item and Money Slot Machine Plugin</font>
    <font color="rgb(0, 51, 0)">Version: 0.7</font>

    Description:
    iConomy and BOSEconomy are optional since this plugin can use items as currency too. This is a slot machine plugin where clicking on a chosen block with the correct item in hand makes the block drop random loot (money and/or blocks, it depends on how it's customized) in exchange for the player's money in iConomy/BOSEconomy currency or items. Multiple machine blocks can be created with a whole new sets of configuration. Everything can be customized by the server admin. The default blocks are a gold block and a glass block, and the default item to hold is an arrow.


    These videos are a bit out of date: instead of bringing up block IDs, now this plugin brings up the real item/block names.

    Example of a machine that takes money:


    Example of a machine that takes items:


    Download:
    <font color="rgb(255, 0, 0)">If you are updating to a more recent version, do not overwrite previous RandomGlassSettings.yml unless stated.</font>

    <font color="rgb(255, 0, 0)">If you are coming from version 0.6 or earlier, you will need to replace your RandomGlassSettings.yml.</font>

    v0.7 http://dl.dropbox.com/u/36326695/RandomGlass0.7.zip

    Older Versions:
    v0.65 <font color="rgb(16, 97, 179)">http://dl.dropbox.com/u/36326695/RandomGlass0.65.zip</font>
    v0.6 <font color="rgb(16, 97, 179)">http://dl.dropbox.com/u/36326695/RandomGlass0.6.zip</font>
    v0.5 <font color="rgb(16, 97, 179)"><Edit by Moderator: Redacted mediafire url>
    v0.3 <Edit by Moderator: Redacted mediafire url>
    v0.25 <Edit by Moderator: Redacted mediafire url>
    v0.2 <Edit by Moderator: Redacted mediafire url>

    Installation:
    Extract RandomGlass.zip. Insert RandomGlass.jar and RandomGlassSettings.yml into your plugins folder.

    Commands:
    There is just one command: "/slots".
    It brings up a list of all blocks that are slot machines

    Customizing:
    RandomGlassSettings.yml is where all of your customizing will take place. The file itself explains most things.

    Things to note:
    * This .yml will only accept block ID numbers for the "item#:"s.
    * Use an "item#:" of 0 (the number zero) to denote money, and the "item#dropnumber" will be how much money it will vend if it lands on it
    * You can add or subtract the amount of "item#:" and "item#dropnumber:", just make sure to edit the "numberofitems:" variable
    * You can have more "item#:" and "item#dropnumber:" than you have "numberofitems:", they just won't be included
    * Although you can probably gather this from the .yml, multiple machine blocks can be created if you copy and paste from "whatdropsrandomly" to the last "item#dropnumber" you have. Just make sure to change "machine#" to the correct one.
    * I just threw in some blocks and money for the loot to be, so please customize this yourself. This also goes for how much money it costs.


    Changelog:
    0.7:
    * changed the ID# messages into true block/item names for convenience (finally found the code for it)
    * added the command "/slots"

    0.65:
    * Fixed a nasty infinite loot bug that 0.6 caused
    * Made the .yml a lot easier to manipulate


    Show Spoiler
    0.6: Added support for items to be currency too, just hold the item while clicking the slot machine
    0.5:
    * added support for multiple slot machines that can have different loot, cost, item needed to held, everything
    * Fixed up the .yml comments

    0.3:
    * formatted messages to display money with two decimal places
    * added support for both items and money to be vended
    * Changed wording a bit more

    0.25: Changed message wording, fixed typos, cleaned up code a bit
    0.2:
    * added not enough money error message
    * added message telling which item should be held
    * added message saying how much was debited and the remaining balance

    0.1: Release
     
    Last edited by a moderator: Nov 13, 2016
  2. Offline

    Freezy

    either be constructive or stop being altogether
     
  3. Offline

    Docdecdoc

    soz that was my gay bro.
     
  4. Offline

    sagethor

    @dkramer
    Is it possible to add in damage values? Would be very great, thanks! :)
     
  5. Offline

    darth2499

    Please make this plugin inactive since this plugin does not support the latest bukkit and has not been updated for a while now.
     
  6. Offline

    Doggernaut

    how i make a slotmachine only make a gold block or what? :D
     

Share This Page