Discussion in 'Plugin Requests' started by hawkfalcon, Mar 23, 2012.
K, Trying to rig a setup where the op only has to type /ha Start but it's having problems!
K, I think it's ready! Test it for me! http://dl.dropbox.com/u/37771664/HungerArena.jar Let me know if anything is missing/don't need!
/ha join - puts you in the game
/startpoint [player] - teleports that player to your exact location and freezes them
/ha start - releases all players
Just feel free to test every nook and cranny!
It should do the following:
- join with /ha join
- teleport with /startpoint [playername]
- let everyone go with /ha start
- Broadcast a message upon player death saying that they were killed by other player with weapon
- Broadcast a message saying that the winner is the victor of the hunger games
- Give the Victor 10 diamond
- Remove players from the playing list when they disconnect
- teleports players to spawn upon logging in
o.o this works, but is there a way that you can make it so everyone can be anywhere until /ha start, and then they are warped to 20+ set start points? Instead of having to move 20 people one at a time?
That makes it a little more complicated... I would have to make it store the location for each player... I think what we have here is good enough. I mean, you are going to have to set where each player would be anyway, wether it be where they are stuck until everyone is in or have you type a command and they are all warped there. So it's the same amount of steps just players will have to be waiting until all others are in the game.
K, I'm trying to figure it out
Why would it need to store the locations of each player? How about when someone says /ha join, it adds their name to a list. Then when /ha start is said, it warps everyone on the list to a bunch of spawn points.
xD seems pretty simple to me
Maybe... Would still have to store warp points, you would have to set the place for each spawn point and then I'm not sure how I would code the rest, I guess I would fetch the data from the config and then it would warp them. Don't know, I'll figure something out.
The concept is simple, the coding not so much.
Have you seen PVP arena? It has it so everyone on /pa join list is warped in to different spawn points after /pa start command;0.
And the github src https://github.com/slipcor/pvparena
... Don't really know how they do it, plus they have different APIs in the plugin itself.
If you could make it that the winner gets an iconomy reward that would be great, permissions support would be awsome as well.
How much would 10 diamonds sell in iConomy in your server, you could always have them cash it in for a money reward.
true, but how i was planning it was that every faction pays x amount of money to enter, the winner gets the pot.
K, I don't know the iConomy API well... So I don't know I could implement that...
Having a few problems with that code...
nvm I am getting it to work now, just have to set up all 24 tributes
Awesome, that will be great;D just warp the players all with one command.
Probably won't be done until Monday
Configurable for the 10 diamonds reward?
When you join, you are stuck at your spawnpoint. When 2 people join, the countdown starts (from 60). Then other people can join in the countdown? ORRR you could have a lobby room and have everyone hit a button/block when they are ready, then they are teled to the spawnpoints. Possibly with a small countdown.
And is it possible to have a rebuilding thing? Like you get the two corner cordinates and type /hg save and when the match is over (with griefing and blocks all over) it will restore BACK to where you typed /hg save
Can't do most of that, I will be able to do the diamond thing but I am adding a command to teleport all tributes to their respective location... So that will make the beginning easier. What it does it you will do /startpoint one - that sets the tele location for where the first tribute will be teleported so /startpoint two and so on. Then you will do /ha warpall and it will tele all of the people that joined with /ha join to their startpoints.
OK, individual player warp points is proving to be much more complicated than I thought.......
Don't know I can do it anymore, but I will start work on the reward configuration
Oh, so you can't do /startpoint one
and the first person to join will go on startpoint one
then the second will go one startpoint two
Dx I have an idea. You set the 24 spawn points, with /ha setspawn 1 or something. Then the plugin takes each spawn point and assigns it to a player on the list of people that joined with /ha join. Or vice versa, when someone joins with /ha join, they are assigned their own spawnpoint. Easier coding probably.
That's actually what I'm doing, the problem I am running into is it needs a place to store the different locations and the methods I am trying aren't really working. The way I have it right now you would have to manually set the spawnpoints in the config.yml the only problem is that you would have to find your coords and then put them in it... Tedious but then you wouldn't have to set them again until you change something.
Just like any warp plugin, you should be able to pull the coords from the player and store the array fairly easily in a .cvs or .txt file. Check out commandbook, all of the warps are stored in a .cvs. As players join, assign then a value between 1 and 24, then on /ha start move each of the players to their respective warps based on the value assigned. They don't all have to warp at the exact same time as you should freeze them at that point for a 20 second countdown, the warps could easily just be part of a simple for-loop. Quite honestly, you could probably fork SK's code for the warp portion and add the for-loop and be done. I am guessing the code you have already written was much more difficult then this.
Another suggestion. use signshops so users can "sponsor" a player. They right click on a sign and it gives an item to the player, and charges the users vault account. Again, you could fork chectshops, or signshops to get the basic code, and add the additional functionality.
Let's not reinvent the wheel, let's use some of the great plugins that are out there and expand their functionality. Like use worldguard for your region protection, and worldedit for the rebuild at the end of a match. You wouldn't even need to fork the code, just write a hook, and make WE and WG a plugin requirement.
I wish I could help you with the coding of this. I am a C++ and VB coder, and JUST started learning Java, so the syntax is still kind of lost on me. hopefully I can be up to speed fairly quick. I love this idea, and would love to see it come to fruition.
I hope you don't think I was stepping on your toes, just trying to be a little helpful.
Separate names with a comma.