[INACTIVE][FUN] RoleplayingCommands v0.1 - Dice rolling, coin flipping, and card drawing [224]

Discussion in 'Inactive/Unsupported Plugins' started by ShaneWilton, Feb 2, 2011.

  1. Offline

    ShaneWilton

    RoleplayingCommands - Dice rolling, coin flipping, and card drawing:
    Version: v0.1

    Here is my first mod: it is horribly basic, but a few friends needed it, so I thought I may as well release it. It basically performs the same job as Nullroll, from hMod, but with a few minor changes in command syntax.

    Features:
    * Allows users to roll an n-sided die
    * Allows users to flip a two-sided (as opposed to one-sided?) coin
    * Allows users to draw a card from a deck of 52 decks
    * Contains all chat messages within a radius specified by the player

    Code:
    commands:
    
      rolldie:
    
        description: Rolls a variable sided die (default of 6 sides), broadcasting the result either to the entire server, or to all players within a specified radius.
    
        usage: |
    
               /<command> <sides> <distance>
    
               Example: /<command> 6 - Broadcasts "Shane has rolled a <6> on a <6> sided die!" to all players within the server
    
               Example: /<command> 23 50 - Broadcasts "Rightlegred has rolled a <2> on a <23> sided die!" to all players within 50 blocks
    
    
      flipcoin:
    
        description: Flips a two sided coin, and broadcasts the result to either the entire server, or to all players within a specified radius
    
        usage: |
    
               /<command> <distance>
    
               Example: /<command> - Broadcasts "Shane has flipped a <heads>!" to all players within the server
    
               Example: /<command> 6 50 - Broadcasts "Zambino has flipped a <tails>!" to all players within 50 blocks
    
      drawcard:
    
        description: Draws from a deck of 52 cards, and broadcasts the result to either the entire server, or to all players within a specified radius
    
        usage: |
    
               /<command> <distance>
    
               Example: /<command> - Broadcasts "Superadamwo has drawn a <5> of <hearts>!" to all players within the server
    
               Example: /<command> 37 - Broadcasts "Victawr has drawn an <ace> of <spades>!" to all players within 37 blocks
    RoleplayingCommands.zip - 7 Kb - Includes plugin and source code
    <Edit by Moderator: Redacted mediafire url>

    To install, simply extract the zip file, and move the included jar file into your plugins directory for Craftbukkit.

    Changelog:
    Version 0.1
    * Released RoleplayingCommands

    If you have any suggestions or bugs, please let me know, and I'll see what I can do about adding them, or fixing them.
     
    Last edited by a moderator: Dec 15, 2016
  2. Offline

    unrivaledneo

    2 days and no response, i myself think this is a great idea, bring some fun into any server.
     
  3. Offline

    TheBoganlge

    this is pretty cool. Thread deserves more attention. it would be cool if someone made a casino
     
  4. Offline

    unrivaledneo

    Haha that is not a bad idea.
     
  5. Offline

    Mahngiel

    This begs for permissions. Would be great if this had a value that could expand parameters based on zones. (False=anybody, anywhere, True=permitted player in permitted place)
    Then you could truly create casinos.

    I would also suggest a name more fitting to the plugin. "Luck" comes to mind.
     
  6. Offline

    Sargeo

    Nice plugin! Works perfectly on bukkit #302 latest
     
  7. Offline

    mikill115

    This is great! I wish that it could be used for gambling. That would be perfect!
     
  8. Offline

    Kartus

    It should be possible to set in config file a defaultvalue to toggle "defaultvalue: true" and then "broadcast_blocks: 20" for the broadcastblockrange instead of broadcasting it by default to the whole server, example:
    /<command> 6 - Broadcasts "Zambino has flipped a <tails>!" to all players within 20 blocks
    and then for broadcasting to whole server it would be:
    /<command> 6 all/*/bc/server/etc.. - Broadcasts "Zambino has flipped a <tails>!" to all players within the server
     
  9. Offline

    Phanku


    I second this request!
     
  10. Offline

    Neoblade298

    I cant get it to work! D:
     
  11. Offline

    Phanku

    Wow really? This is helpful. I bet the plugin author is so happy you posted that here.
    How about you rewrite it? Then you can post it. Then when it breaks and some person posts "I cant get it to work!" you will just shrug your head like I am doing right now, and probably the author also.
     
  12. Offline

    Neoblade298

    I realize that I haven't added enough information to the post, and considering I'm too lazy to add a more complete informative, I'll just say this: There is nothing on the command module about a plugin failing, and the roleplayingcommands.jar is in the plugins folder. The src folder is in the same directory as craftbukkit.jar. I've rewritten it with as much as I can. Thank you for the suggestion.
     
  13. Offline

    jmcneely

    Can you please update this to the newest craftbukkit build.
    I am using build #531 just so you know.

    This is a really fun plugin and I would hate to stop using it.
     
  14. Offline

    Venatius

    Does the card draw actually track what cards are in a centralized deck, or does it just give you the name of a single random card? That is, can you actually play games with it (assuming you use some external means of tracking what cards you have in hand)?
     
  15. Offline

    Phanku

    It is just a random card and there is no collection.
     
  16. Offline

    sablednah

    Permissions, and intervals would help with the roleplay aspect of this mod?

    Then it could be linked with something like MCMMO to work with the skills as a modifier and bring in more RP elements. Just some random thoughts that came to mind when I saw this ;)
     
  17. Offline

    renxwar

    Can someone update this PLEASE? I'd really like this for my server.
     

Share This Page