[INACTIVE][ECON] CookieMonster! v0.2 - iConomy Money and Items For PvM [459]

Discussion in 'Inactive/Unsupported Plugins' started by Coelho, Mar 1, 2011.

  1. Offline

    pixelbat

    I'm getting a mess of issues with this plugin :(

    Sometimes getting paid 2 and 3 times when attacking a mob. Money paid in decimals (ie: 40.3 coin, etc). I've killed over 50 spiders and haven't got any of the assigned drops I gave it. Otherwise I guess it works? I'm using CB 493, and below is my config. Any ideas?

    Code:
    ##
    # CookieMonster Settings
    ##
    
    # Main node for all monsters
    Monster:
        # Name of the monster
        Creeper:
            #                                  Item #1        |     Item #2
            # Monster item drops, format: "item:amount:percent;item:amount:percent" etc.
            Drops: '89:3:15;264:1:1;266:1:2.5;265:1:10;319:1:5;349:1:5;260:1:10;276:1:0.5;302:1:5;12:64:25;04:64:25;03:64:25'
            # Minimum amount of currency recieved from slaying a monster
            Coin_Minimum: 50
            # Maximum amount of currency recieved from slaying a monster
            Coin_Maximum: 150
    
        Skeleton:
            Drops: '87:3:15;264:1:1;266:1:2.5;265:1:10;319:1:5;349:1:5;260:1:10;277:1:0.5;303:1:5;262:10:10;02:32:25;03:32:25'
            Coin_Minimum: 25
            Coin_Maximum: 75
    
        Zombie:
            Drops: '88:3:15;264:1:1;266:1:2.5;265:1:10;319:1:5;349:1:5;260:1:10;278:1:0.5;304:1:5;341:1:15;04:32:25;01:32:25'
            Coin_Minimum: 25
            Coin_Maximum: 75
    
        Spider:
            Drops: '89:3:15;264:1:1;266:1:2.5;265:1:10;319:1:5;349:1:5;260:1:10;279:1:0.5;305:1:5;341:1:25;12:32:25'
            Coin_Minimum: 25
            Coin_Maximum: 75
    
        Slime:
            Drops: ''
            Coin_Minimum: 100
            Coin_Maximum: 200
    
        PigZombie:
            Drops: ''
            Coin_Minimum: 1
            Coin_Maximum: 10
    
        Ghast:
            Drops: ''
            Coin_Minimum: 250
            Coin_Maximum: 500
    
        Giant:
            Drops: ''
            Coin_Minimum: 250
            Coin_Maximum: 500
    
        Spawner:
            Drops: '264:2:100'
            Coin_Minimum: 1000
            Coin_Maximum: 2000
     
  2. Offline

    Rocik

    Is it working for new iConomy and cb?
     
  3. Offline

    ShadowDrakken

    @pixelbat
    He's not going to remove the decimals... I complained about that with iConomy as well and their answer is "just don't use decimals" as if their random crap gave us a choice. I want an iConomy options, that iConomy plugins have to honor, for disabling decimals on server that don't want decimals.

    Decimals make NO sense on my server, they're just screwed up and annoying.
     
  4. Offline

    TOAST7312

  5. Offline

    stkeroro

    working on 493 recommended build?
     
  6. Offline

    pixelbat

    @shadowdrakken, well I switched back to iMonster since someone updated that to work with iC 4 and I like it better. It also uses decimals now. So I'd be willing to bet that if any decimal change comes it would have to come from Niji.
     
  7. Offline

    Ismoh

    i lov u!
     
  8. Offline

    Master_Queef

    Mob spawners ruin this plugin, any suggestions on what to do?
    My server loves this plugin, but people abuse the spawners.
     
  9. Offline

    Geoff Winans

    This plugin has serious issues.


    Code:
    Monster:
        Creeper:
            Drops: ''
            Coin_Minimum: 5
            Coin_Maximum: 10
    
        Skeleton:
            Drops: ''
            Coin_Minimum: 15
            Coin_Maximum: 25
    
        Zombie:
            Drops: ''
            Coin_Minimum: 5
            Coin_Maximum: 10
    
        Spider:
            Drops: ''
            Coin_Minimum: 10
            Coin_Maximum: 15
    
        Slime:
            Drops: ''
            Coin_Minimum: 1
            Coin_Maximum: 1
    
        PigZombie:
            Drops: ''
            Coin_Minimum: 25
            Coin_Maximum: 35
    
        Ghast:
            Drops: ''
            Coin_Minimum: 50
            Coin_Maximum: 75
    
        Giant:
            Drops: ''
            Coin_Minimum: 100
            Coin_Maximum: 250
    
        Spawner:
            Drops: ''
            Coin_Minimum: 1
            Coin_Maximum: 1
    
    Notice the lack of specified item drops.

    Killing a skeleton can net 40 bows in a single kill. The bows drop, invariably, one hit before the NPC would die.

    Killing a spider can net 60 string in a single kill. The strings drops, invariably, one hit before the NPC would die.

    Payouts come 1 hit before the npc would die.

    Example:

    If it takes 10 fistpunches to kill a skeleton, it will pay out and drop loot on the 9th hit and then drop PROPER loot on the 10th hit.

    This does NOT happen when weapons takes 2 shots to kill an npc. I suspect when the npc is down to its last heart, this plugin somehow believes the mob died and pays out + craps out loot.

    This plugin has promise, looking forward to updates.
     
  10. Offline

    ShadowDrakken

    it's been said several times in this thread already, this is a Bukkit/Minecraft issue, NOT a plugin issue
     
  11. Offline

    Geoff Winans

    The least problematic of many issues.

    Pardon me for not reading the entire thread before posting. We haven't seen the developer in here in a while, so he's either on vacation or the plugin is abandoned. The latter would not surprise me.
     
  12. Offline

    jascotty2

    configured extra drops (eg. skeleton drops bow) to have a decimal percentage (0.1%) and get this error:

    also, (using a diamond sword) i have gotten a reward for killing some monsters 3 times.. easily twice (once when to the bukkit event, another for the actual death, maybe another before the server removed the monster)
     
  13. Offline

    sharkale

    change this
    PHP:
    DecimalFormat DecimalFormat = new DecimalFormat("#.##");
    double amount Double.parseDouble(DecimalFormat.format(Math.random()  * (Constants.Monster_Coin_Maximum[m] -  Constants.Monster_Coin_Minimum[m]) +  Constants.Monster_Coin_Minimum[m]));
    for this in GivePlayerCoinReward method, fix the ", or ." decimal problem
    PHP:
    double amount Math.round((Math.random() * (Constants.Monster_Coin_Maximum[m] - Constants.Monster_Coin_Minimum[m]))*100)/100 Constants.Monster_Coin_Minimum[m];
     
  14. Offline

    darkwarriors

    has been released this fix?
     
  15. Offline

    Codisimus

    From testing it out it seems more like "item: (doesn't matter): percent/amount" let me know if you dont understand.
     
  16. Offline

    Coelho

    Decimal problem? You sir, do not know what your talking about.
     
  17. Offline

    ShadowDrakken

    uhm, yeah he does... you're forcing a decimal point in your decimals, many languages use a comma instead, and Java bases its selection of the user's locale settings... in other words, your plugin is broken on any of those languages
     
    sharkale likes this.
  18. Offline

    sharkale

    Why the aggression?
    Just try to help.
    Your plugin for my regional setting is broken. I edit the plugin for me with this and now work very well. i translate the string to my language and remove the decimal, a min~max without decimal.
     
  19. Offline

    niallmcfc

    I really wish you would update this :(
     
  20. Offline

    dslip

    Author,

    Please support the auto-updating plugin CraftBukkitUpToDate. To do so please provide a permanent direct link to the author of CraftBukkitUpToDate.

    The below is information they provide
    Show Spoiler

    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is http://www.dropbox.com/ or for OpenSource https://github.com/.


    I really enjoy using your plugin and would like to see it work well with the above listed 'updater' plugin.
     
  21. Offline

    darkwarriors

    yes pls update this, my java skill si very low and i have same error that decimal dint work in my dedicated server region!
     
  22. Offline

    sharkale

    decimal fix and translate option by me.
    all credits to coelho
    temporary until coelho fix it.
    i dont update this in the future.

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 15, 2016
  23. Offline

    Kainzo

    Few questions:
    1) Can you disable the amount a mob spawner can give in terms of a) mobs b) coins/drops?
    2) Is it possible for you to set a decimal for the mob drops? say 0.1c ?
    3) Awesome work.
     
  24. Offline

    crazydog

    I'm seeing a lot of premature drops; I'll get money before the monster is killed. It happens a lot with the diamond sword.
     
  25. Offline

    ShadowDrakken

    This is a bug in Minecraft/Bukkit, it sends the event to too early.
     
  26. Offline

    @vatare

    Code:
    00:48:44 [GRAVE] Could not pass event ENTITY_DAMAGED to CookieMonster
    java.lang.NumberFormatException: For input string: "1,6"
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerCoinRewa
    rd(cmRewardHandler.java:27)
    at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerReward(c
    mRewardHandler.java:21)
    at com.pi.coelho.CookieMonster.entity.cmEntityListener.doMonsterDeath(cm
    EntityListener.java:64)
    at com.pi.coelho.CookieMonster.entity.cmEntityListener.onEntityDamage(cm
    EntityListener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.j
    ava:356)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:441)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:748)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    00:48:44 [GRAVE] Could not pass event ENTITY_DAMAGED to CookieMonster
    java.lang.NumberFormatException: For input string: "1,83"
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerCoinRewa
    rd(cmRewardHandler.java:27)
    at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerReward(c
    mRewardHandler.java:21)
    at com.pi.coelho.CookieMonster.entity.cmEntityListener.doMonsterDeath(cm
    EntityListener.java:64)
    at com.pi.coelho.CookieMonster.entity.cmEntityListener.onEntityDamage(cm
    EntityListener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.j
    ava:356)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:441)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:748)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    00:48:45 [GRAVE] Could not pass event ENTITY_DAMAGED to CookieMonster
    java.lang.NumberFormatException: For input string: "1,49"
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerCoinRewa
    rd(cmRewardHandler.java:27)
    at com.pi.coelho.CookieMonster.entity.cmRewardHandler.GivePlayerReward(c
    mRewardHandler.java:21)
    at com.pi.coelho.CookieMonster.entity.cmEntityListener.doMonsterDeath(cm
    EntityListener.java:64)
    at com.pi.coelho.CookieMonster.entity.cmEntityListener.onEntityDamage(cm
    EntityListener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.j
    ava:356)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:441)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:748)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >
    

    WHy the plugin doesn't work ? Thanks for your help .
     
  27. Offline

    ShadowDrakken

    locale problem, use decimal points instead of commas until Coelho learns how to not hardcode decimals
     
  28. Offline

    Kendiggity

    on my server pigzombies pay what zombies should. any idea why?
     
  29. Offline

    Otoris

    This mod is awesome, but I can't seem to disable Creepers dropping sulpher with 289:0:0;?
     
  30. Offline

    mrgreaper

    been using this a while we all love it, keep up the good work chap!
     
    fneyret likes this.

Share This Page