Display an HTML file to the player
This is what I came up with to display an HTML file to the player on command. It's set up as a [beginner command which displays Data\Beginner.html (included) but the script can be easily modified to be triggered by any command and read any file.
Once the script is installed, the HTML file it links to can be updated without a restart of the server.
Simple, I know, but I didn't see any other way to do this, nor any way provided by the default scripts already.
Installation:
Move the Beginner.html file to your server's Data directory and the BeginnerCommand.cs script to the appropriate scripts directory. (Mine is in "_Custom\Alari - Public\BeginnerCommand" =) {0} in the HTML is replaced with your server command prefix.
Usage:
Type [beginner in-game to view the beginner text. (This really is 'beginner' text in the sense of "How do I move around?" "How do I interact with objects?" etc) Please note that some of the text may be specific to my shard, for example, I'm setting agressive monsters to AlwaysMurderer so they show up red to players, and 'helpmenu' and 'helpinfo' are custom scripts on my shard. Some editing may be required.
If you think of anything else a beginner to UO may need to know, please post it here. =)
Known issues: I had to use "( ? )" instead of "< ? >" in the Beginner.html because the latter didn't show up right in UO. Not even doing < and > worked in UO.
This is what I came up with to display an HTML file to the player on command. It's set up as a [beginner command which displays Data\Beginner.html (included) but the script can be easily modified to be triggered by any command and read any file.
Once the script is installed, the HTML file it links to can be updated without a restart of the server.
Simple, I know, but I didn't see any other way to do this, nor any way provided by the default scripts already.
Installation:
Move the Beginner.html file to your server's Data directory and the BeginnerCommand.cs script to the appropriate scripts directory. (Mine is in "_Custom\Alari - Public\BeginnerCommand" =) {0} in the HTML is replaced with your server command prefix.
Usage:
Type [beginner in-game to view the beginner text. (This really is 'beginner' text in the sense of "How do I move around?" "How do I interact with objects?" etc) Please note that some of the text may be specific to my shard, for example, I'm setting agressive monsters to AlwaysMurderer so they show up red to players, and 'helpmenu' and 'helpinfo' are custom scripts on my shard. Some editing may be required.
If you think of anything else a beginner to UO may need to know, please post it here. =)
Known issues: I had to use "( ? )" instead of "< ? >" in the Beginner.html because the latter didn't show up right in UO. Not even doing < and > worked in UO.