-------------------------------------------
NexgenSendToWebsite112 by {LSN}Meindratheal
-------------------------------------------

Note: There is also a standalone version of this, which runs without Nexgen. However,
it is not as updated as this, nor as optimised, so I would advise you to use this one.

-----------
What Is It?
-----------
SendToWebsite enabled you to add extra say commands to link to Internet pages.


-----------------------
Installing from scratch
-----------------------
1. Ensure your server is properly shut down.

2. Copy the following files to your server's System folder:
    NexgenSendToWebsite112.u

3. Open your server's INI file, and add the following lines to [Engine.GameEngine]:

    ServerActors=NexgenSendToWebsite112.STWMain

   Make sure that the ServerActor is added AFTER the main Nexgen actor
   (Nexgen112.NexgenActor).

4. Enter the details for each command, using the correct format (see Format)

5. Save the changes to the INI file(s) and restart the server.


--------------------------------
Upgrading from SendToWebsite_v05
--------------------------------
1. Ensure your server is properly shut down.

2. Copy the following files to your server's System folder:
    NexgenSendToWebsite112.u

3. Open your server's INI file, and add the following lines to [Engine.GameEngine]:

    ServerActors=NexgenSendToWebsite112.STWMain

   Make sure that the ServerActor is added AFTER the main Nexgen actor
   (Nexgen112.NexgenActor).

   Please note that you should NOT add a ServerPackages entry for this mod. It was
   necessary in the standalone version because of the way it worked, but the
   functionality is built into Nexgen, so clients do not need this package.

4. Remove this line from [Engine.GameEngine]:

    ServerPackages=SendToWebsite_v05

    If you ran it as a ServerActor, also remove this line:

    ServerActors=SendToWebsite_v05.STWActor

    Otherwise, remove this from your server's mutator line:

    SendToWebsite_v05.STWMut

5. Find the section in your server's INI file titled [SendToWebsite_v05.STWMut].
   If Nexgen saves to your server's INI file, rename the section to:

    [NexgenSendToWebsite112.STWConfigSys]

    Otherwise, copy it into your Nexgen.ini, renaming the section to:

    [NexgenSendToWebsite112.STWConfigExt]

    (You can remove the secion in the server INI now).

6. Save the changes to the INI file(s) and restart the server.


----------------
List of Commands
----------------
These are the currently supported commands.

!STWHelp                  Shows the commands you specify.

Of course, the extra commands you add in will be supported.
If they weren't, this would be useless :D

Your custom commands can either be called by saying them as written in the
configuration, or by typing 'mutate STW <yourcommand>' in the console.


------
Format
------
If you run this mod once, it will create a new section at the bottom of your
server's INI file, or your Nexgen.ini (depending on your settings). Edit this to your liking.

Generic Settings:

    bShowHelpMessage=True        Shows a message saying 
                                 'say !STWHelp for a list of available commands.'
    bShowCommandsOnJoin=True     Shows the messages for all commands with bAdvertise
                                 set.

Per-Command Settings:

    bAdvertise[0]=1              Set to 0 if you don't want this to be shown anywhere,
                                 e.g. for an admin-only forum.
    bHideCmd[0]=0                Set this to 1 if you don't want the command to be
                                 broadcast. For example, if you have an admin forum
                                 with !A as the command, and bHideCmd is 1 for this
                                 then no-one else will see the !A message.
    Message[0]=                  The help message. Make sure it tells users what the
                                 command actually is (e.g. 'Type !F to visit the forum')
                                 This can be left blank if bAdvertise is 0 for this command.
    LongCmd[0]=                  The long version of the command (e.g. !Forum). Must be
                                 preceded by an exclamation mark (!)
    ShortCmd[0]=                 The short version of the command (e.g. !F). Must be
                                 preceded by an exclamation mark (!)
    TargetURL[0]=                The actual web address to link to (e.g. www.UnrealAdmin.org)

You can have up to 8 different command lists, and you may have multiple commands linking to
the same website.

WARNING: Although conflicts are checked for and warned about for custom commands, there is no
such checking for Nexgen commands or similar. Therefore, it is up to you to make sure commands
don't conflict with other mods.


-------
Contact
-------
You can find me on the UnrealAdmin.org and UT99.org forums, under the name
'Meindratheal'. I am not the best at writing UnrealScript, since I can only
do it in my spare time, but I am willing to try to make a mod for people,
so if you have any reasonable requests then ask away!


-------
Credits
-------
Daan 'Defrost' Scheerens: First and formemost, for creating such a brilliant
                          server controller, and for leaving the code intact.
                          I have learnt most of my coding from Nexgen, so I
                          thank you. I have used a few bits and pieces from
                          Nexgen, notably the say command detection.
iloveut99:                The code you showed me was helpful in writing this.
The UnrealWiki:           The Offline Wiki has been invaluable for me, however
                          old it may be. It has been the other key element in
                          my UScript learning. Thanks go out to all contributors!
The UnrealAdmins forum:   I wrote this for you guys, and I think it might actually
                          be quite useful to people. Nice idea!

Other: You may re-compile the NexgenSendToWebsite112 package,
as it is serverside only. Source code is included. If you do
recompile it, then a) make a post in the forum thread on UnrealAdmin
saying what you changed (it might be a major bug, it might just
be preference) b) make sure you give it a new, non-generic name,
and c) keep me credited!