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

    Eevables

    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:
    Features:
    • 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

    ScrollOfRandomUselessness.canUse
    Necessary for anyone to use a scroll

    ScrollOfRandomUselessness.event.other.teleportation
    ScrollOfRandomUselessness.event.other.acquirement
    ScrollOfRandomUselessness.event.other.godmode
    ScrollOfRandomUselessness.event.other.healhigh
    ScrollOfRandomUselessness.event.other.healmed
    ScrollOfRandomUselessness.event.other.heallow
    ScrollOfRandomUselessness.event.other.porkchops
    ScrollOfRandomUselessness.event.other.*

    ScrollOfRandomUselessness.event.entity.cow
    ScrollOfRandomUselessness.event.entity.pig
    ScrollOfRandomUselessness.event.entity.sheep
    ScrollOfRandomUselessness.event.entity.chicken
    ScrollOfRandomUselessness.event.entity.wolf
    ScrollOfRandomUselessness.event.entity.squid
    ScrollOfRandomUselessness.event.entity.zombie
    ScrollOfRandomUselessness.event.entity.skeleton
    ScrollOfRandomUselessness.event.entity.spider
    ScrollOfRandomUselessness.event.entity.pigzombie
    ScrollOfRandomUselessness.event.entity.ghast
    ScrollOfRandomUselessness.event.entity.creeper
    ScrollOfRandomUselessness.event.entity.slime
    ScrollOfRandomUselessness.event.entity.snowman
    ScrollOfRandomUselessness.event.entity.magmacube
    ScrollOfRandomUselessness.event.entity.blaze
    ScrollOfRandomUselessness.event.entity.mushroomcow
    ScrollOfRandomUselessness.event.entity.enderman
    ScrollOfRandomUselessness.event.entity.silverfish
    ScrollOfRandomUselessness.event.entity.ocelot
    ScrollOfRandomUselessness.event.entity.irongolem
    ScrollOfRandomUselessness.event.entity.villager
    ScrollOfRandomUselessness.event.entity.*

    ScrollOfRandomUselessness.event.environment.lightning
    ScrollOfRandomUselessness.event.environment.water
    ScrollOfRandomUselessness.event.environment.lava
    ScrollOfRandomUselessness.event.environment.diamond
    ScrollOfRandomUselessness.event.environment.cake
    ScrollOfRandomUselessness.event.environment.*

    ScrollOfRandomUselessness.event.*
    to give your players access to all actions

    ScrollOfRandomUselessness.*
    Solves all of your problems, and even mows your lawn!

    Download: http://dl.dropbox.com/u/14275037/Scroll_Of_Random_Uselessness_v2.2_m1.1.jar

    Ideas:
    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.
    Issues:
    • Balance Server administrators can now define the chance percentages within the configuration
    Changelog:
    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

    Shivanous

    I should have known he'd be there...He always is...
    Yeah, that's a good point, I know there's a way to do it client side, a Herobrine plugin I saw was able to make client side weather/time effects (It was just a summon platform thing though, so useless to me), but that's an option.
    It would be fun. I remember seeing an "arrow wall" plugin that could summon flaming arrows, maybe the source from that could give you some tips?
     
  3. Offline

    Eevables

    I would have to find that plugin in the first place. XP

    I'll mess with it the next time I get into a programming mood. I'm struggling with trying to figure out how to iterate through a player's inventory right now. Blah.
     
  4. Offline

    Shivanous

    I could get you a link, I think it's in my watched threads, lol.
    Yeah, it's not fun to program when you don't feel like it. That doesn't sound particularily fun...
     
  5. Offline

    Eevables

    If you could put the link down for that, that would actually be nice, yeah.

    Dunno when I'll ever feel like programming again...
     
  6. Offline

    Shivanous

  7. Offline

    SAMDAN

    Suggestion for message: BLT's taste so darn good.
    Another: Happiness is like wetting your pants, everyone can see it, but only you can feel the warmth.
     
  8. Offline

    Eevables

    Could already see that in your signature, but okay.

    I'll think about it.
     
  9. Offline

    SAMDAN

    You could, but It wasnt a suggestion there.
     
  10. Offline

    sabbo2001

    Unfortunately, I still seem to be having the issue that the config file rewrites itself every time.
     
  11. Offline

    evbot42

    [/quote]
    • Random items will fall from the sky
    [/quote]


    what will this be in the config? everytime we get this specific event, our server crashes, so we want to remove its possibility.

    halp?
     
  12. Offline

    Weltall 7

    Chance for acquirement: 0

    I really like this plugin, but right now it's very unbalanced. I think one should be able to configure the chances & max item stack sizes for every block/item, e.g.:
    Code:
    acquirements:
        #name/id: chance, max amount
        dirt: 50, 64
        cooked_porkchop:20, 2
        iron_sword: 10, 1
        diamond: 0.5, 10
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  13. Config is still resetting itself :/

    CB1060
    Scroll 1.7
    Ubuntu Linux
     
  14. Offline

    Eevables

    Updated for 1.8.1, and added possibility for silverfish and endermen spawns.

    As for the config resets - I'm dumbfounded. I really don't know what's causing that, or why... I will have to go and speak to more developers about it. I apologize for that inconvenience...
     
  15. Offline

    Franky1223

    Hey would it be possible to juste make Herobrine spawn? I want a Herobrine plugin soooo bad!
     
  16. Offline

    Eevables

    I... suppose.

    I recall hearing from another developer that it's actually impossible to spawn a Monster just as-is anymore - not sure how, or why, but I will poke at it and see what happens.

    It's not big enough to turn into its own plugin, so I will probably just give you a link to download said plugin here if I make it. Don't expect support for it, though.
     
  17. Offline

    Waffletastic

    psssstttt, Eev, promote the server!

    scratch that, i forgot we don't use scrollofrandomuselessness

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  18. This plugin is just awesome! I've swaped paper with enderman pearls and now those have some use. I wish it could summon a giant at some reasonable chance.
    Look, you've got a really good start in adding here something like old blue box / old purple box from Ragnarok Online. People were going crazy over those items spawning random equipment/items and their prices were going really high on RO servers.
     
  19. Offline

    Eevables

    That's actually a very good idea; the only thing I'm afraid of is how many lines that would require in the config. It's slightly absurd. I'll try to think of a way to implement that, though. Thank you for your thought.
    I'm afraid I never actually played Ragnarok, so I don't immediately understand the boxes you're talking about.
    Also, recall that ender pearls will actually make the player teleport somewhere upon use in 1.9 - just a protip!

    When you say boxes, though, what do you mean? Or were you alluding to the getting-random-items thing already in the plugin?

    Thanks for compliments by the way ^^
    Since it seems you have the server fine in your own hands, I shall have to pass on that idea. </3
     
  20. Ok, so idea with the boxes was that on a very rare ocasions some monsters dropped an item, box which could contain one of random items. Some of those were very rare and expensive and some of those were absolutely useless loot. Basically some people got really addicted to opening those boxes (it's kind of like playing the lotto), and were spending quite a lot of money to purchase and open them. Other players knew that chances for a really rare items were pretty low, so they were selling the boxes at some quite high prices which with time added up to be enough to purchase those really expensive loots anyway.

    I... was actually one of those people, who couldn't stop themselves from opening the boxes.

    In RO there were three types of those items comparable in their working to your scrolls:
    Old Blue Box (medium hard to get) - From random junk to medium worth items
    Old Purple Box (hard to get) - From random junk to very expensive items
    Dead branch (quite easy to get) - Spawned random mob

    Dead branches were really popular as well. People were collecting whole bunch of them and used them to either wipe the whole population of the city, or to just train their own skills.

    Considering, that most of the servers use iConomy (which would add worth to the items) and McMMO (which would make sense to spawn and kill a lot of mobs for exp and cash), you are on the way to great awesomeness if you'll add some options to your plugin.
     
  21. Offline

    Eevables

    Hm. So you mean like different distinct items that can drop blah to medium rare, and blah to extremely rare items? Could be done, could be done. It seems that only involved items, though, so I may just make that a different plugin. What an inspiration, though.

    Thank you for that, I'll have to toy around with the idea and see what I can and can't do. Do you have any more suggestions, though, concerning it? I mean, I've got a pretty good idea, but I'm wondering things to use as a default item and such.
     
  22. Well, the junk items might be like 64 blocks of dirt falling from the sky. The rarest items in game are diamond tools. But you also have to include rare but really doubtfully useful items like diamond sword (I still don't know who would make one of those... well, except for my friend, who's home is constantly attacked by a group of very creative enderman). You may also add a drop of money, but then your plugin would need to use iConomy.
    I'd split it into something like that:
    Junk:
    - money range 1-10
    - pile of dirt
    - pile of cobble
    - Grass block
    - pile gravel
    - 1 flint
    - block of grass
    - wooden tools (one at a time)
    - Wooden armor piece
    - String
    etc.

    Normal:
    - Bucket
    - money range 1000-5000
    - Shears
    - Iron tools (one at a time)
    - Music disc
    - Dispenser
    - Crafting table
    - Coal
    - Iron Ore
    - Lapis
    - Red Stone
    - TNT
    - Iron with flint
    - Iron armor piece
    - Wooden door
    - Minecart
    - Wooden rails
    etc.

    Rare:

    - Money range 10000-20000
    - Golden tools (one at a time)
    - Gold
    - Obsidian block
    - Ice block
    - Lava block
    - Music Box
    - Clay
    - Golden armor piece
    - Golden rails
    etc.

    Ultra rare:

    - Money range 50000-100000
    - Diamond tools (one at a time)
    - Block of gold
    - Diamond ore
    - Diamond armor piece
    - Saddle
    etc.


    Important!
    Now, the idea of the box is that it should be hard to obtain item, let's say, dropped by Giant or Spawner, which would place a person in a hard position of making decision to open and risk getting a junk or to sale and get a steady profit.

    Now, you'll have to link it with iconomy, some unique item and make it droppable by certian mobs. Good luck programming ;).
    Counting on you ^_^.
     
  23. Offline

    Eevables

    Thank you for that very helpful input - I won't be able to say when I will gain the motivation to work on something like this (and the recent forced transfer to BukkitDev is kind of bugging me), but I'll see what I can poke at and what use it'll be. I know that for one I can make the items configurable, so it won't have to be limited to a mob spawner block or odd things like that.

    Making certain mobs drop certain things may actually be a challenge, and I'm not sure how efficiently I could do it.

    iConomy will actually be easy, they have a delightful API to hook into.

    Most of what I'm afraid of are horribly long configuration files. I still don't exactly understand how to make subsections for those, but if I'm competent enough, I suppose...

    One last thing - Do you have a suggestion for a clever name for said plugin?

    EDIT;; Wait. I got it. RAGNABLOK. Or possibly Ragnablock.
     
  24. I think, you'll figure it out ;). Even though it would be inspired by Ragnarok, it is your creation, and you can name it however you want. It may even be called treasure blox or something :p
     
  25. Offline

    Eevables

    If I get inspiration from something I like to name it with a likeness towards its inspiration source. Scroll of Random Uselessness is an example because I got it from a dungeon crawler - there is a common scroll that does little to assist you and it is named "Scroll of random uselessness". Ah ha ha ha.

    Just thought you might want input on the name. Names are the hardest part. XP
     
  26. Then it would be something like "Old blue block" or "Old purple block" or "Old blue chest" or something of this kind. Every Ragnaplayer will recognize it right away.
     
  27. Offline

    Eevables

    I went ahead and internally named it RagnaBlok - however, because that's an internal name, the external name that appears is easily changeable. I think.

    Because I have some unrational problem with BukkitDev, if I get this finished, I may be wanting to send you a PM with a download link to play with it and give me feedback. I've gotten the basic structure set up; I just need to figure out how I'm going to make the yml return a list of monsters, since there's no getCreatureList() method...
     
  28. Offline

    MintTheFox

    yea, like every other time items drop from the sky the server locks up. i really like this feature of the plugin but i dont want my server crashing every 10 minutes from it
     
  29. I'll be waiting for your PM ;).
     
  30. Offline

    Eevables

    That's really weird. Disable it in the config for now. I'll see if it can be fixed later.
     
  31. Offline

    FloppyDingo

    Having the same issue here. Every so often when an item drops from the sky it freezes the server and makes it rollback a bit. Healing and mob spawns give long chains of error messages in the server command window, and sometimes crash the server outright.
     

Share This Page