[Request] Very Simple Hunger Games Arena Plugin

Discussion in 'Archived: Plugin Requests' started by hawkfalcon, Mar 22, 2012.

  1. Offline

    hawkfalcon

    Awesome, that will be great;D just warp the players all with one command.
     
  2. Offline

    travja

    Probably won't be done until Monday
     
  3. Offline

    zecheesy

    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
     
  4. Offline

    travja

    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

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

    zecheesy

    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
     
  6. Offline

    hawkfalcon

    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.
     
  7. Offline

    travja

    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.
     
  8. Offline

    bwinkl04

    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.
     
  9. Offline

    travja

    I really need your help if you are willing, I am still kind of a newb myself. I don't know how I would tie in sign shops or that kind of stuff. All I can really do is what I have done. And I think I have figured out the warp thing.

    K... Running into HUGE problem, it's not liking PlayerMoveEvent for some reason... And it will no longer freeze tributes either... Other than that things are going smoothly...

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

    StevasaurousREX

    Can you put the source somewhere? I would love to try and help with this, I am new to coding so it wont be instant but I'm learning fast.
     
  11. Offline

    travja

    StevasaurousREX
    I might be able to... Almost done. Add me on Skype: travja4 we'll talk.

    Other than that, I have fixed the bug and so far all the new features including the warpall are working. Just need to add it for all 24 tributes. Then I will get going on the reward configuration. Sorry for the delay everyone. Hope to have everything working by Friday!
     
  12. Offline

    GoldenWrapper

    I have a suggestion. Maybe make it like MobArena so mods don't have to be on to start it? Maybe like people can do /ha join and then it would wait until 24 (or a custom amount) of people are in. Then when it had 24 (or the custom amount) people in, they would be teleported to the podiums, and it would count down and lock the players in place until it counted down to 0.
     
  13. Offline

    travja

    I could do the auto warp but I don't know I could do the countdown thing...
     
  14. Offline

    acuddlyheadcrab

    Hey I'm the dev of another Hunger Games plugin (the one HawkFalcon was talking about earlier), and I may be willing to help. I'm more interested in getting the plugin done than having it belong to me. Cause I want to play HungerGames on my server too lol.

    Would you be willing to start a dev team to discuss this? Or I could just give my suggestions on how to handle things.
     
  15. Offline

    travja

    We could set that up... Add me on skype: travja4
     
  16. Offline

    GoldenWrapper

    Good idea you two. Tell me when you're done!
     
  17. Offline

    travja

    K, I think all the tributes warping to their specific spots works now, just now need to do it for all 24 then add reward config

    Everything almost done, having a little trouble with configuring reward...

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

    TripleXPenguin

    Hunger Games is where my plugin comes in handy :D

    You should probably try and get your players to use SpoutCraft. I just uploaded my SpoutTitle plugin yesterday that hides player nameplates so other players cant see other players unless they see the actual character. Though SpoutTitle uses commands to enable and disable the nameplates If you are interested I could give you the custom version I made for my server that automatically enables the hidden nameplates as soon as they join the server.
     
  19. Offline

    travja

    Dunno, What I really need is a way to configure the reward...
     
  20. Offline

    TripleXPenguin

    What do you mean by configure the reward? Like just read a reward from the config and have it give the player that?
     
  21. Offline

    travja

    Yeah, it's having huge problems...
     
  22. Offline

    hawkfalcon

    ;/ maybe forget about reward for now and get a beta out on dev?;D
     
  23. Offline

    travja

    hawkfalcon
    I can go without the reward for now... Still just a tiny bit of coding (finish the /ha warpall command) and then to tackle reward configuration.
     
  24. Offline

    nighteyes604

    I saw one of your threads for the reward, if you still need help let me know I'll try and help :p .
     
  25. Offline

    travja

    YES, I really need your help... I just can't get the configurable reward to work!
     
  26. Offline

    nighteyes604

    I looked at the pastebin you posted, here's what I think is wrong without looking too in-depth into it: line 33 you reference the DeathListener class. Line 330 is in the DeathListener class and it references the config (config.getInt("Reward_ID")... etc). The problem is that you access that code without creating the config (that's line 34).

    So I would try switching lines 33 and 34 of your code and see if that works :p .
     
  27. Offline

    travja

    K, I'll try in about an hour and a half.. BBL!

    K
    Tried doing that but it still gives an error but does generate the config.

    I really don't know how to get this working :'(

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

    GoldenWrapper

    Any update?
     
  29. Offline

    travja

    Could release without reward configuration later today. Is that OK with everyone?
     
  30. Offline

    GoldenWrapper

    Yes. Please.
     

Share This Page