Inactive [ADMN] MobDrops v2.5 - Change what your ingame mobs drop (now with iConomy support) [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Daviidi, Jun 10, 2011.

     
  1. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    MobDrops - Change what mobs drop
    Version: V2.5

    Description
    The MobDrops plugin allows you to change what drops mobs give you, it was made intended for servers who use items like gold bars as their currency, and want mobs like skeletons to drop a gold bar on death. It can, however, be used for other purposes. The plugin allows you to set whether the mobs will keep their original drop in addition to your custom set drop. You can now also award iConomy money for killing a mob! (but not required) You can also set whether mobs only drop custom drops if killed by a player. Commands can be run from the server console, or in-game by an op.

    Commands
    ([] means optional, anything in <> is compulsory for that command)

    mobdrops add <Mob name> <Item id> [Drop Count = 1 [Chance of drop out of one thousand = 1000]] - adds the item to the list of drops for that mob.

    mobdrops remove <Mob name> <Item id> [Drop Count = any [Chance of drop out of one thousand = any [Limit = none]]] - removes all items from the list of drops for that mob that match those conditions.

    mobdrops get [Mob name] - Displays the drop information for the specified mob, or all mobs.

    mobdrops clear <Mob name> - Resets the drops for the specified mob to the default drops.

    mobdrops normal <Mob name> [on/off] - sets/gets whether the specified mob will drop the default drop, along with any custom drops.

    mobdrops money <Mob name> [amount] [amountupperboundary] [moneychanceoutof1000] - sets/gets how much is awarded for killing a certain mob. If the upper boundary is specified it will drop between the lower and upper boundaries, else it will just drop 'amount', if moneychanceoutof1000 is set, that's the chance of it dropping out of 1000.

    Code:
    /mobdrops money creeper 5 8 500 (will make creepers drop between 5 and 8 of your currency 50% of the time)
    mobdrops playeronly <Mob name> [on/off] - sets/gets whether the specified mob will only drop custom drops upon being killed by a player.

    mobdrops moneymessage [message] - sets the message given to a player when they get a reward for killing a mob to the set message, (if no message is specified then the player will get no message), the message replaces %a% with the amount rewarded and %m% with the name of the mob killed. For example:
    Code:
    /mobdrops moneymessage You killed a %m% and got %a% dollars!
    might result in
    Code:
    You killed a creeper and got 2.43 dollars!
    Item ID's can be found here.

    Feedback is always appreciated. :D



    If you wanted the creeper to have a 5% chance of dropping a diamond sword, and to always drop two gold ingots, but never to drop it's sulphur, you would use the following:

    Code:
    > mobdrops add creeper 276 1 50
    19:06:21 [INFO] Added drop successfully!
    > mobdrops normal creeper off
    19:06:29 [INFO] Turned normal drops for 'creeper' off.
    > mobdrops add creeper 266 2 1000
    19:07:03 [INFO] Added drop successfully!
    > mobdrops get creeper
    19:07:09 [INFO] Mob 'creeper':
    19:07:09 [INFO] Normal drops: off
    19:07:10 [INFO] Drop: DIAMOND_SWORD, count: 1, chance: 5.0%
    19:07:10 [INFO] Drop: GOLD_INGOT, count: 2, chance: 100.0%
    
    Here are some more ideas to get you thinking:

    Carrier Creeper (creepers have a 5% chance of showering their killer in TNT)
    Code:
    > mobdrops add creeper 46 64 50
    > mobdrops normal creeper off
    
    Skeletons bows (Skeletons have a 40% chance of dropping their bow)
    Code:
    > mobdrops add skeleton 261 1 400
    
    Slimy zombies (Zombies drop slimeballs instead of feathers)
    Code:
    > mobdrops add zombie 341 2
    > mobdrops add zombie 341 4 100
    > mobdrops add zombie 341 3 100
    > mobdrops add zombie 341 2 100
    > mobdrops add zombie 341 1 100
    > mobdrops normal zombie off
    
    Sweet ghasts (Ghasts drop two cakes on death)
    Code:
    > mobdrops add ghast 354 2
    
    If you find a combination particuarly good, post it and I'll include it in this list!


    Known Bugs
    • The help menu is far too long to be displayed on a players chat, but can be viewed fine from the console. It also displays the "Invalid command" message after displaying the help.

    Download
    Latest Version (Version 2.5, tested and works on RBs up to 1337, may work on other versions.)

    Version History / Changelog
    Version 2.5 (tested on builds up to 1337):
    • Fixed bug with awarded money being rounded down.
    • Added /mobdrop as an alias.
    • Changed default file to /plugins/MobDrops/MobDrops.data. (but still uses the old file if not found)
    Version 2.4 (tested on build 860):
    • Added chances for the /mobdrops money command.
    • Added the /mobdrops moneymessage command.
    Version 2.3 (tested on build 860):
    • Added optional range for the /mobdrops money command.

    Version 2.2 (tested on build 860):
    • Added /mobdrops playeronly command.
    Version 2.1 (tested on build 860):
    • Added iConomy support
    • Added /mobdrops money command.
    Version 2 (tested on build 860):
    • Made stacks of items come out of the mob separately.
    Version 1 (tested on build 818 + 860):
    • Initial Release for bukkit

    This post has been edited 2 times. It was last edited by Daviidi Nov 26, 2011.
  2.  
  3. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    changelog has to be at the end
    I would suggest moving those exxamples into a SPOILER tag and putting it after commands

    also please add a header to the post
    name - description
    Version: ...
  4. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks, changed.
  5. Offline

    slimpyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is there any way we could determine if its killed by a player as opposed to a mob grinder?
  6. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes, but what functionality would you want involving this?
  7. Offline

    jonassm

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If i change the drop of a mob, will it still drop it's normal drop?
  8. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have been looking for a Mob Drop mod that works like yours for a while now. Any chance it could have Multiworld?
  9. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    add iconomy and this would be an amazing plugin just sayin.
  10. Offline

    BloodyDie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    don't work
    if i'm write /mobdrops Zombie 268 1
    Invalid Command. Use "mobdrops help" for help...
    and /mobdrops normal Zombie off
    no mob of name 'Zombie' found
    help ? !!!
  11. Offline

    Cybird

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just tried the plugin on my server. Everything was working fine, until I actually used the plugin. Right after I adjusted a Zombie to have a 75% drop of Smooth stone to test it, I started getting server can't keep up messages on the server and My client crashed. Disabled all plugins and loaded up the server and the same thing happened. The moment I connected the Server started having Can not keep up errors and My client crashed.

    Removed Mobdrops completely from the server and restored the world from a backup and everything is running fine now. Not sure if its Mobloot by itself or if its having a compatibility issue with other plugins. I am not running any other plugins that modify drop rates at all.
  12. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :/ I can't think of anything right off that could cause that. If someone else reports the same thing, I'll investigate more closely.

    It's "/mobdrops add Zombie 268 1", remember the "add"

    and "/mobdrops normal" can only be used if that mob has a custom drop already... I'll fix that next release.
    EDIT: done! :D

    Maybe, when I released this on hey0's mod I got the same suggestion :p
    EDIT: done! :D

    Yes, unless you use /mobdrops normal mobname off
  13. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    done :D, it was a lot easier than I thought. :)
  14. Offline

    slimpyman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah, id just like to deter people from collecting stuff from a grinder... afking and collecting alot of loot. so is there a way we can just have it drop stuff only if its killed by a player, as opposed to it dropping from drowning?
  15. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated, you can now use the /mobdrops playeronly <MobName> [on/off] command.
    Code:
    /mobdrops playeronly skeleton on
  16. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    nice, I'm impressed :] and thank you you saved me the trouble of getting a plugin i didn't want :D now people in my server can get money in a stable way without me getting jobs(the plugin i didn't want to get >.>)

    but one more thing could you add a range and a chance? like mobdrops money <Mob name> [amount] [chance] ex: /mobdrops money creeper 0.01-1.00 4
  17. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Done, the command is
    Code:
    /mobdrops money creeper 0.01 1.00
  18. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    well damn i think i love you xDDDD
  19. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i just tested it and everything works wonderfully! :D
    thank you so much for making this plugin and adding things i suggested...and i kinda feel bad for asking this but one more thing xD can you have it tell the player when they earned money for killing and how much? like if i killed a spider can it say %monster dropped %amountofmoneygained (where %monster is the monsters variable and %amountofmoneygained is respectably the variable for amount of money you gained for that kill. of course those probably are not the actual variables but you understand right?)
  20. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Done, added that and the money chance, the command might be: "/mobdrops moneymessage %m% dropped %a%"

    And thanks for all the helpful feedback :)
  21. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :D thank you once again and i will let you know how things worked :]

    also could you give me an example of /mobdrops money with chance added in? i dont know where im supposed to add it.

    nvm xD you added that as i was commenting :3
  22. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i think there might be a mishap, ex: "mob 'spider' normal drops:eek:n player only drops: on money 0.01-0.06/chance:100%" but it is not 100% dropping.

    but the message is working :D
  23. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The money is transferred under the same condition that the message appears... :/

    Did you use 100 as the chance or 1000? the chances are out of 1000.
  24. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yea i did /mobdrops money creeper 0.01 0.07 1000 and when i kill a creeper i get no money and the message says that i got 0.0, can i not use hundredth place decimals?
  25. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Um, you should be able to... But I gtg right now, sorry. I'll look into it tomorrow.

    Edit: Fixed since version 2.5.
  26. Offline

    godsyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please place the data file in its own directory, like other plugins. EG: Mobdrops/MobDrops.data
  27. Offline

    Hopium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    one suggestion would be config file formatted for each mob type in tables like ex:
    Creeper:
    normal drop: true/false
    Add.drop: item|amountof|%of drop| and maybe a way to have the amount of said item be random between the range
    Chicken:
    normaldrop: true/false
    add.drop: item|amount|%

    i only suggest this cause its less repetitive to edit your drop list from a filel ike this and im not sure but this might make multi-world support a little easier if you had the config stored in /plugins/mobdrops/<world> you could load world specific. so far this is the best loot list editor i have found with the best features. thank you for your work.

    also a /mobdrop help or help menu when you type just /mobdrop with the syntax layout would be helpful for us burnouts trying to remember all the commands for all the plugins :D
  28. Offline

    Daviidi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    "/mobdrops help" gives you the commands. I may add "/mobdrop" as an alias...

    Also, the config file would be a good idea, and be easier to manage, but it wouldn't be easy for me to make :/

    I decided that as it was a single file it wouldn't matter too much, but I guess some people like their stuff more organised. Sorry. I'll make it use either the Mobdrops/MobDrops.data file or the MobDrops.data file, with the former default if neither found.
    Edit: it now does this, but you will have to move your data file to /plugins/MobDrops/ for it to use the file in that location.
  29. Offline

    Hopium

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i must have missed the spacebar or somecrap when i was trying thanks for the info, and as i said before good work.
  30. Offline

    tacozmeister

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What's the name of a zombie pigman(/pigman)? I tried zombiepigman, but nothing happens.
  31. Offline

    EMOberger

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    zombie_pigman every time you are coding or doing anything that a system reads never put spaces and if you have to than use a _ to replace it, ergo zombie_pigman

Share This Page