The Chest Hunt 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.
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.
Awesome Nah, that one randomly spawns chests somewhere on the map and you don't have the "chest-mark-on-map" feature.
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.
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.
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.
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.
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.
https://github.com/EnvisionRed/ChestHunt Done. dev.bukkit link: http://dev.bukkit.org/server-mods/chesthunt/ A download is on github: https://github.com/downloads/EnvisionRed/ChestHunt/ChestHunt.jar Just in case you don't feel like waiting for the project to be accepted by BukkitDev staff.
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.
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... New generated maps while playing will not have the square 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.
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