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.




  • Posts

    • Good afternoon everyone, we’ll get a couple of strong players in the CP, more details can be found here https://mw2.community/topic/211276-awr-team/  
    • so i bought this crap of the server few years back and i just found it laying around on my pc and i thought i should share it, if i remember correctly this crap has a lot of bugs that people abuse 🙂   https://drive.google.com/file/d/13QWg8pi4BPbGbTmlygZ078LjL6Fb0J2a/view?usp=sharing source   https://drive.google.com/file/d/13QWg8pi4BPbGbTmlygZ078LjL6Fb0J2a/view?usp=sharing system    
    • Error: Unable to access jarfile libs\Geodata_Converter_v01.jar
    • Since last massive leak as explained as 07/09 (notably all development branches), I don't accept anymore financial newcomers that easily. People will have to contribute 100 cookies worth of contributions (bug reports/fixes) as a first step to be accepted as Donator. Free user can join after sharing over 200 cookies out of contributions, compared to 100 cookies before. You can say thanks to RusAcis, and notably his worthless leader, UnleashedForce. The size of users will continue to shrink if more leaks occur, until true helpers only will be left. New prices are as following : Joining price: 200€ + 100 cookies, or 200 cookies This fee has to be paid if you are joining aCis project. Next month, and all other months, you will have to donate only basic monthly donation. Monthly price: 10€ / 10 cookies This fee has to be paid every month. I won't accept any new join fee before the 100 cookies contribution. Your money will be instantly sent back. Also, in the same shape of idea, actual supporters/donators have to be active to stay in sources. It doesn't have to be a particular amount, you just have to share from time to time *anything*. I don't accept anymore silent ppl. Only useful people will be kept.
    • @Kenrix Hello. my friend bought from you the panel and he told me that he haven't recieved yet his product whats going on?.
  • Topics

×
×
  • Create New...