Inactive [RPG] PhatLoots v0.9.1 - Chests with randomly generated money/items [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 19, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    PhatLoots - Chests with randomly generated money/items:
    Version: 0.9.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions, LWC
    Download Page

    This plugin is a must for dungeons! Players open a linked chest and are rewarded with money (within a designated range) and randomly generated items that are predefined.

    Make a PhatLoot
    /loot make test
    Add some loot values
    /loot add test money 1 25 (looter will get 1-25 coins)
    /loot add test 322 1 10 (looter has 10% chance of getting a golden apple)
    Set a reset time
    /loot time test 1'6'45'30 (looter can loot the chest again after waiting
    1 day, 6 hours, 45 minutes, and 30 seconds.)
    Link a chest
    /loot link test (you must be targeting the chest you wish to link)

    Collective Loots allows you to setup a chest to give a certain amount (1 by default) of 'rare' items. So a chest may give the user a chance to loot a Gold Block (50%), Diamond Sword (30%), or Diamond ChestPlate (20%) yet the user will only get one of these items.

    Features:
    • Chests can give items, money, or both
    • Support for wools/dyes
    • Set different reward values for different chests.
    • Link multiple chests to one PhatLoot (this way you don't have to reenter all the items for every chest)
    • Player must wait a certain amount of time in order to loot the chest again (configurable)
    • Different reset times for each PhatLoot
    • AutoLoot option
    • Easily configure setting, loot values, reset times, and more
    • Make chests global (when looted by one person, everyone must wait to loot it again)
    • or user (each individual must wait the specified time between looting chests)
    • Uses iConomy, BOSEconomy or Essentials to give users money.
    • Uses LWC to auto protect PhatLoot chests (false by default)
    • Permissions to limit players from being rewarded and using commands
    • Included in CraftBukkitUpToDate for easy updating (make sure you come check the changelog if somthing is not working right)
    Save Files and Properties:
    Show Spoiler

    config.properties
    Code:
    #Tue Mar 29 14:04:05 EDT 2011
    // user - when a player loots a chest they must wait the specified time to loot again
    // global - when looted by one person, everyone must wait to loot it again (first person there gets the loot)
    DefaultResetType=user
    
    // if true, when you link a chest it will automatically make it public with LWC (so noone else can claim it)
    AutoLockPhatLootChestsWithLWC=false
    
    // default number of items you get from CollectiveLoots (only applies if CollectiveLoots is not blank)
    DefaultNumberOfCollectiveLootItemsRecieved=1
    
    // amount of time before the chest will reset "Days'Hours'Minutes'Seconds"
    // change to "never" in order for it to never reset
    DefaultResetTime=0'0'5'0
    
    phatloots.save
    Code:
    test1   // a list of all your Phat Loots by name
    test2
    
    test.properties
    Code:
    #Tue Mar 29 16:20:45 EDT 2011
    //the number of items you get from CollectiveLoots (only applies if CollectiveLoots is not blank)
    NumberOfCollectiveLootItemsRecieved=1
    
    // user - when a player loots a chest they must wait the specified time to loot again
    // global - when looted by one person, everyone must wait to loot it
    ResetType=user
    
    // list of linked chests (you should never have to edit this) "x,y,z,NameOfLooter,TimeLooted,_"
    Chests(RestrictedUsers)=-155,65,-93,Codisimus,88'16'13'16,_
    
    // "itemID,NumberOfItems,PercentOfLooting,_" Should add up to 100%
    CollectiveLoots=13,1,75,_14,1,10,_15,1,15,_
    
     // amount of time before the chest will reset "Days'Hours'Minutes'Seconds"
     // change to "never" in order for it to never reset
    ResetTime=0'0'0'20
    
    // "itemID,NumberOfItems,PercentOfLooting,_"
    IndividualLoots=money,0,2,_13,1,100,_14,1,23,_15,1,30,_
    


    Commands:
    • /loot make [Name] - Creates PhatLoot
    • /loot link [Name] - Links target chest with PhatLoot
    • /loot add coll[1-5] [Item] [Amount] [Percent] - Adds collective loot to target chest's PhatLoot
    • /loot add [Item] [Amount] [Percent] - Adds individual loot to target chest's PhatLoot
    • /loot add money [Low] [High] - Adds range of money that can be looted
    • /loot remove coll[1-5] [Item] [Amount] [Percent] - Removes collective loot from PhatLoot
    • /loot remove [Item] [Amount] [Percent] - Removes individual loot from PhatLoot
    • /loot unlink [Name] - Unlinks target chest with PhatLoot
    • /loot info [Name] - Lists info of PhatLoot
    • /loot name - Gives PhatLoot name of target chest
    • /loot reset [Name or all] - Resets PhatLoot restricted list
    • /loot delete [Name] - Deletes PhatLoot and unlinks chests
    • /loot list - Lists all PhatLoots
    Permission Nodes:
    • phatloots.use - Needed for group/player to receive loots
    • phatloots.info
    • phatloots.name
    • phatloots.make
    • phatloots.list
    • phatloots.admin.reset

    Changelog:
    Old Versions, ChangeLog, + Source can be found at Download Page
    Show Spoiler

    Version 0.9.1 (7/16/2011)
    • Added color support for all customizable messages
    • Fixed Collective loots
    Version 0.9 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Added AutoLoot option
    • Improved add command
    • Added targeting chests for adding loot
    • Added item name support (rather than item ID)
    • Added saftey check so you can't add invalid loots
    Version 0.8.1 (6/13/2011)
    • Fixed OP permissions
    Version 0.8 (6/12/2011)
    • Cleaned up code/fixed errors
    • Added map support
    Version 0.7.4 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.7.3 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.7.2 (6/3/2011)
    • Added Essentials econ support
    Version 0.7.1 (5/4/2011)
    • Updated to iConomy 5
    • Few various fixes
    Version 0.7 (4/29/2011)
    • Fixed save/loss of data errors
    • Added support for wools/dyes
    • Fixed Double Chest errors
    • Added in game command for setting timer restriction
    • Added in game command for setting collective loots
    • Added option of multiple collective loots
    • Added option for setting resetType to Interval
    • Added prevention from looting out of ID-range items
    • Fixed delete command
    Version 0.6 (3/31/2011)
    • Fixed issue with users with "_" in name
    • Improved multiworld support
    • Fixed various bugs
    Version 0.5.1 (3/31/2011)
    • Fixed CollectiveLoots
    • Works with build #612
    Version 0.5 (3/30/2011)
    • Updated to craftbukkit build #602
    Version 0.4 (3/29/2011)
    • Redid save format
    • Added config file
    • Added double chest support
    • Added Collective loots
    • Added Auto protection using LWC (false by default)
    • Added a reset time ("Days'Hours'Minutes'Seconds" or "never") (0'0'5'0 by default)
    • Added global/user restriction (user by default)
    • Added antigrief feature, if chest is full PhatLoots will make room for new loot
    Version 0.3 (3/26/2011)
    • Added block protection for PhatLoot chests
    Version 0.2 (3/19/2011)
    • Fixed unknown command spamming chat
    • Fixed no Economy message spamming
    • added /loot info and /loot name (phatloots.info phateloots.name)
    Version 0.1 (3/18/2011)
    • Initial Release
     
  2. Offline

    Codisimus

    ya but you need a different percentage for each item in the chest... unless your saying only load one at a time
     
  3. Offline

    dak393

    The way I was saying to do it was have a percent for each drop category then if it selects that category it chooses one of the items there or a set of items (its getting harder and herder to implement in game the more I think about it XD)
    ex:
    Code:
    Chest1 {
      Raredrop (<chance> 10) {
        choice1 = (diamond, 1)
        choice2 = (diamond, 2: iron,1)
        choice3 = (gold,10)
        choice4 = (diamond_chest, 1)
        }
      MedDrop (50) {
        (coal, 10: iron, 5: gold, 1)
        (dirt, 64)
        (0, 500)
        (0,0)
        }
    ect...
     
  4. Offline

    Codisimus

    Ya I see... well let me code wut I'm thinking and if you think it code be easier to use then I will fix it
     
  5. Offline

    MationMac

    I have to try this sometime soon!
     
  6. Offline

    Makraiz

    Will this work with build 531? I'm using a couple older plugins I don't really want to give up.
     
  7. Offline

    Codisimus

  8. Offline

    xchronox0

    Would it be possible to have one replenish over time rather than per player?
     
  9. Offline

    Codisimus

    hmm good idea ill find out
     
  10. Offline

    irishcereal

    First of all I love this mod.

    Second of all, like above post stated it would be awesome to have a time triggered reset per chest.

    Great work.
     
  11. Offline

    KrazyBonez

    How do i target a chest? I tried hitting it first, opening it, holding it in my hand, and loot still says it must target a chest when i am!!

    Nevermind, i had to step back a few places from the chest, maybe you should put that in your first post? .....
     
  12. Offline

    Codisimus

    Sumtimes it seems like your looking at it when you are actually targeting a torch or ladder or sumthing... maybe that was happening?
     
  13. Offline

    Mukrakiish

    Got an error here.

    Phat 0.2
    CB 556 (RB)

    Code:
    java.lang.ArrayIndexOutOfBoundsException: 2
    
    at PhatLoots.PhatLoots$1.run(PhatLoots.java:92)
    
    Exeception in Thread "Thread 1-164" 
    the 1-164 being it kept spamming from 1 through 164.

    The error started when someone assigned value to a chest then went to open it and it didn't have anything in it.
     
  14. Offline

    Codisimus

    save file?
     
  15. Offline

    Mukrakiish

    Code:
    dungeon;322!322!322!;
    408:55:-177;408:55:-177;408:55:-177;
     
  16. Offline

    Codisimus

    where you have '322!' it should be three different numbers ex. 322,1,20!
    i am guessing he entered
    Code:
    /loot add dungeon 322 1 20
    instead of
    Code:
    /loot add dungeon 322,1,20
     
  17. Offline

    Mukrakiish

    Aaaah...I see.
     
  18. Offline

    Codisimus

    perhaps ill fix it so you can do it either way
     
  19. Offline

    Mukrakiish

    Ya, that might be handy...I'll bet that someone will pull the same stunt on the server again since its fairly common to use spaces to break up arguments.
     
  20. Offline

    Codisimus

    ya im not why i did it the way i did
     
  21. Offline

    xchronox0

    Alright thanks. :)
     
  22. Offline

    snatch182

    @Codisimus, thank you for recomending this plugin for me, but after a quick setup I found a pretty hudge bug so I cant use it atm.
    The bug is when I make this loot chest at mine server as example with wool. And now someone can take his wool and than fill the chest with any crap like dirt. That will cause no wool for next who would like to take his wool.
     
  23. Offline

    Codex Arcanum

    Can you add an option to make the chest teleport you, like it did by default in dungeonreward? The reason I ask is, if I reset loot every day, I don't want people reaching the end of the dungeon before they log off, getting the loot, then logging in the next day to get the loot again...
     
  24. Offline

    Codisimus

    i guess i could make it so you cant put things in the chest
    hmm i didnt really want to have to do this but you make a good point, ill think a bout it after i get the reset working
     
  25. Offline

    snatch182

    Anything what will make it griefpoof will be appreciated, plz make it asap :D
     
  26. Offline

    Codisimus

    This will be available within 2 hours

    Added block protection for PhatLoot chests for v 0.3

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  27. Offline

    Asymetrikon

    I have a Problem with this Plugin. I can make a Loot with the /loot make Command. But when i try any other Command it always says that i dont have Permission to do that. I use Permissions and i am the Admin. All Commands of the other Plugins i have work fine. I looked up the properties File. But you cant change much there. So what am I doing wrong?
     
  28. Offline

    Codisimus

    sorry my mistake, redownload v0.3 and it should be fixed
     
  29. Offline

    Asymetrikon

    Hmmm i can create a Proper Lootchest now. But when i set my Status to User to Test it it says that i dont have Permission to recieve Loot. I listed the - 'phatloots.use' Node under Users. The same Messages comes when i try the same whith Adminstatus.
     
  30. Offline

    Codisimus

    ok there fixed again, redownload
     
  31. Offline

    Asymetrikon

    Great works fine now. Thanks for the quick support. :)
    Awesome Plugin by the way. Keep up the good work. Ill have a look at DungeonRewards too.
     

Share This Page