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!

[where command ?

sh1ny

Wanderer
[where command ?

I saw it before somewhere, and on some servers. But i did search on the forum and i couldn't find it. Anyone can point me to the code for it (for the [where command ) ? Or to something similar ?
 

satch

Wanderer
[code:1]using System;
using System.Text;
using System.Reflection;
using System.Collections;
using Server;
using Server.Network;
using Server.Targeting;

namespace Server.Scripts.Commands
{
public class Where
{
public static void Initialize()
{
Server.Commands.Register( "Where", AccessLevel.Player, new CommandEventHandler( Where_OnCommand ) );
}

public static void Where_OnCommand( CommandEventArgs e )
{
e.Mobile.SendMessage(11, "I'm at {0} ({1}.{2}.{3})", e.Mobile.Region.Name == "" ? "Unknow" : e.Mobile.Region.Name, e.Mobile.X, e.Mobile.Y, e.Mobile.Z );
}
}
}[/code:1]
 
Top