RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[site command

S

Sephy

Guest
[site command

Plz Im trying to do the [site command to launch the web site. Now i don´t know how can I continue this... plz help me.

Code:
using System;
using Server.Commands;

namespace Server.Scripts.Commands
{
        public class Site
        {
    public static void Initialize() 
    { 
      Server.Commands.Register( "site", AccessLevel.Player, new CommandEventHandler( Site_OnCommand ) ); 
    } 
    public static void Site_OnCommand( CommandEventArgs e ) 
    { 
		from.LaunchBrowser( "http://www.google.com.br" );
 
S

Sephy

Guest
Its better and more faster than this other [ob... and i need this script
 

daat99

Moderator
Staff member
Sephy said:
I dont know how to continue this...
If you don't have something than it can't be better than what you already have.
Use th distro command or atleast look at it to see how to do what you want.
There's absolutly no code in your post that shows that you tried something.
 

twig

Wanderer
Are you trying for a one word command that opens right to your shard's web site? Im guessing an easy way for players to get to your site?
 

twig

Wanderer
Ok.. I liked your idea.. so I redid the script and here it is...

the command would be [Site .. Usable by everyone..
its clearly marked where to edit it for your shard...
 

Attachments

  • SiteCommand.cs
    897 bytes · Views: 21
Thanks Twig..

I appriciate you posting that script Twig, Im sure I will find plenty of good uses for that in the future. Thanks for the effort.

Father Time
 
S

Sephy

Guest
Thanks Twig... i will analise your script and try to understand it
 
Top