Jump to content

[Share]PvP Event(Semi auto).


Recommended Posts

Hi guys. I decided to share a new event engine i created. It took me a lot of time with tons of tests, but i think i completed it. Let me explain you the event:

 

If admin wants, he can press //warnallplayers, to warn all players that event is about to begin, with a html that is in data/html/pvp/warning.html. When admin presses //startregistrations, all players will be able to press .registerpvp, to join the event, or they will be able to go speak with the npc with type L2PvpEventManager to register. Players can remove their participation only if they are not in a match, by pressing .leavepvp, or simply by speaking to L2PvpEventManager and removing their participation. They can also press .infopvp or speak to the npc to see information about the event. When 2 players have participated, no more can participate, and admin is able to press //nextmatch so the next match can begin. After he presses //nextmatch, those 2 players are frozen(paralized), and after 10 seconds they are teleported to pvp spot(s). After they are teleported to their pvp spot(s), they lose all buffs, targeting with other non participated players is blocked(for non participated players too), and after 10 seconds they are unparalized and begin to fight. The fight lasts 3 minutes. After 3 minutes passed, the system checks and finds the player that has died, and it rewards the winner. After, it teleports them back to where they were, and sets their name color to white again(forgot to say that they get color name too). After the player list is cleared, and players are able to join again, and admin can press //nextmatch again. If he wants the event to stop, he can press //stopregistrations. L2PvpEventManager's html file is in: data/html/pvp/idofyournpc.html.

 

Some notes:

- Everything is configurable.

- The event is created 100% by me.

- The Semi auto thing stands for //nextmatch command. If you are a bit experienced java dev, just check nextMatch() method, and you'll understand ;).

- Everything is tested and working.

 

Fixed errors:

- Report them so i can fix them.

 

NOTE: In the core diff, there is also voiced commands code, because i coded it on aCis rev. 75, and they don't exist there. So i added them. In the dp diff, i create also an npc with id 65535, as L2PvpEventManager.

Here:

CORE: http://www.4shared.com/file/w1gsxcsD/PvP_Event.html Password: Anarchy

 

Have fun!

 

P.S I am Anarchy. So don't say leecher or Anarchy shared it.

Link to comment
Share on other sites

awsome man really good job and nice event, maybe can tell how long it take to you to do it?

Hmm... When i code i don't really have sense of time, so i think more than 4-5 hours with the tests (95%). :D

Link to comment
Share on other sites

Greate  , gj nice idea and work as i see in code.I will test it later and i will feedback  ;p

Actually

Everything is tested and working

, But feedback is always welcome :) Thanks.

Link to comment
Share on other sites

core code is not working

anywayz why its not auto i mean admin must press //nextmatch

better after 3 minutes next match began auto

It's not working? Did you test it or just say that? On what pack did you add it? Also give more info, do you mean you have eclipse errors?

Link to comment
Share on other sites

It's not working? Did you test it or just say that? On what pack did you add it? Also give more info, do you mean you have eclipse errors?

i tested it on freya core give me error when i apply patch in eclipse

Link to comment
Share on other sites

i tested it on freya core give me error when i apply patch in eclipse

Oh god. First of all, it is coded on interlude, so as you can understand, you can't just apply a patch on different chronicle. You have to add it manually. Actually you have to 'adapt' it manually. Also you must change 3-4 things. I could adapt it, but not now.

 

P.S I hate Freya... :D

Link to comment
Share on other sites

anywayz why its not auto i mean admin must press //nextmatch

better after 3 minutes next match began auto

 

Simply create new task for it.

Link to comment
Share on other sites

Simply create new task for it.

Yeah that could be done too. But anyway, i think i'll update it in auto event. And now it has errors, i forgot to put checks if match ends in a tie.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...