Page 1 of 1

WIP - Pvp NPC

Posted: 28 Aug 2011, 22:14
by alastrim
Hi,

I would like to ask you for ideas, suggestions and critics about this npc I started. I was thinking about a way to make pvp interesting, so I started experimenting with an NPC that would offer you a chance to create a "challenge".

You would have to inform a value in GP for this challenge, and the players could enter the ring to try to kill you if they pay the same value you defined for the challenge. In the end, whoever wins takes all the money.

Here is the first test version: http://pastebin.com/w2uZa2M0

It still doesn't have the option to give up in the middle of the fight or a timer to avoid people sitting in the ring forever and since there is not a "ring", I improvised with the theater map.

If you have any comments or suggestions of different things to add in this NPC, feel free to write in this topic.

Re: WIP - Pvp NPC

Posted: 29 Aug 2011, 02:43
by yourmistakes
support for team deathmatch and doubles (2v2) or ability to create teams
ability to choose number of lives for contestants
ladder creation ability
capture the flag in some variation

Re: WIP - Pvp NPC

Posted: 29 Aug 2011, 02:46
by o11c
Just looking at the script:

There appears to be no protection from one player setting a challenge and then logging out.

What zeny for giving up, before or after the fight actually starts?

The rest is details.

---

At first I wondered if it is possible to have multiple outstanding challenges at once, but it occurred to me that this is more likely an event that will be pre-planned between the participants.

Re: WIP - Pvp NPC

Posted: 29 Aug 2011, 12:38
by alastrim
In this version you can give up in the middle of the fight: http://pastebin.com/9Svzdbf5

If one player warps out, die or give up, the other person gets the money.

TODO: Set up a fixed time limit for the fight, or give the option for the player that starts the challenge to choose its time limit.

Edit: Forgot to check the possibility of a player starting the fight and "logging out/Dying/Warping out" before someone accepts. Done now: http://pastebin.com/nWT8HDKR

Re: WIP - Pvp NPC

Posted: 30 Aug 2011, 11:52
by alastrim
Any idea on how to implement a "ranking" of the best fighters in a way that it would be impossible for people to climb up by killing their own mules?