Inactive [FUN] Scroll of Random Uselessness 2.2 - Just as the name implies [1.2.3 COMPATIBLE] [1.1-R6/1988]

Discussion in 'Inactive/Unsupported Plugins' started by Eevables, Jun 30, 2011.

  1. Offline


    Scroll of Random Uselessness - Just as the name implies!
    Version: v2.2

    Oh, look. I found a bug.
    SoRU 2.2_01 will be coming shortly...
    A newly generated configuration is required for this update!

    To maintain compatibility with several servers still running 1.1, 1.2.3-exclusive content (mobs, items, etc) have not been added into the plugin. That's not to say that the plugin won't work just fine on any build above 1988!

    (As of 2.2, Scroll of Random Uselessness no longer supports Permissions 3.x. The local obfuscator apparently found my use of "prehistoric" technology appalling. I apologize.)

    A scroll of random uselessness. What do you think it does? What do you think it can do?

    Finally give all those reeds a useless use with Scroll of Random Uselessness! Simply read (use) the scroll (paper) and the effects can range from a useless statement to changing your environment to random items falling from the sky, or even temporary invincibility!
    In the words of a friend:
    • Gives paper a new and ever-changing use
    • Uses Permissions if, for some reason, you don't want players reading scrolls
    • Has further permission nodes defined for each individual possible action, allowing for customization of scrolls within your groups
    • Several useless (but hopefully amusing) dud messages
    • Messages are colored by helpfulness (or inherent dangerousness)
    • Can spawn passive, neutral, and hostile mobs around you
    • Has the ability to change the environment around you, up to and including turning a nearby stone block into diamond ore
    • Cake
    • Can heal the player
    • Can give the player temporary (10-second) invincibility
    • Has the chance to drop a random item of a random amount from the sky to the player
    • More cake
    • The ability to vomit up previously eaten porkchops
    • The chance to be a lightningrod for a split-second
    • Can randomly teleport you to another player
    • Can cause an explosion where you are standing
    Full list of possible actions:
    Show Spoiler

    • Several useless texts
    • Chance to be hit by a bolt of lightning
    • Puddles of water form around you
    • Puddles of lava form around you
    • Nearby stone can turn into diamond ore
    • A cake forms on the block you're standing on
    • Sheep, pigs, cows, chickens, squids and wolves can spawn around you
    • Zombies, skeletons, spiders, zombie pigmen, ghasts, silverfish, endermen, blazes, magma cubes, snowmen, mushroom cows, and creepers can spawn around you
    • Herobrine may appear
    • Scroll may not be used - no bonus effect
    • Cooked porkchops spawn from you
    • Health healed
    • Temporary invincibility
    • Random items will fall from the sky
    • Explosions can occur right where you're standing
    • You can be teleported to another player

    Permissions nodes:
    Show Spoiler

    Necessary for anyone to use a scroll




    to give your players access to all actions

    Solves all of your problems, and even mows your lawn!


    Ideas I am currently thinking about implementing - comments would help
    • Having a larger range of Useless messages... Admins can define their own random statements.
    • Implementing SuperPerms Done.
    • Getting around to removing the useless block comments all throughout the PlayerListener Done. Entire code was re-written in the process.
    • Balance Server administrators can now define the chance percentages within the configuration
    Because the plugin has been in use on some servers before its official Bukkit release, its entire changelog from 1.0 will be listed.

    Show Spoiler

    Version 2.2_01 (NOT RELEASED YET)
    • I'm kind of a clueless idiot and forgot to update some numbers within the entity spawner. It doesn't exactly cause any crashes, but if you want things like magma cubes to *actually spawn*, you might want this update...
    Version 2.2 (2.1 kind of derped into here, I lost count of my version numbers!):
    • Completely rewrote code. Crashes should no longer occur.
    • Compatible with mostly any CraftBukkit 1.2.3 build (There are no kitties available in here yet in order to maintain backwards compatibility with 1.1 RBs!)
    • Several new configuration options, including the ability to add your own strings as useless statements!
    • General configuration organization.
    • The local obfuscator made me remove Permissions 3.x support. I apologize.
    • Several other smaller changes.
    Version 2.0 (pretend 1.9 is in here as well):
    • Added permission nodes for every individual action
    Version 1.8:
    • Accounted for the new Silverfish and Endermen being spawned, and gave appropriate weights to them. Also expanded Acquirement to allow for the new items.
    • This was a little late...
    Version 1.7:
    • Added cooldowns! Editable in the config file, disabled by default. The cooldown time records in a double, so decimals are accepted.
    • Added weights to the config file! The numbers given are clarified as percent chances (i.e., 20% chance you can teleport.)
    - The plugin works this way: It rolls a category of action, then rolls an individual action within that category. From there, it rolls a dice to see if it should execute that action or redirect to a useless statement. The weights you give it in the config clarify the chance of executing that action - therefore, if it is 100 out of 100, the action will always execute - but only if it is rolled in the first place.
    • Added the ability for explosions to occur
    • Added the ability to get teleported to another player
    • Fixed a silly issue where people using Permissions would get slightly different chances from people who weren't using Permissions.
    Version 1.6
    • Found and fixed several bugs, including banned items dropping from Acquirement and strange config file reverting. Damn you, recursion!
    • At request, a new config option has been added to change how many items may drop from Acquirement, at most.
    Version 1.5
    • Added a config file
    • At request, item used as scroll can now be changed in the config
    • At request, Water and lava will no longer overwrite important blocks - these blocks are configurable in the config.yml
    • The blocks barred from being dropped by Acquirement are configurable in the config
    • At request, Permissions has been implemented - make sure to add the ScrollOfRandomUselessness.canUse node to your players!
    • At request, appearance of useless messages has been lowered... slightly
    • At request and upon rare occasion, Herobrine will make an appearance
    Version 1.4_03
    • Raised chances for Acquirement again (40%).
    • The plugin can now spawn Chickens.
    Version 1.4_02
    • Lowered how often water would be created around you.
    • Due to the severe responses of players getting acid reflux, the chance to vomit up previously eaten porkchops has been lowered.
    • Increased the chance of Acquirement by 12.5%.
    • Lowered the chance of Ghasts and Creepers spawning on a victim.
    Version 1.4_01
    • Changed the color of Ghast spawning to dark red to make the inherent danger of a giant, flying, fireball-shooting jellyfish a little more noticeable.
    Version 1.4
    • Added the possibility of getting a cake where you're standing.
    Version 1.3
    • Added Acquirement - it is now possible for a random item of a random amount to fall from the sky to you!
    • Added the ability for Creepers to be spawned.
    Version 1.0
    • Release
    mruczek, Noppoly and darklust like this.
  2. Offline


    I'm probably going to spend a good amount of time rewriting this entire plugin...
  3. Offline


    I'm a vector.
    Eevables likes this.
  4. Offline


    How is this coming along?
  5. Offline


    Ugly. Just got back from a cruise. Currently trying to remove all instances of recursion from the plugin.

    I presume that since you are still checking in on progress, you are truly interested in using this plugin - I'll try to see if I can get a more stable version out soon.

    Now, guests everywhere. @_@
  6. Offline


    I actually am =) my wife and I love your plugin. I just wish there was a way to add your own lines to it so you could put in more randomness.
  7. Offline


    I actually just added that functionality! Meant to keep that a surprise, but you out and nailed it, lol -w-

    I am having trouble making it stable - might just need a bit of configuration with percentages but meh. Won't be finnished in time for Christmas XP
  8. Offline


    Happy new year! Just checking in again =)
  9. Offline


    Very much to you too!
    Still working on it! Just not very fervently.
  10. Offline


    How goes? =)
  11. Offline


    Badly. I hate debugging.
  12. Offline


    Sorry to hear it.
  13. Offline


    My random number generator is making negative numbers and pulling NullPointerExceptions out of an array.

  14. Offline


    No luck yet?
  15. Offline


    If you put up a source link, i can help you fix some of the problems (if you want). I have some skill at beating stupid APIs into submission (cough... YamlConfiguration ...cough...)
  16. Offline


    Did this get bumped by an OP edit? Whoops. Was trying to avoid that.

    I very much appreciate the offer, and might take you up on that if my reserve methods for fixing things don't... well, fix things. I already rewrote the entire system from the ground up, so I'm rather rattled by the fact that such a simple thing as reading from a .yml is keeping me from debugging and releasing the rest of the plugin...
  17. Offline


    Well, good luck, if you need help ill be here.

    P.S. I think i forgot to mention before, AWESOME PLUGIN!
  18. Offline


    It won't really be awesome until it stops crashing servers. But thanks for the support - I appreciate it!
  19. Offline


    encased in a sphere/box of sand/gravel/stone/etc.?
    that would be cool
  20. Offline


    I've shied away from solid block suffocation mostly due to not wanting to directly kill the player and not having the willpower to try and calculate spherical stuff.

    Box I could do.

    Suggestion appreciated.
  21. Offline


    FINALLY updated for 1.1 (CB 1988). I know that's real late, but it's compatible with most 1.2.3 builds as well! (just no kitties yet.)

    Among the new features are the ability to make custom random statements (as many as you want!) and... Well, I rewrote the entire plugin. Nailed several areas that were throwing into nulls and created several fail-safes to try and avoid errors in the future. That means less crashy, more usey.

    There's a debug-mode that outputs things to the console during use, if any of you oddballs out there want to see what I was trying to manage while recoding the plugin.

    A command (/soru) has been implemented. It doesn't do anything for you yet, though. Have fun!

    Luck gained. Luck uploaded to DropBox. Luck now goes straight to you.

    Incredibly sorry for that horrendous wait. I hope the plugin fits your needs if ever you come back around to this thread.
  22. Offline


    Is there a command option in game for this? And does configuration file allow you activate and deactivate scroll types? Maybe invincibility and diamond ore spawn only set to work as in can I make this a donor bonus gift?
  23. Offline


    When you say "command option", you mean...?

    The configuration does not allow nor disallow scroll types from happening, but there are permission nodes for each and every individual action. Just don't add a node for a specific action to your players, and it won't happen to them.

    I have not tried to add full category enabling or disabling via config since the code re-write.

    I got it to wooorrrrrrrk. I hate you yet I love you, MemorySection.

    Also, thank you for the compliment!

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


    thanks for reply. by command i mean umm how do they receive scroll is what i'm trying to say haha. like how do they get there hands on it :p
  25. Offline


    It's an interact function associated with any item you wish, which is by default ID 339 (Paper). It can be changed in the config if you would rather people reading... slimeballs. Or diamonds? Mm. Have fun with that one.

    How you obtain the item depends on what item you set the "scroll" to in the first place. For example, if you use paper, merely making paper out of sugar cane and then right-clicking with the paper will trigger the plugin.

    Hope that clears it up!
  26. Offline


    Ohh it clears it up perfectly! Thank you so much!
  27. Offline


    Glad I could help!

    I would come and check back at least once within the next two days, though, because I found a silly bug in one of my class files. It won't cause anything to crash - far from it, rather, as it's completely acceptable plugin behavior - but it does effectively keep half of all plugin-spawned mobs from spawning when their appropriate action is triggered.

    I'm working on a project for school right now - otherwise I would stick the update onto the thread this second. Distractions! Distractions!
  28. Offline


    Haha indeed on that one. Many distractions out there. Well, I'll be testing this plug in soon. Thanks for everything!
  29. Offline


    Only here to help, my friend.
  30. Offline


    or maybe, for a very rare thing, LAVA SHOWERS!!
  31. Offline


    Shooooooot. That'd be cruel (and not to mention hard as hell to clean up).

Share This Page