[Request] Very Simple Hunger Games Arena Plugin

Discussion in 'Plugin Requests' started by hawkfalcon, Mar 23, 2012.

  1. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    K, Trying to rig a setup where the op only has to type /ha Start but it's having problems!
  2. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  3. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    commands are
    /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
  4. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  5. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  6. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    K, I'm trying to figure it out
  7. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  8. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    xD seems pretty simple to me
  9. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  10. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The concept is simple, the coding not so much.
  11. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

    This post has been edited 1 time. It was last edited by hawkfalcon Mar 31, 2012.
  12. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  13. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  14. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ... Don't really know how they do it, plus they have different APIs in the plugin itself.
  15. Offline

    mdijkhuizen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you could make it that the winner gets an iconomy reward that would be great, permissions support would be awsome as well.
  16. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How much would 10 diamonds sell in iConomy in your server, you could always have them cash it in for a money reward.
  17. Offline

    mdijkhuizen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    true, but how i was planning it was that every faction pays x amount of money to enter, the winner gets the pot.
  18. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    K, I don't know the iConomy API well... So I don't know I could implement that...
  19. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Having a few problems with that code...
  20. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    nvm I am getting it to work now, just have to set up all 24 tributes
  21. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Awesome, that will be great;D just warp the players all with one command.
  22. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Probably won't be done until Monday
  23. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  24. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  25. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    OK, individual player warp points is proving to be much more complicated than I thought.......
  26. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Don't know I can do it anymore, but I will start work on the reward configuration
  27. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  28. Online

    hawkfalcon BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  29. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  30. Offline

    bwinkl04

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

Share This Page