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

    did you try with - *?
     
  3. Offline

    beastsniper

    EDIT: Never mind I got it but i'm not sure about the money I got the item to work

    EDIT: money isn't working =(
     
  4. Offline

    esiao

    That was the first one i try and it doesn't work.
    I wrote phatloots.*
     
  5. Offline

    BioRage

  6. Offline

    Codisimus

    Sorry, i meant to tag you as well when i said this
     
  7. Offline

    BioRage

    If your free, let me know, you can hop onto my server,.. or maybe we can figure it out here :eek:
     
  8. Offline

    LucidLethargy

    I just lost 98% of my phatloot information (1 file, the first one, is in tact), which is the equivalent to about 7 hours of planning and running around stocking chests. This sucks pretty hard, man... The loot id's are all still there, but the plugin has taken the liberty of erasing almost all of the specific loot items I took the hours to configure. This happened today, and I originally installed and started adding content 2 days ago - just between the times I back the plugin folder up completely, which is every 3 days or so for testing purposes.

    I used to think this plugin was a godsend, but now i'm thinking quite the opposite... I do not suppose there is any chance of recovery, but if there is do share.

    CB: 677
    Phatloots: 0.6 (current)

    Please be aware of this bug, all who use this plugin, and be very careful to backup often. It is not fun to experience this error firsthand without that.

    And for the dev: Please consider a backup system (like Towny had, and may still have) or perhaps placing these save files into the world folder directly like Elevator's does. (Most of the smart admins out there have backup systems for this.)

    P.S. Aside from this everything works perfectly, including iConomy money rewards - I have no idea why so many people are struggling, but one can guess it's 100% their own error in those cases.
     
  9. Offline

    Codisimus

    I am really sorry about your loss of data, This was happening on one server and we thought it was the provider. I will get to the bottom of this. Let me know if you have any suggestions for ways to more efficiently setup PhatLoots. I will let you know when this is fixed and again I appologize. I will do anything to help (perhaps setup your loots for you by typing them myself and then hoping on your server to link the chests)
     
  10. Offline

    LucidLethargy

    Oh, also just in case you were for some reason not aware... there has always been an error on login for me from this plugin:

    Oh sure, no need to apologize at all - this is a free service you're providing this community after all - and in general it's one of the most useful plugins i've encountered out of the 33 or so I am currently hosting. It's allowed me to provide some amazing quests simply through word of mouth, as uquest is still a random generation and I enjoy the dynamics of focused goals from specific providers - like iobookcase and citizens npc's. I will simply get around to re-installing them and this time backing them up to prevent this situation should it occur in the future. Thankfully these are all still fresh in my mind, so I imagine the process will go MUCH faster than the initial installation and thought process.

    Some details in case they help:
    <> Complete plugin list for my server, including versions: http://www.paradigne.com/index.php?cID=69
    <> Server Host: hostedgameservers.com
    Edit: <> Oh, I'm also using SimpleServer!
    <> Configuration Details - has not been changed since initial installation:

    #Fri Apr 15 19:53:42 EDT 2011
    DefaultResetType=user
    AutoLockPhatLootChestsWithLWC=true
    DefaultNumberOfCollectiveLootItemsRecieved=1
    DefaultResetTime=never

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

    Codisimus

    Thanks for the info, I will let you know as soon as I fix this and test it out. And I really don't mind helping you recreate the PhatLoots.
    @Minecrafta2z does any of this look similar to what you have?

    can i see your properties files after trying to add money?
    Ill do sum testing.
    I can get on tomorrow when I'm not so busy

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

    beastsniper

    Code:
    #Tue Apr 19 01:26:35 PDT 2011
    NumberOfCollectiveLootItemsRecieved=1
    ResetType=user
    Chests(RestrictedUsers)=-228,64,13,~
    CollectiveLoots=
    ResetTime=99'99'99'99
    IndividualLoots='money',10,50,~
    
     
  13. Offline

    LucidLethargy

    Annnd It just erased my files again after another planned restart...

    I waited until the very end to backup everything, but unfortunately the server restarted after an hour of work and erased the files without me realizing. This is just not my day... Anyway, the error is clearly more common than I EVER thought it was at first... twice in about 12 hours and after planned restarts that were all successful. That uh... yeah.

    Edit: Oh, and for some reason that first save is still doing perfectly fine. Should I re-download and re-install the plugin, perhaps?
     
  14. Offline

    esiao

    I don't know why but it works now ^^
     
  15. Offline

    Codisimus

    make it money,10,50,~ instead of 'money',10,50,~
    EDIT: Also you can set ResetTime=never
    it seems i found the problem, will update soon
     
  16. Offline

    beastsniper

    I set it to that but i can't get on my server now that beta 1.5 is out. do you know if that is a bukkit thing or is something wrong with my server?
     
  17. Offline

    Codisimus

    bukkit needs to be updated, last time I think it took a little over 4 hours. Then I will have to update this for 1.5 as well
     
  18. Offline

    beastsniper

    I will keep an eye out for the update I love this plugin along with your others your welcome to come on my server when ever you want

    I run it on my own so its not always going to be up and also it has 2 IPs one for my dads house and one for my moms

    204.210.145.189 - Tuesday, Thursday, every other weekend
    70.101.178.218 - any day thats not for the other one
     
  19. Offline

    Codisimus

    I believe this issue is caused by Simple Server's automated restarts (that is when the data is deleted correct?) I think i found a way around this by not trying to save during this restart. I won't be updating until 1.5 though
     
  20. Offline

    LucidLethargy

    Fair enough, i've been looking to get away from simpleserver as well - i'll be using a bukkit automated restart soon. Until then i'll sit tight!
     
  21. Offline

    Codisimus

    well it seems to be working fine now but I can't test it myself.
     
  22. Offline

    Filip Weiss

    Does it work in CB 714?
    I'll get this error:
    Log (open)

    2011-04-24 18:24:46 [SEVERE] For input string: "DeadCorpse" loading PhatLoots v0.6 (Is it up to date?)
    java.lang.NumberFormatException: For input string: "DeadCorpse"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:449)
    at java.lang.Integer.parseInt(Integer.java:499)
    at PhatLoots.PhatLoots.setRestrictedUsers(PhatLoots.java:373)
    at PhatLoots.PhatLootsSaveLoad.loadPhatLootsFromFile(PhatLootsSaveLoad.java:68)
    at PhatLoots.PhatLootsMain.onEnable(PhatLootsMain.java:59)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:584)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  23. Offline

    BioRage

    Love the plugin BUT I got requests and need your answers on stuff

    Number 1
    - Can someone sit there and FARM the Chest all day? even if there's a cool down, how can we prevent that?
    - Can you make it so it log's AND make it so only a user once per "X" hours can only loot those chests?

    Number 2 [Request]
    - You made it so the Chest's auto fill, can you make it so dispensers also auto refill? I.E. Arrows?


    Thanks

     
  24. Offline

    Tealk

    hi i become this message
    2011-04-25 17:06:38 [SEVERE] For input string: "115'15'35'1" loading PhatLoots v0.6 (Is it up to date?)
    java.lang.NumberFormatException: For input string: "115'15'35'1"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:458)
    at java.lang.Integer.parseInt(Integer.java:499)
    at PhatLoots.PhatLoots.setRestrictedUsers(PhatLoots.java:373)
    at PhatLoots.PhatLootsSaveLoad.loadPhatLootsFromFile(PhatLootsSaveLoad.java:68)
    at PhatLoots.PhatLootsMain.onEnable(PhatLootsMain.java:59)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:584)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  25. Offline

    Codisimus

    Number 1 These features are already implemented
    Number 2 No this won't work bc they only resupply when a player punches them. look around, I'm sure sum1 already made a plugin that does this. If not let me know and I'll make it.
     
  26. Offline

    Kalais

    Can you add this feature:
    After a chest has been looted, teleport them to a defined location. This would be great.

    Love the plugin so far. Thanks!
     
  27. Offline

    Bekz

    [SEVERE] For input string: "115'15'35'1" loading PhatLoots v0.6 (Is it up to date?)

    update please.
     
  28. Offline

    Codisimus

    check out my plugin ButtonWarp (previously DungeonReward)
     
  29. Offline

    Kalais

    From the video and description I'm guessing it only gives out money rewards and not actual items?
     
  30. Offline

    Codisimus

    Huge Update! look at the change log, delete your old config file to access new settings

    true but maybe you could use both of these plugins, why do you want players teleported?

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

    Kalais

    I've made a dungeon quest. If they survive to the end they are rewarded with a chest of random goodies. However, I don't want them to stick around and continue looting. If you added the teleport feature it would set me at ease.

    That or adding items to the button which already includes a teleport. I really like that.
     

Share This Page