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

    STiLLEN

    hey can you accually place more than one item posiblity?

    like 10% chance of porkchops
    20% chance of coal
    5% diamond
    5% chance of golden apple
    60% chance of money
    ???
     
  3. Offline

    Codisimus

    yes you can do all of that in one PhatLoot except for the 60% chance of money, you can only do 100% chance of a certain range of money. Let me know if you need an example of how to set this up.
     
  4. Offline

    guile2912

    Can't wait for the 670 to come up, my first dungeaon is ready ! :D
    Thank you Codisimus for your work :)
     
  5. Offline

    Codisimus

    @Minecrafta2z
    @Carnes
    @Beatkidz
    @snatch182
    @LanToaster
    Its been a while but im back, large update here, should fix any previous problems.

    @overlordror sorry, collective loot editing is not yet available in game
    @xchronox0 sorry, hopefully ill add damage values soon
    @crazydog I made a better fix with ~, and it will automatically convert _ to ~ so after a day or to of having this released i will release another to take out the converting, (bc it will continue to convert Usernames)
    tested against 677


    fixed this issue, I also took the [Inactive] out of the title (since im back and wont be gone again anytime soon) I hope I didn't violate any rules by doing that

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

    STiLLEN

    Thanks very much for your reply, and I would really appreciate if you showed me an example. :)
     
  7. Offline

    Codisimus

    i noticed that all the percentages add up to 100, there are two ways to make loots.

    collective - makes one (can be set to more) rolls and each roll you have 10% chance to get pork chop, 20% chance of coal 5% chance to get diamond... but each roll will only give you one of these. With this method you will always receive one item (unless you edit the config to a different number

    individual - each item has its own roll. first rolls for porkchop and there is a 10% chance you will get it, next it rolls for coal (20% chance you'll get it), then another new roll for diamond (5% chance to get it)... this method allows you to potentionally receive all (or none) of the items

    does this make sense? which type are you thinking of doing?
     
  8. Offline

    STiLLEN

    Oh.. I see :) I was going to go for collective. But in 1 roll cant you get lucky and the box gives you 2 or 3 items at once? Is that possible? if not its ok to go with the collective, sounds very good :)
     
  9. Offline

    Codisimus

    Well that idea would be more like individual. but you can set the number of collective loots to 3, then you would get 3 items everytime (maybe 3 of the same item)
     
  10. Offline

    guile2912

    Hello,
    Thanks again for your work Codisimus.
    We are running BK 677 and installed your laste version.
    We also have the iconomy sustem provided by Essential

    Getting money in the loot does not work, items do works.
    But we have these errors in the console :
    Code:
    19:42:20 [GRAVE] Could not pass event PLAYER_INTERACT to PhatLoots
    java.lang.IllegalStateException: Start block missed in BlockIterator
    at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:169)
    at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:243)
    at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:278)
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:86)
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getTargetBlock(CraftLivingEntity.java:112)
    at PhatLoots.PhatLootsPlayerListener.onPlayerInteract(PhatLootsPlayerListener.java:259)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:208)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:477)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375) 
    Thank you very much
     
  11. Offline

    Codisimus

    this doesn't support essential economy, I've been having trouble getting it to connect
     
  12. Offline

    snatch182

    Hi there, mine setup of chest:

    #Fri Apr 15 17:12:10 UTC 2011
    NumberOfCollectiveLootItemsRecieved=1
    ResetType=user
    Chests(RestrictedUsers)=203,62,56,~
    CollectiveLoots=
    ResetTime=30'1'1'1
    IndividualLoots=35,13,100,~

    bug: item respawn every ~5 minutes...
     
  13. Offline

    Codisimus

    can you show me wut it looks like after you loot it
     
  14. Offline

    snatch182

    What do you mean? I'm just looting it (13 pieces of wool) than the chest is empty and after few minutes there is a 13 wool again.
     
  15. Offline

    Codisimus

    does Chests(RestrictedUsers)=203,62,56,~ change after looting it?
     
  16. Offline

    snatch182

    nope...
     
  17. Offline

    Codisimus

    ok thats the problem... ill find out why its doing that
     
  18. Offline

    Minecrafta2z

    Still seem to be having the same problem its really odd, I have made around 6 loots and it saves the first 3 but the rest just don't seem to stick after a server restart? The .prop files are full then after restart no values are set anymore? Really hope I can do something to fix this as we love the plugin on our server! Thanks for all the help and the great plugin!
     
  19. Offline

    Codisimus

    hmm... post your save file?
     
  20. Offline

    Minecrafta2z

    The whole map you mean codisimus? Or Phatloots save?
     
  21. Offline

    Codisimus

    the phatloots.save
     
  22. Offline

    Minecrafta2z

    Sorry our server provider does not alot for downloading :( , When i look at the phatloots.save i see ALL of my saved loots! But when i open their .properties files all i get is

    #Sat Apr 16 10:10:35 CDT 2011
    NumberOfCollectiveLootItemsRecieved=1
    ResetType=user
    Chests(RestrictedUsers)=
    CollectiveLoots=
    ResetTime=never
    IndividualLoots=

    Before server restarts they are all filled out and loots are working after reset they clear...Except for the first three loots they always seem to stick. I'm lost and pretty noob at all this, thanks again for helping me out!
     
  23. Offline

    Codisimus

    no errors are displayed?
     
  24. Offline

    Minecrafta2z

    Nope none that i can see anyway?
     
  25. Offline

    Codisimus

    Last edited by a moderator: May 12, 2016
  26. Offline

    BioRage

    Odd.. I tried your "test" commands, and followed them exactly,

    It ends up creating correctly, but when I right click, or on my test account noting happens, it opens like a normal chest.

    Any ideas?
     
  27. Offline

    beastsniper

    I have a problem with it. In my server i set up a chest with phatloots but when someone opens it its just like a normal chest they don't get anything no money or items
     
  28. Offline

    Codisimus

    save file? maybe ill hop on your server sumtime when im not busy
     
  29. Offline

    beastsniper

    my save file just says "help" and my server isn't up much because i'm still working on it and i run it on my own computer which i got taken away >_> so i use the main computer which i don't get to use much but if you text me or message me i can tell you when its up just ask for my number if you want
     
  30. Offline

    Codisimus

    then there should also be a help.properties file... wuts in that?
     
  31. Offline

    esiao

    Hello, i have a problem (BIG)
    The plugin works (i think) but :
    - I'm OP
    - I have the permissions rights

    And i have the commands list with /loot but no one works i haven't permissions to do that...

    Here's my permissions file
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Vagabond:
            default: true
            info:
                prefix: '&f'
                suffix: '&f'
                build: false
            inheritance: null
            permissions:
            - essentials.depth
            - essentials.getpos
            - essentials.afk
            - essentials.list
            - essentials.help
            - essentials.rules
            - essentials.compass
        Villageois:
            default: false
            info:
                prefix: '&9'
                suffix: '&f'
                build: true
            inheritance: null
            permissions:
            - essentials.depth
            - essentials.getpos
            - essentials.afk
            - essentials.mail
            - essentials.mail.send
            - essentials.list
            - essentials.help
            - essentials.rules
            - essentials.msg
            - essentials.tpaccept
            - essentials.helpop
            - essentials.portal
            - essentials.compass
            - essentials.signs.disposal.*
            - essentials.protect.alerts
            - -essentials.item
            - -essentials.tp
            - iConomy.acces
            - iConomy.payment
            - iConomy.rank
            - iConomy.list
            - iConomyChestShop.shop.use
            - iConomyChestShop.shop.sell
            - iConomyChestShop.shop.create
            - lockette.private
            - lockette.create.*
            - factions.participate
            - stargate.use
            - mcmmo.commands.ability
            - mcmmo.ability.*
            - mcmmo.skills.*
            - mcmmo.item.chimaerawing
            - gastronomic.player.checkhunger
            - gastronomic.player.checkfood
            - icoland.select
            - icoland.edit
            - icoland.info
            - icoland.buy
            - icoland.sell
            - falsebook.blocks.*
            - ecoCreature.Creature.*
            - bonuses.*
            - dungeonreward.use
            - pvpreward.getreward
            - pvpreward.givereward
            - phatloots.use
        Larbin:
            default: false
            info:
                prefix: '&8'
                suffix: '&f'
                build: true
            inheritance:
            - Villageois
            permissions: null
        Penumbra:
            default: false
            info:
                prefix: '&e'
                suffix: '&f'
                build: true
            inheritance:
            - Villageois
            permissions:
            - war.player
        Sage:
            default: false
            info:
                prefix: '&a'
                suffix: '&f'
                build: true
            inheritance:
            - Villageois
            permissions:
            - war.player
        Vandale:
            default: false
            info:
                prefix: '&b'
                suffix: '&f'
                build: true
            inheritance:
            - Villageois
            permissions:
            - war.player
        Souverain:
            default: false
            info:
                prefix: '&3'
                suffix: '&f'
                build: true
            inheritance:
            - Villageois
            permissions:
            - factions.create
            - war.player
        Protecteur:
            default: false
            info:
                prefix: '&d'
                suffix: '&f'
                build: true
            inheritance:
            - Villageois
            permissions:
            - iConomy.admin.*
            - gastronomic.admin.sethunger
            - war.*
            - mcmmo.tools.*
            - worldedit.*
            - -worldedit.clipboard.cut
            - -worldedit.reload
            - -worldedit.generation.sphere
            - -worldedit.generation.cylinder
            - -worldedit.superpickaxe.area
            - -worldedit.superpickaxe.recursive
            - -worldedit.brush.sphere
            - -worldedit.brush.cylinder
            - logblock.*
            - lockette.*
            - essentials.*
            - dungeonreward.*
            - pvpreward.admin
            - phatloots.info
            - phatloots.name
            - phatloots.make
            - phatloots.link
            - phatloots.add
            - phatloots.remove
            - phatloots.unlink
            - phatloots.delete
            - phatloots.time
            - phatloots.admin.list
            - phatloots.admin.reset
        Mage:
            default: false
            info:
                prefix: '&c'
                suffix: '&f'
                build: true
            inheritance:
            - Protecteur
            permissions:
            - gastronomic.admin.*
            - factions.manageSafeZone
            - worldedit.*
            - icoland.*
            - citizens.*
            - delayedstop.*
            - factions.*
            - npc.*
            - stargate.*
    users:
        TheKiller609:
            group: Mage
        esiao:
            group: Mage
        NicZ:
            group: Mage
        Guinta:
            group: Protecteur
        OoUndead:
            group: Protecteur
        OrrLLyoN:
            group: Protecteur
        Vateli:
            group: Souverain
        Evocatys:
            group: Penumbra
        Vanaleth:
            group: Villageois
        Polpopolitan:
            group: Penumbra
        Emonix:
            group: Penumbra
        martin73:
            group: Penumbra
        Breci:
            group: Penumbra
        Cinderion:
            group: Penumbra
        MissFighter:
            group: Penumbra
        Bisougai:
            group: Penumbra
        Ariolas:
            group: Penumbra
        Missfighter:
            group: Penumbra
        demjay:
            group: Sage
        blackskullfire:
            group: Villageois
        guigui38v:
            group: Sage
        Dreicc:
            group: Villageois
        Tetroxis:
            group: Sage
        Tsubasa_Kuromura:
            group: Villageois
        Teyandee:
            group: Sage
        Neyhlerua:
            group: Larbin
        Gau111:
            group: Larbin
        DarkBigBang:
            group: Larbin
        Cradhel:
            group: Villageois
        Antkiller21:
            group: Sage
        Astor:
            group: Larbin
        Linking:
            group: Larbin
        Haosha:
            group: Larbin
        Handersen:
            group: Larbin
        tikst:
            group: Vandale
        Arteil:
            group: Villageois
        psykopulsar:
            group: Villageois
        howran:
            group: Vandale
        derados:
            group: Villageois
        shinenryu:
            group: Villageois
        gallanos:
            group: Villageois
        bwapa:
            group: Villageois
        switchon:
            group: Villageois
        pedrossis:
            group: Villageois
        captipriest:
            group: Villageois
        Ultra_Jericho:
            group: Villageois
        stulhu:
            group: Villageois
        Kizder:
            group: Villageois
        nezio37:
            group: Villageois
        mchyavel:
            group: Villageois
        howrab:
            group: Vandale
        black:
            group: Villageois
        Aoditores:
            group: Villageois
        Alkolique:
            group: Villageois
        Astor49:
            group: Villageois
        rafulefou:
            group: Vagabond
        nycothyne:
            group: Villageois
        pl92260:
            group: Larbin
        Akamente:
            group: Villageois
        rayns:
            group: Villageois
        nicothyne:
            group: Villageois
        gabyvador:
            group: Villageois
        LightXdragon:
            group: Larbin
        bloodjaw:
            group: Larbin
        erathistene:
            group: Villageois
        erathostene:
            group: Villageois
        OoKalea:
            group: Villageois
        weyser:
            group: Larbin
        guigeekauger:
            group: Larbin
        knockeer:
            group: Larbin
        Simel_Ervilliers:
            group: Villageois
        killmehill:
            group: Villageois
        Perfectonanan:
            group: Villageois
        trytry96:
            group: Larbin
        donovan51:
            group: Villageois
        Eldorio:
            group: Larbin
        mamieblue123:
            group: Larbin
        Scrat7:
            group: Larbin
        relonnor:
            group: Larbin
        Mortete6:
            group: Villageois
        Simel_Ervillers:
            group: Villageois
        darkloros:
            group: Villageois
        Bibi21:
            group: Larbin
        Sworth:
            group: Mage
        gourangalol:
            group: Villageois
        Luluz:
            group: Larbin
    
     

Share This Page