12.11.2009, 00:09
If you don't know where to start, then I recommend you don't try scripting it yet; instead get a pencil and paper and write down exactly how you want it to work. Once you have done that you will have a set of smaller problems to solve as opposed to one big one, so it should be simpler, clearer and more easy to make. Here is what I mean:
By doing this and making sure it works how you want it to you will probably end up with a better end product than if you just start trying to code it.
Код:
Player 1 types /duel [id] > if it is a valid ID a message will be sent to Player 2 saying that Player 1 wants to duel him and that he must type /acceptduel or deny duel > Player 2 will either type: /acceptduel > ...... > if it is not a valid ID, send Player 1 saying that it is not and to try again. : /denyduel > ...... : nothing at all > ......