[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

    ZeroDPS

    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.
    Features:
    • 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
    TO-DO:

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

    v1.7

    • 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.
    v1.6

    • 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
    v1.1

    • 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

    Dharkk

    Whelp, I feel stupid :D I thought I had corrected the 'iMonster.User' capitalization before the last test but apparently I didnt save the config.yml for permissions heh :p Seems to be working now :D
     
  3. Offline

    ZeroDPS

    awsome...glad it is working for you :) don't ever hesitate to ask a question, I always want to make sure my plugins work the best they can for everyone.
     
  4. Offline

    KrisEike

    Great plugin! Works perfect. Using now. =)

    Thanks for making this.

    Kris
     
  5. Offline

    lawless314

    I just downloaded Permissions and iConomy and iMonster last night, so everything SHOULD be latest build.

    My Permissions file:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: 
                suffix:
                build: true
            inheritance:
            permissions:
                - 'iMonster.User'
                - 'iConomy.*'
                - 'general.spawn'
                - 'gastronomic.player.*'
                - 'DeathChest.*'
        Admins:
            default: false
            info:
                prefix: 
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - '*'
    And then my iMonster.yml file:

    Code:
    ## 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.
    
    Monster-Max-Drops: 10
    Creeper-Coin: 3
    Creeper-Coin-Max: 7
    Creeper-Coin-Percent: 100
    Creeper-Drops: "264:1:10;354:1:30;2256:1:1;2257:1:1"
    
    Skeleton-Coin: 5
    Skeleton-Coin-Max: 10
    Skeleton-Coin-Percent: 100
    Skeleton-Drops: "262:2:100;261:1:10;2256:1:1;2257:1:1"
    
    Zombie-Coin: 3
    Zombie-Coin-Max: 8
    Zombie-Coin-Percent: 100
    Zombie-Drops: "297:1:25;296:1:25;319:1:25;260:1:25;2256:1:1;2257:1:1"
    
    Spider-Coin: 1
    Spider-Coin-Max: 2
    Spider-Coin-Percent: 100
    Spider-Drops: "310:1:5;311:1:5;312:1:5;313:1:5;2256:1:1;2257:1:1"
    
    PigZombie-Coin: 10
    PigZombie-Coin-Max: 0
    PigZombie-Coin-Percent: 100
    PigZombie-Drops: "276:1:50;2256:1:20;2257:1:20"
    
    Ghast-Coin: 20
    Ghast-Coin-Max: 0
    Ghast-Coin-Percent: 100
    Ghast-Drops: "289:5:100;2256:1:20;2257:1:20"
    
    Slime-Coin: 10
    Slime-Coin-Max: 0
    Slime-Coin-Percent: 100
    Slime-Drops: "322:1:100;2256:1:20;2257:1:20"
    
    Giant-Coin: 20
    Giant-Coin-Max: 0
    Giant-Coin-Percent: 100
    Giant-Drops: "2256:1:20;2257:1:20"
    
    
    
    
    Mob-Spawner-Coin: 100
    Mob-Spawner-Drops: "264:10:100;266:10:100"
    Reward-Mob-Spawner-Destroy: true
    iConomy-Mob-Spawner-Message: "$5Mob Spawner Killed!  You have been awarded %c and some gems!"
    iConomy-Mob-Spawner-Message-Enabled: true
    
    
    Check-For-Mob-Spawner-Camping: true
    Mob-Spawner-Camping-Radius: 15
    Reward-Kills-With-Bow: true
    RewardKillsWithBowDisabledMessageEnabled: false
    RewardKillsWithBowDisabledMessage: "$cNo Reward for camping with a bow...go out and fight!"
    
    
    #Variables for the messages:
    # Black = $0
    # Dark Blue = $1
    # Dark Green = $2
    # Dark Aqua = $3
    # Dark Red= $4
    # Dark Purple = $5
    # Gold = $6
    # Gray = $7
    # Dark Grey = $8
    # Blue = $9
    # Green = $a
    # Aqua = $b
    # Red = $c
    # Light Purple = $d
    # Yellow = $e
    # White = $f
    # %m = Mob Name
    # %p = Player Name
    # %c = iConomy Currency Reward (this includes the amount and iConomy currency name i.e. 100 Crazy Coins or what ever you named your iConomy currency)
    
    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 account."
    
    iConomy-Protected-Kill-Message-Enabled: true
    iConomy-Protected-Kill-Message: "$cProtected %m Killed - %c removed from your 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 resurrecting >.< "
    
     
  6. Offline

    kevincool

    having trouble with monsters not dropping flint for everyone on the server how would i do that in permissions or am i doing something wrong with settings as Zombie-Drops: 318:1:100
     
  7. Offline

    ZeroDPS

    @kevincool that should be configured correctly on the settings...can you be more specific? is it always working sometimes for all users? are some users getting other drops all the time?

    @lawless314 you say with that configuration it always works for admins but never workls for normal users? it is kind of perplexing, can you tell me what version of craftbukkit you are running?

    thanks
    -Zero
     
  8. Offline

    lawless314

    I am running CraftBukkit 325 downloaded from bamboo.lukegb.com as of last night. Is there something special I am supposed to do when I update a build outside of replacing the .jar file? (Apologies, I am completely new to this, so obviously I am doing something wrong but I just don't see how). Is there a console command I can run to check versions?

    And yes, it always works for admins but never users. I attempted a completely new Permissions file where I replaced the general.spawn with iMonster.User just in case it was a spacing issue and saved, but it doesn't work. The other Permissions DO work, so I don't know why iMonster isn't. I am editing it in Notepad, because when I use Notepad++ with spaces replacing tabs it actually makes all my yml files NOT work for some fool reason. =/
     
  9. Offline

    ZeroDPS

    @lawless314 let me upload a version that might help us a little...give me about 15 minutes
     
  10. Offline

    lawless314

    Thank you so much. :)
     
  11. Offline

    ZeroDPS

    ok attached to this message is version 1.7 all i added was a command to help trouble shoot the problem.

    once you have it loaded and restart the server just type

    /iMonster and tell me what it tells you

    please and thank you
     

    Attached Files:

  12. Offline

    lawless314

    There's nothing attached to your message?
     
  13. Offline

    ZeroDPS

    sorry should be there now
     
  14. Offline

    lawless314

    iMonster is running - no permission check yet
    iMonster is configured to use Permissions
    Permissions says you DO have iMonster.User
    Permissions says you are in the group Admins

    This also worked on another character who was in Default, and said in group Default.

    Okay...it's working now, but only when we kill with swords. I have Reward-Kills-With-Bow: true but it isn't rewarding bow kills. (It had rewarded Admins previously for bow kills).

    I had RewardKillsWithBowDisabledMessageEnabled: false - is that supposed to be true?
     
  15. Offline

    ZeroDPS

    i just created that bow bug (somehow i pulled up an older version of the source code), but its fixed, just re-download the 1.7 zip and replace the jar

    i had
    onEntityDamagedByProjectile

    instead if

    onEntityDamageByProjectile

    >.<
    --- merged: Feb 15, 2011 2:28 AM ---
    let me know if it is working ok for you now, about to head out for valentines day soon and want to make sure i don't leave you hanging
     
  16. Offline

    lawless314

    Sorry, yea, it's working great now. Thank you!
     
  17. Offline

    enkryptor

    How can I implement a fine for neutral monsters? I added the code:
    Code:
    Pig-Coin: -1
    Pig-Coin-Max: 0
    Pig-Coin-Percent: 100
    Pig-Drops: ""
    
    Cow-Coin: -1
    Cow-Coin-Max: 0
    Cow-Coin-Percent: 100
    Cow-Drops: ""
    
    Chicken-Coin: -1
    Chicken-Coin-Max: 0
    Chicken-Coin-Percent: 100
    Chicken-Drops: ""
    but it doesn't work, although reward works ok
     
  18. Offline

    ZeroDPS

    im sorry, this is iMonster so i only check for monsters, no cows pigs or chickens

    if this is something enough people want i could add it though
     
  19. Offline

    enkryptor

    I think that'll be fun — a reward for dangerous mobs and a fine for peaceful ones.
     
  20. Offline

    mattekure

    In terms of flexibility, I think I would want the peaceful mobs in as well, so please, add the cows, pigs and chicken.
     
  21. Offline

    Novemberman

    hi i find this mod really interesting but cant seem to get money out of the mobs
    i did as posted above and i get this

    iMonster is running - no permission check yet
    iMonster is configured to use Permissions
    Permissions says you DO NOT have iMonster.User
    Permissions says you are in the group Admins

    so where do i get imonster.user ? and also i fail at permissions hehe

    any and help would be welcome also i am really new to this so go easy on me :)
     
  22. Offline

    th3sarg

    @Novemberman

    You need to add:

    Code:
    - 'iMonster.User'
    to the Permissions config.yml it is also case sensitive so make sure the "U" is uppercase.

    Hope that helps.
     
  23. Offline

    kaos havoc

    Well, you would go to your Pluign/Permission folder and add the line

    - "iMonster.User"

    under the default: account so that it trickles up to the rest.
     
  24. Offline

    Novemberman


    i have that already in there........
     
  25. Offline

    th3sarg

    @Novemberman

    Are you using double or single quotes?
     
  26. Offline

    kaos havoc


    groups:
    Default:
    default: true
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    permissions:
    - 'general.spawn'
    - 'BetterShop.user.*'
    - 'repairshop.repair'
    - 'iMonster.user'

    that is mine, you need to use single qoutes unlike what I had shown you, and you can see I have more mods as well.
    Also, is there any errors when you start up your server ? perhaps you have a syntax error in the file somewhere else and it can't load.
     
  27. Offline

    Novemberman

    i have single quotes
    Code:
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'iMonster.User'
                - 'iConomy.*'
    
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admins:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'

    and as for errors not that i noticed the server runs well its just when i kill mobs i don's receive any cash


    EDIT : ok in the console i see this message

    imonster for iConomy version 1.7 is enabled!
    Permission plugin detected - you must have imonster.user
     
  28. Offline

    cvpcs

    I was wondering does this overwrite the default drops for monsters? Such as if I set Creeper-Drops: "", then do creepers not drop gunpowder anymore, or are the drops supplementary to the default ones. Also, if the defaults are overwritten, any idea what the default items/chances are for each? It might be nice to include that in the provided config.yaml
     
  29. Offline

    kaos havoc

    No, you still get normal drops, PLUS whatever you set in the config file. Kinda nice huh :D
    --- merged: Feb 15, 2011 9:39 PM ---
    I had that too before I added the iMonster.User, did you /reload or restart after you added that to your default group ?
     
  30. Offline

    cvpcs

    hooray! then i don't need to worry about my mob trap suddenly not working >< lol
     
  31. Offline

    kaos havoc

    Nope, and btw, when using mob traps it is also nice to have the 'DropChest' plugin. That way all your drops from the trap will gather automatically. I think it only works for single chests at the moment. I don't think you get money from a mob trap though, I believe you will only get money for sword or arrow kills. You probably arleady knew that though.
     

Share This Page