The Chest Hunt

Discussion in 'Archived: Plugin Requests' started by MinopolisMc, Nov 18, 2012.

?

Do you like the idea of this?

  1. Yeah

    75.0%
  2. Not really

    25.0%
  1. Offline

    MinopolisMc

    [chest] The Chest Hunt [chest]

    Imagine one chest with awesome loot in it, a lot of players and only one goal; getting the items.

    How I'd like things to work
    An admin sets a certain chest with /chesthunt setchest wich contains random items specified in a config.
    He types /chesthunt start and an announcement in the chat notifies the players that the hunt just started.
    Now a player can type /chesthunt join to join the hunt after the loot.
    If he did that, the chest should be marked on every map he carries so that he could find it.
    If he types /chesthunt leave though, this mark should dissapear.

    Commands
    For players
    /chesthunt - Shows all commands
    /chesthunt join - Joins a hunt
    /chesthunt leave - Leaves a hunt
    For admins
    /chesthunt setchest - Sets the hunted chest
    /chesthunt start - Starts the hunt
    /chesthunt cancel - Cancels the hunt

    Ideas for permissions
    chesthunt.attend -- /chesthunt join & /chesthunt leave
    chesthunt.setchest -- /chesthunt setchest
    chesthunt.start -- /chesthunt start
    chesthunt.cancel -- /chesthunt cancel

    Open things
    - How the admins should set a chest (right-click/stand on it/look at it)
    - How the announcement in the chat when the hunt starts should look like (3-6 chat lines would be good, a configurable message too)

    When I'd like it by
    As soon as somebody has time to make it, sooner would be better though


    I personally think this is a great idea, if you've got any suggestions/ideas, feel free to post them in the comments.
     
  2. Offline

    EnvisionRed

    This seems pretty cool, I might make this. I'll need to do some research in the bukkit code to see how I can mark something on a map first, though.
     
    MinopolisMc likes this.
  3. Offline

    FluR0

    Great idea, Currently coding this.
    It should be done in a day or so.
     
  4. Offline

    FailBulder

    Get treasurehunt, it dose the same thing as this
     
    midnight483 likes this.
  5. Offline

    MinopolisMc

    Awesome :)

    Nah, that one randomly spawns chests somewhere on the map and you don't have the "chest-mark-on-map" feature.
     
  6. Offline

    FluR0

    I cant figure out how to draw onto a map using world x, y coordinates, I think another coder is more suited to making this plugin.
     
  7. Offline

    MinopolisMc

    If you put a map in an item frame, it shows up on other maps as a mark.
    Maybe you could use that?
     
  8. Offline

    Noutrech

    Problem is: Player with x-ray find it in a click.
     
  9. Offline

    MinopolisMc

    Orebfuscator?
     
    Codex Arcanum likes this.
  10. Offline

    EnvisionRed

    Finally figured out how to mark an area on a map. The rest will be easy :)
     
  11. Offline

    MinopolisMc

    Nice! :)
     
  12. Offline

    EnvisionRed

    Well it's going decently well but there are a few logic things I've got to figure out. Right now I've got it marking a red square around where the chest is so there's still some element of a hunt, not just who gets to the "x" first. But I've run into the issue of plotting it on all maps regardless of scale so give me some time on that.
     
  13. Offline

    MinopolisMc

    Okay, how long do you think will you need?
     
  14. Offline

    EnvisionRed

    I'm almost ready for testing.

    Everything works perfectly except for the renderer, which I've pinpointed the issue for. Should be working (alpha) tomorrow. Sorry for the long delay, usually I get plugin done much faster.

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

    Latzafs

    HOW?!
    Although I'm new to programming but I still haven't figured it out.
    Figured it out, there's a specific class for this. Wow, I'm blind.
     
  16. Offline

    EnvisionRed

    Sorry this is taking so long. Everything works except for the renderers (the most important part) so I'll just keep working on that and I'll keep you updated.

    Edit: Almost working, I am REALLY close to finishing.
     
  17. Offline

    MinopolisMc

    Oh, no problem. I'm more like happy that you make this :)
     
  18. Offline

    EnvisionRed

  19. Offline

    MinopolisMc

  20. Offline

    EnvisionRed

    Jar? What jar?

    Jk, I added it to the post.
     
  21. Offline

    MinopolisMc

    Oh god this is SO cool!! I love you so much :D
    Diamonds to you my lord! [diamond][diamond][diamond]
     
  22. Offline

    EnvisionRed

    Get the new one from bukkit as soon as it's up. That version has it offset the square randomly so the chest isn't always in the exact center of it.
     
  23. Offline

    Latzafs

    Envision. Curse you and your speed of completing plugins.
     
    MinopolisMc likes this.
  24. Offline

    MinopolisMc

    Found a bug:
    • The red square will not appear on maps that didn't contain the spot of the chest at the moment you joined the hunt, which causes that...
    1. New generated maps while playing will not have the square
    2. If the map generates the land with the chest while searching for it, the square will not appear
    Note: You can easily fix this by just leaving the hunt and joining it again but players won't get that.


    My idea to fix that:
    Take all items from players while they are playing and give them back when the hunt ends or they leave it.
    Give them a map that is large enough to contain the point of the chest which produces the red square.
    Make them not able to pick up items or drop them.
    Take the map back after the hunt ends or the player leaves it.


    By the way, here are some ideas if you need any ;)
    1. An announcement every 30 seconds during the hunt
    -----------------------ChestHunt------------------------
    These players are the closest to the chest right now:

    1. Latzafs -- 99m
    2. CoughBaconCough -- 170m
    3. EnvisionRocks -- 200m
    ------------------------------------------------------------

    2. A certain command performed by the console when the player wins the hunt with a variable for the players name (e.g. /give <player> 357 64)

    3. That only the player who wins the hunt is allowed to take the items from the chest.
     
  25. Offline

    EnvisionRed

    Will do 1 and 2, for 3 I'll have it give the player a configurable amount of minutes to get the stuff out of the chest and then it's fair game.

    Also planning on making multiple chesthunts possible, thoughts on that? Can you take further replies to the dev.bukkit page, please? dev.bukkit.org/server-mods/chesthunt
     

Share This Page