[INACTIVE][ECON] ecoCreature 0.0.5b - PvM/E Rewards [740]

Discussion in 'Inactive/Unsupported Plugins' started by ChrisB, Mar 18, 2011.

  1. Offline

    ChrisB

    ecoCreature 0.0.5b - PvM/E Rewards

    Description:
    Based upon the stories of iMonster and CookieMonster, this nifty little plugin will allow you, the server owner to hand out more than the default, boring sets of items dropped from creatures on your server.

    Apart from allowing extra drops, how about economy support through iConomy & Essentials Economy as well as BOSEconomy? But... we just forgot one, MineConomy! (it works, too!)

    Did you like how iMonster treated your currency rewards without those decimals? Fully optional here!
    As if that wasn't enough, reward and penalty messages, fully customizable from your end!
    -------------------------------------------------------------------------------------------------------------------------
    Features:
    • Currencry rewards through iConomy. Messages are customizable.
    • Currency penalties, if thats your wish - with customizable messages.
    • Extra drops from all animals and monsters.
    • Prevent camping around monster spawners, fully optional.
    • Prevent rewards through the use of bow and arrow, optional with custom message.
    • Penalty for dieing, fully optional and can be set at percentage level. Custom messages.
    • Beloved donors and special members can earn more money through a simple permission switch, set in percentage gain.
    • Silent rewards, through the options. No more messages about rewards, penalties and such.
    • + more! (Read the config file for all the juicy details!)
    -------------------------------------------------------------------------------------------------------------------------
    !!! Requirements:
    • iConomy 4.6.5
    • Permissions 2.7.2
    • CraftBukkit 740
    • * BOSEconomy 0.6.2 (Only required if you do not have iConomy)
    • * Essentials 2.1.x (Only required if you do not have iConomy)
    • * MineConomy 0.5.6 (Only required if you do not have iConomy)
    -------------------------------------------------------------------------------------------------------------------------
    Permissions Setup for ecoCreature

    Each and every creature available! (If you do not add any of them, you won't get rewards)
    Code:
    - 'ecoCreature.Creature.CraftCreeper'
    - 'ecoCreature.Creature.CraftSkeleton'
    - 'ecoCreature.Creature.CraftZombie'
    - 'ecoCreature.Creature.CraftSpider'
    - 'ecoCreature.Creature.CraftPigZombie'
    - 'ecoCreature.Creature.CraftGhast'
    - 'ecoCreature.Creature.CraftSlime'
    - 'ecoCreature.Creature.CraftChicken'
    - 'ecoCreature.Creature.CraftCow'
    - 'ecoCreature.Creature.CraftPig'
    - 'ecoCreature.Creature.CraftSheep'
    - 'ecoCreature.Creature.CraftSquid'
    - 'ecoCreature.Creature.CraftWolf'
    - 'ecoCreature.Creature.Spawner'
    
    ======== Or if you just want them all. ========
    - 'ecoCreature.Creature.*'
    
    + Note that the permissions are case sensitive! +
    -------------------------------------------------------------------------------------------------------------------------
    Colour Codes @ ecoCreature.yml
    &0: Black
    &1: Dark Blue
    &2: Dark Green
    &3: Teal
    &4: Dark Red
    &5: Purple
    &6: Gold
    &7: Light Grey
    &8: Dark Gray
    &9: Light Blue
    &a: Light Green
    &b: Turquoise
    &c: Light Red
    &d: Pink
    &e: Yellow
    &f: White
    -------------------------------------------------------------------------------------------------------------------------
    Warnings / Notes:
    • I might of have missed something, if I did, just leave a message in the thread.
    -------------------------------------------------------------------------------------------------------------------------
    Known Issues:
    • None.
    -------------------------------------------------------------------------------------------------------------------------
    Suggestions / TODO:
    • Suggestions are welcome.
    -------------------------------------------------------------------------------------------------------------------------
    Downloads:
    ecoCreature.jar via gamebin.org
    Full working server setup, for reference via gamebin.org
    -------------------------------------------------------------------------------------------------------------------------
    Changelog:
    v0.0.5b
    • Updated for the latest stable bukkit.
    • Some features are still being worked on, in case you're wondering.
    v0.0.5a
    • Fixed messages with no colors.
    • Fixed death penalty.
    • Added FixedDrops, open your ecoCreature.yml and add FixedDrops: false right under OverrideDrops. You can set the value true or false, if true... creatures will only drop the specified amount in your loot table, otherwise when false it takes a random number between 0 and the amount you wanted. This only needs to be added if upgrading from 0.0.5 and don't want to re-generate your config.
    v0.0.5 - Lederhosen!
    • uQuest hooking, if a creature dies, it can give a random quest.
    • Spawner drops items now.
    • Dollar signs as your currency now works.
    • Updated to work with MineConomy 0.5.6
    • Flat or percentage for the death penalty.
    • Misc random stuff that didn't work should work.
    • Tested against iConomy, didn't have time for the others - but should work, report what doesn't work if thats the case.
    • THIS RELEASE IS A CONFIG-BREAKER, GENERATE A NEW ONE AND COMPARE TO YOUR OLD CONFIG, CHANGE WHERE REQUIRED!
    v0.0.4g4 - Cows with laserguns!
    • uQuest hooked, but doesn't do anything yet.
    • MineConomy support added.
    • If camping near a spawner, mobs shouldn't drop anything.
    • Minor fixes and tweaks here and there, hopefully working better and warns when not working.
    v0.0.4g3 - Crispy Milk!
    • Drops under 1% are working.
    • Added a check to see whether or not Permissions are hooked and enabled.
    • Minor fixes.
    v0.0.4g2 - Maintenance overdrive, supreme drift!
    • Fixed up some permission checking.
    • Tweaked some hooks.
    • Compiled and tested with RB 670
    • Minor maintenance, no config changes required.
    v0.0.4g1 - Maintenance maintenance of the maintenance extreme extreme release.... deluxe
    • Toggler for No Reward message fixed.
    v0.0.4g - Jeeeez man ;/
    • Hopefully nailed the DEATH and RESPAWN issues.
    • Added BOSEconomy, its back in the game.
    • PigZombie is PigZombie, and no longer Zombie :p
    • Permissions are back in, and there has been changes made.
    • Extra gains work on group-level, you'll see what I mean inside the config.
    • No Reward message can now be toggled on or off.
    • Drop overrides can also be toggled on or off.
    • Random acts of fiddling around with the code
    • You must backup, remove & let ecoCreature generate a new config with this release.
    v0.0.4f - Ohsnap
    • Default drop tables are overriden by ecoCreature, default table is added to the config. Will be optional later.
    • Fixed a serious bug, where the players inventory would be wiped upon death. (very random and not always happening - but could)
    • Specifying a drop amount for a creature will give it a random between 0 and the specified amount now.
    • Essentials Economy is again supported and seems to be working better than ever.
    • Where did all the permissions go? VIP is left in for now, everything should per default yield rewards for now.
    v0.0.4e - More
    • Pigs no longer looked upon as Creepers
    • IntegerCurrency fixed, and working again.
    v0.0.4d - Maintenance Deluxe
    • Drops should override default creatures drops now.
    • Drops should now drop at the location of the creature which died.
    • Minor fixes.
    v0.0.4c - Extra Maintenance Release
    • Should be working fine with RB617, two test servers reporting no errors.
    • Configuration file fixed.
    • Tiny fixes.
    v0.0.4b - Maintenance release.
    • Check and option to see whether or not a player is under sea level.
    • Wolves added and supported.
    • Expanded list of items held.
    • Configuration changes, backup and re-generate, make sure you are up to date!
    v0.0.4a- Maintenance release.
    • Small bugfixes and tweaks.
    • Mob/monster spawner camping checks both the player and creature if near the spawner now, not just the player.
    v0.0.4
    • New permission available.
    • New configurable messages, send a message even if there aren't any rewards!
    • Option for configuring spawncamping message, or turn it off.
    • Empty messages should no longer output to players.
    • VIP group permission, reward your donors or special players with extra cash!
    • Penalty upon death (optional, drop some money when you die)
    • New and improved configuration,back up and generate a new one to see the newlyadded awesome.
    • + some other changes and fixes.
    v0.0.3
    • Fixed a bug with iConomy adding money even though a negative amount was entered.
    • Small tweaks.
    v0.0.2
    • Quick bugfix for proper messages.
    v0.0.1
    • Initial Release.
    -------------------------------------------------------------------------------------------------------------------------

    Special Thanks & Stuff
    mudzereli, Mirage & Mineral, for initial testing & ideas.
    Nijikokun for iConomy, testing, code and ideas.
    Essentials Team for Essentials & Essentials Economy.
    Brotherhood Of Slaughter for their economy plugin.
     
  2. Offline

    ChrisB

    I'll fire up my test environment for BOSECON here, see what I get
     
  3. Offline

    riuthamus

    Thanks I couldn't figure it out, worked so nice before lol
     
  4. Offline

    ChrisB

    I can't reproduce it.
    Clean CB 670, ecoCreature 0.0.4g4, BOSE 0.6.2 alongside Essentials for spawning mobs etc. I even tried with your config, and it seems to work just fine. Check your permissions file for changes

    Edit! Hang on, get rid of the null drops in your config there :p
    Don't end them with a ;
     
  5. Offline

    riuthamus

    i didnt have the ; in there before, and it still did it... ill see what else i can try thanks
     
  6. Offline

    ChrisB

    Let me know what you find, because you're currently adding a null drop that can't be parsed into the drops table for the creatures (ima fix that). I will also look at tightening up the checks for drops / currency rewards
     
  7. Offline

    riuthamus

    Ah, you changed the permission... damn my not reading at early hours in the morning. Thanks, works like a dream.
     
  8. Offline

    Kainzo

    Can we have configurable coin loss please? I'd like to not have a base % but instead have a flat rate amount.

    We're not socialist on my server - we're capitalist.
     
  9. Offline

    ChrisB

    That I did, long ago :p
    Now I know it fires off error messages when it can't find the right permissions too... thats very odd since it should stop before that :p
    Another things on the list to fix!

    That can be arranged, I'll have something ready in the next version
     
  10. Offline

    riuthamus

    We have not used your plugin in some time, because of the new update, and you took us off for reworking. Finally got some free time to setup the extensive config the way I wanted it! :p Never the less glad to have it back on my server, and so are my players!
     
  11. Offline

    Kainzo

    Much appreciated - we have finally migrated from iMonster - looking forward to your updates :)
     
  12. Offline

    habbah

    link is down ;{! People need to start using DropBox!
     
  13. Offline

    ChrisB

    It's down because the service crashed. Fixed.
     
  14. Offline

    Kainzo

    @ChrisB - first off - awesome plugin. Here's some good suggestions

    • Player vs Player deaths should not lose coins - if theres a way to take out the lose of coin on PVP deaths - please put it in.
    • Tiered - flat rate money loss instead of base line % - think "tax laws" - ie a person who has 500c would lose a configurable rate of 10c , where as someone who has 2000c could lose a configurable flat rate of 30c. 1-500c = 10c, 501-2000c = 30c loss - etc.
    • When a player DOES die and DOES lose coin - put that coin to use - add it up and give it to a lottery jack pot and or add an API for the Lottery plugin to add the coin to buffer the 'pot' size.
    There's a ton more of ideas but that's the first few I can think of that would be very welcomed by the community.
     
  15. Offline

    ChrisB

    1. That can be done.
    2. This is also possible, I'll think of a decent way to put that in.
    3. I'll have a look at the lottery plugin, see if it's possible. If I am to hook into other plugins and put reward money to use other than place or take from their pockets, it would be required of the plugin to have a decent API.
     
  16. Offline

    Kainzo

    Sounds awesome - thanks @ChrisB - some of these were suggestions from players after testing this thoroughly for about 48 hrs
     
  17. Offline

    pyromanic

    @ChrisB
    Excellent plugin! I love the variety of features and integration with iConomy. Although I must say, you use awful version numbering. lol
     
  18. Offline

    ChrisB

    Ah yes, versioning ;)
    It'll catch up and turn sane later on :p
     
  19. Offline

    luau

    okay, tried looking again as some people have this working and i would LOVE to use it.. found my server log at it says:

    i went back to check my config file and all seems like a go:

    would love some help, as i am still pretty new to all this stuff. :)
     
  20. Offline

    BioRage

    @luau

    First off use www.pastebin.com to post big ass config files, I think 500% of user's don't want to see a wall of config.

    Second, your config file, you may have added an extra tab or space in there, who know's.. try removing plugin/folder

    start server, /reload.

    Install plugin, /reload

    And edit the config file again.
     
  21. Offline

    luau

    Tried that. @BioRage No luck. I even left the config file mostly default and left the norewards set to true so that it would tell me either way.

    maybe it's incompatible with another plugin i have?

    iConomy, LocalShops, MonsterHunt, Permissions, SimpleSave, uQuest, Tombstone, Friendlies, WorldGuard, SpawnX

    Edit: nevermind, went with another plugin
     
  22. Offline

    MadManMarkAu

    This has probably been reported before, but I'm getting an error when killing mobs. I killed a couple of pigs in this instance:

    Code:
    19:45:47 [SEVERE] Could not pass event ENTITY_DEATH to ecoCreature
    java.lang.StringIndexOutOfBoundsException: String index out of range: 5
            at java.lang.String.charAt(String.java:694)
            at java.util.regex.Matcher.appendReplacement(Matcher.java:723)
            at java.util.regex.Matcher.replaceAll(Matcher.java:823)
            at java.lang.String.replaceAll(String.java:2201)
            at se.crafted.chrisb.ecoCreature.entities.ecoRewardHandler.doYourThing(Unknown Source)
            at se.crafted.chrisb.ecoCreature.entities.ecoEntityListener.onEntityDeath(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:458)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.EntityLiving.p(EntityLiving.java:466)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:445)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:393)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:514)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:722)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    19:45:48 [SEVERE] Could not pass event ENTITY_DEATH to ecoCreature
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6
            at java.lang.String.charAt(String.java:694)
            at java.util.regex.Matcher.appendReplacement(Matcher.java:723)
            at java.util.regex.Matcher.replaceAll(Matcher.java:823)
            at java.lang.String.replaceAll(String.java:2201)
            at se.crafted.chrisb.ecoCreature.entities.ecoRewardHandler.doYourThing(Unknown Source)
            at se.crafted.chrisb.ecoCreature.entities.ecoEntityListener.onEntityDeath(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:458)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.EntityLiving.p(EntityLiving.java:466)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:445)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:393)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:514)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:722)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    My config file is auto-generated by the latest plugin and the only changes are:
    DidYou.Read.Understand.Configure: true
    System.Hunting.PenalizeDeath: false

    I'm using b670jnks with 0.0.4g4 of ecoCreature. If you need any more info, don't hesitate to ask. :)

    EDIT: It's only some mobs that do it. Sheep, Chickens, Zombies, PigZombies work fine, but Cows and Pigs all throw the exception. Also, I can't get mobs to drop money.
     
  23. Offline

    acegiak

    @ChrisB getting this on load: (craftbukkit 670)

    Code:
    22:50:02 [SEVERE] null initializing ecoCreature v0.0.4g4 (Is it up to date?)
    java.lang.NullPointerException
            at se.crafted.chrisb.ecoCreature.ecoCreature.onLoad(Unknown Source)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:87)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
     
  24. Offline

    ChrisB

    Do you have a dollar sign in your currency? If that's the case, remove it.

    It's a shame that you lack the time to go through the configuration file entirely. If you did that, you'd find what you need to do to get it working.

    I know exactly what does it, its been fixed in an upcoming version... so it doesn't really matter that much, just ignore it for now :)
     
  25. Offline

    MadManMarkAu

    Are you planning on fixing this in an upcoming version? Our currency name is non-negotioabe, and I don't want to use another plugin.
     
  26. Offline

    ChrisB

    It certainly will be fixed in the next version, the next version will also be a config-breaker... but don't worry about that :)
    I'm doing some changes and fixes right now, so the new version should be out very soonish
     
  27. Offline

    MadManMarkAu

    Awesome, I love you! And your plugin.
     
  28. Offline

    Nathan Kamenar

    Is there instructions somewhere for how to set this up? I find the documentation in the ecoCreature.yml configuration file to be extremely lacking and I don't know what I need to change or add to make it work. For example:
    Code:
    # Which economy system are you running? There are currently two enabled out of three.
    # 1 for iConomy
    # 2 for BOSEconomy
    # 3 for Essentials Economy *** ESSTC IS THE TEMPORARY FIX FOR NAMING YOUR ESSENTIALS CURRENCY! ***
    How do I choose one? Do I put CURRENCY! iConomy? or Should it be CURRENCY! 1? Very unclear instruction.

    I also don't understand why most variables in the configuration file don't seem to exist and you have to add them? Example:
    Code:
    #
    # IntegerCurrency set to true will round the reward to a whole number, no decimals.
    # While if it is set to false, it will give rewards with a decimal value.
    #
    but there is no "IntegerCurrency: true" line, you have to add it. The line should be included in the file with simple instructions saying to change it to true or false and what each option does.

    I don't mean to be harsh but it is really unconventional to have this sort of documentation for your code and it makes it really hard for the end user to understand what exactly you want them to change to make the plugin work. Thanks for any help, great plugin.
     
  29. Offline

    ChrisB

    I find it to be as clear as it can be, I can however try to re-write most bits and pieces of the example configuration file, so that it suits even my grandfathers father.

    If you read and follow the configuration downwards, you'll find each piece and bit available to set, its not limited to just what you have on your monitor at the time being. For instance, IntegerCurrency is a bit further down, and its default value is false.

    This plugin is not plug and play, it requires configuration before using it.

    Your feedback has been taken in, and I will try to adapt the documentation.
     
  30. Offline

    ksevelyar

    Could you please add EcoCreature to minerepo?
     
  31. Offline

    ZeePal

    Can we have it so that when your pet wolvies kill something you get all/some of the reward money? (iCon)
     

Share This Page