WIP - Pvp NPC

All development of pixel art, maps and other graphics.


Post Reply
alastrim
Novice
Novice
Posts: 139
Joined: 02 Jun 2009, 12:19
Location: Brasil

WIP - Pvp NPC

Post 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.
User avatar
yourmistakes
Knight
Knight
Posts: 695
Joined: 05 Dec 2009, 06:08
Location: North Korea
Contact:

Re: WIP - Pvp NPC

Post 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
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: WIP - Pvp NPC

Post 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.
Former programmer for the TMWA server.
alastrim
Novice
Novice
Posts: 139
Joined: 02 Jun 2009, 12:19
Location: Brasil

Re: WIP - Pvp NPC

Post 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
alastrim
Novice
Novice
Posts: 139
Joined: 02 Jun 2009, 12:19
Location: Brasil

Re: WIP - Pvp NPC

Post 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?
Post Reply