Hello!
I have successfully disabled inflicting damage through OnEntityHealthChange with a simple CSharp script on my private server for friends.
Now I would like to have a system which enables dueling between two players. Yet my knowledge and experience is not enough for coding a system like this.
Here goes:
- Player #1 wants to duel Player #2
- Player #1 types "/duel Player #2" (players must be close -- in radius of 50 meters?)
- Player #2 gets a popup for either confirming or declining
- If 'Confirm', a broadcast is made and both players are able to inflict damage to each other.
--- Duel has a timeout of X minutes (which can be set in script)
- Upon death of any of two players, a broadcast is made and both players are now invulnerable to attacks again.
--- Duel timeout is zeroed upon death of any of two players.
* Asking for duel to a player who is already dueling must be checked.
* Duel popups should have a timer to prevent popup spam.
Thanks in advance!
Reign of Kings Duel plugin
Discussion in 'Plugin Requests' started by Xevon, Oct 28, 2015.