[INACTIVE][ECON] iMonster v1.7 - Give players iConomy money and drops when killing monsters [292]

Discussion in 'Inactive/Unsupported Plugins' started by ZeroDPS, Feb 9, 2011.

  1. Offline


    iMonster - The Monster Money and Drop Plugin for iConomy: Version: 1.7
    This plugin is designed to allow servers using iConomy to reward players with in-game currency.
    Must have iConomy 2.2+
    Must Have Bukkit/Craftbukkit 292+
    edit the /Plugins/iMonster/iMonster.yml file foe configurations.
    • Configure Reward Currency and Items Drops per Monster.
    • Set Max Reward drop for monsters
    • Prevent MobSpawner Camping
    • Permissions Support (iMonster.User)
    • Set Reward for killing the Mob Spawner

    • Death Penelty (waiting for better Bukkit support on the EntityDeath event)
    • Prevent Reward with use of Bow
    • Configurable Messages
    • Max Kills Per Hour (configurable and can be disabled) uses variable coin rewards and % based drop rates for coins to give admins ability to prevent abuse instead of a hard cooldown/
    • Decimal Percentage
    Change Log:


    • Minor update added /imonster command to help troubleshoot problems...it doesnt do anything but send you a message with some settings information to help us better troubleshoot the plugin if a problem arises.

    • Bow Kills now works correctly
      • Slimes and ghasts were not working because they are not considered "monsters" in bukkit so they failed the check to make sure it was a player attacking a monster i have coded the plugin to handle this issue now so they WORK
    v1.5 Release

    • Fixed Creeper Coin Bug (all mobs giving set creeper amount_
    • Added Coin Range for mob kills.
    • Added Coin Percentage for mob kills

    • Added ability to Give rewards for killing a mob spawner.
    v1.0 BETA Release

    • Fixed Error with old Permissions version
    • Added Configurale Messages WITH Chat Color Support
    • Added Bow Camping Settings
    • Added Abolity to use Decimal Percentages for item drop rates.
    v1.5/v1.6 config file changes - ADD These (also included the default config file in the zip for copy/paste)

    or you can always delete/rename your current file and let the plugin make one for you.

    Creeper-Coin-Max: 0
    Creeper-Coin-Percent: 100
    Skeleton-Coin-Max: 1000
    Skeleton-Coin-Percent: 10
    Zombie-Coin-Max: 0
    Zombie-Coin-Percent: 50
    Spider-Coin-Max: 1000
    Spider-Coin-Percent: 50
    PigZombie-Coin-Max: 0
    PigZombie-Coin-Percent: 100
    Ghast-Coin-Max: 0
    Ghast-Coin-Percent: 100
    Slime-Coin-Max: 0
    Slime-Coin-Percent: 100
    Giant-Coin-Max: 0
    Giant-Coin-Percent: 100

    v1.1 config file changes - ADD These

    Mob-Spawner-Coin: 200
    Mob-Spawner-Drops: "264:2:75;354:1:80"
    Reward-Mob-Spawner-Destroy: true
    iConomy-Mob-Spawner-Message: "$5Mob Spawner Killed! You have been awarded %c!"
    iConomy-Mob-Spawner-Message-Enabled: true

    v1.0 BETA CONFIG FILE CHANGES - Either Delete your config and let it create a new one, or add THESE values to your config!

    Reward-Kills-With-Bow: true
    RewardKillsWithBowDisabledMessageEnabled: true
    RewardKillsWithBowDisabledMessage: "$cNo Reward for camping with a bow go out and fight!"

    Mob-Spawner-Camping-Message-Enabled: true
    Mob-Spawner-Camping-Message: "$cNo Reward for %m camping near the spawner."

    iConomy-Kill-Deposit-Message-Enabled: true
    iConomy-Kill-Deposit-Message: "$e%m Killed - %c deposited into your iConomy Account."

    iConomy-Protected-Kill-Message-Enabled: true
    iConomy-Protected-Kill-Message: "$cProtected %m Killed - %c removed from your iConomy Account."

    iConomy-Protected-Kill-No-Money-Message-Enabled: true
    iConomy-Protected-Kill-No-Money-Message: "$4Protected %m, you don't have the money for the fine. %m resurecting >.< "

    Attached Files:

    zani007 likes this.
  2. Offline


  3. Offline


    Also will add permissions support tonight , will be single permission so you can configure which groups get the rewards and fix the multi reward bug
  4. Offline


    Awesome! Will look forward as issue will be fixed :)
  5. Offline


    This looks like fun! I was looking for something like this :)
  6. Offline


    Working on the updates now, so hopefully a Beta release for tonight
  7. Offline


    Thanks man, so far this is exactly as I described :D I'll test it out in a little while. Out to dinner with th gf atm
  8. Offline


    This sounds really cool! As a feature you mention preventing mobspawn camping - how do you do this?
  9. Offline


    I give you a MobSpawnSearch Radius in the config file, default is 15 so it searches 15 blocks in every dfirection from the playe, up down, and all around for a mob spawner blick id and if it finds it, tells them to stop camping the spawner and get some real kills

    of course you can configure the radius, 15 was a guess, no practical information on how far to set the default, but i tested it with 64 (basically 128 block cube around the player) and there was zero lag and took very little time

    there is also a setting to turn this off and on
  10. Offline


    great plugin, fits absolutly perfekt to my server.
    i also got a request. is it possible to make the textmessages editable? so i can translate it?
  11. Offline


    I will see if i can do that tonight with the version i am working on now, it might be for tomorrows version though.

  12. Offline


    I'm using 297 and people are getting paid X amount everytime they hit a mob, not kill. I had it set to reward 100 coin per kill, and after about a dozen kills I raked up almost 4000 coin, when it should have only been like 1200. Also items are not dropping. I added an item with a 100% drop rate to test it, and nothing. Am I doing something wrong? Here is my config...

    ## iMonster Config File ##
    #Coins can be both positive and negitive, if you love spiders and don't want them killed, make it -20 and the player will loose 20 coins each spider killed.
    #Drops Need to be configured as follows: Creeper-Drops: ITEMID:QTY:PERCENTCHANCE;ITEMID:QTY:PERCENTAGE
    #Monster Max Drops will limit the amount of loot that will drop. (!!MONSTER WILL STILL GIVE NORMAL DROPS!! i.e. String, Arrow, Sulphur)
    # 100 = always drops, 25 = 1 in 4 chance of dropping , 1 = 1 in 100 chance of dropping
    #Example Monster-Drop Settings: % chance needs to be between 1 and 100 for now
    #Creeper-Drops: "264:1:1"   - Gives a 1 in 100 chance to drop 1 diamond
    #Creeper-Drops: "264:2:1;354:1:10"   - Gives a 1 in 100 chance to drop 2 diamonds and a 10 % chance to drop a cake.
    Creeper-Coin: 100
    Creeper-Drops: "264:1:5;350:1:25;283:1:5;276:1:1;310:1:1;302:1:5;92:1:2"
    Skeleton-Coin: 100
    Skeleton-Drops: "265:1:25;289:1:20;284:1:5;277:1:1;311:1:1;303:1:5;92:1:2;262:30:25"
    Zombie-Coin: 100
    Zombie-Drops: "266:1:15;322:1:2;285:1:5;278:1:1;312:1:1;304:1:5;92:1:2;20:1:100"
    Spider-Coin: 150
    Spider-Drops: "89:5:25;320:1:15;286:1:5;279:1:1;313:1:1;305:1:5;92:1:2"
    PigZombie-Coin: 50
    PigZombie-Drops: ""
    Ghast-Coin: 200
    Ghast-Drops: ""
    Slime-Coin: 50
    Slime-Drops: ""
    Giant-Coin: 200
    Giant-Drops: ""
    Check-For-Mob-Spawner-Camping: true
    Mob-Spawner-Camping-Radius: 15
  13. Offline


    The extra pay is noted as an issue above...i have it fixed buy i have not uploaded the new version yet. Let me test item drop issue try it with just a single item at 100 % and see if it drops.

    going to fix the drop issue then i will publish the Beta release.
  14. Offline


    YaY, can't wait :D
  15. Offline


    Pre-Beta version uploaded to original post. Make sure you read the notes about the config file!!
  16. Offline


    Feb 9, 2011 11:15:36 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\iMonster.jar in plugins: null
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:79)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:169)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:108)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:207)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.ClassNotFoundException: zerodps.iMonster.iMonster
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:73)
    ... 8 more
  17. Offline


    hmm I am guessing you don't have the Permissions Plugin?

    let me see if i can get it so it doesnt force you to have it loaded
  18. Offline


    no i have it and - 'iMonster.User' is in the default group
  19. Offline


    wow...sorry about that aparently my version number made bukkit angry...

    0.75 - error
    0.7 - worked just fine :) guess it should have been 0.7.5 :) my bad.

    re-uploaded to main thread and all is good. Sorry about that
  20. Offline


    Very nice work here. Do you think there would be a way to limit how much money a person can earn over a certain time period? like after 10 kills in an hour it needs to 'cooldown' before you can keep doing it or something like that?
  21. Offline


    Ok so the two requests i have right now are

    1. Editable Mesages
    2. Cooldown making a max of ## of kills per Hour (# of kills and duration being configurable as well as disabling this feature all together. (Could also make it alert the player of cool down remaing i guess)

    any other ideas?
  22. Offline


    editable/disable messages is about all i can think of..
    unless it can some how be made so it does not pay out when the monsterhunt plugin is doing a hunt
  23. Offline


    Thanks for making this man, I like.
  24. Offline


    This is really getting good. Nearly perfect. One thing I notice it's kinda buggy with creepers. Sometimes when I attack a creeper they just disappear.
    --- merged: Feb 10, 2011 6:10 AM ---
    Does this support decimal percentages? like 0.5 if i wanted something to be super rare? I think that would be 1 in 200, etc.
  25. Offline


    Nice idea but sadly not working here...

    ALLVARLIG: Could not pass event ENTITY_DAMAGEDBY_ENTITY to iMonster for iConomy
    at zerodps.iMonster.iMonsterEntityListener.onEntityDamageByEntity(iMonsterEntityListener.java:47)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:313)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:214)
    at net.minecraft.server.EntityHuman.h(EntityHuman.java:352)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:697)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:315)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:230)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

    This is repeated for every single killed monster. Server running #292.
  26. Offline

    Phantom Index

    Can there be a percentage for the coins?
  27. Offline


    By the way, shouldn't you call entity_death, rather than entity_damageby_entity? Would be faster (called less), and more appropriate.
  28. Offline


    @fullwall it would be allot better!, however damagebyentity provides the hooks for who is getting damage and HOW they are getting damaged.

    unfortunatly EntityDeath does not yet have the hooks for knowing HOW they died si i am unable to determine who killed a monster simply by its death event. I am looking deeping into the bukkit framework to see if i missed something though.

    This is my first plugin, so i could be missing something, but all of the Monster death plugins that i have seen and looked at are forced to use entity damage. which is why the reward timing is sometimes off because incoming damage and monster health are not reported acuratly by bukkit 100% of the time. Is there something i am missing? I know i have allot to learn still

    --- merged: Feb 10, 2011 12:48 PM ---
    The creeper issue i have seen a couple times, but i un-installed this plugin and continued to see it as well.
    the plugin does not try and alter the life of the monster, so i am not sure if or why it is causing it or if it is the newest craftbukkit that is the culprit...more testing today.

    Currently is does not support decmal percentages, but i will re-work the math routine to allow this.
    --- merged: Feb 10, 2011 12:49 PM ---
    % for coins? not sure i under stand....% chance to drop coins? so it does not always drop them?
    --- merged: Feb 10, 2011 12:49 PM ---
    can you post your server startup log so i can see the bukkit version as well as other plugins you have installed?
  29. Offline


    Ack, That was me being somewhat dumb. #292 and this should be all the plugins (Not including this) General, iChat, iConomy, Permissions, Simpleshop, Worldedit/Guard. Craftingdispenser, Dynmap, Skills
  30. Offline


    What version of permissions are you running? it seems that error is generated when i am checking the Permissions stuff.

Share This Page