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!

[2.0] [Follow

otimpyre

Sorceror
[2.0] [Follow

[follow command Written By "tobyjug(Shango)"->

http://www.runuo.com/forums/showthread.php?t=67341&highlight=follow+command

Edited code
Code:
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Gumps;
using Server.Targeting;
using Server.Network;

[COLOR="red"]namespace Server.Commands[/COLOR]
{
	public class Follow
	{
		public static Hashtable Collection = new Hashtable();
        
        public static void Initialize()
		{
			[COLOR="Red"]CommandSystem.Register[/COLOR]( "Follow", AccessLevel.Counselor, new CommandEventHandler( Follow_OnCommand ) );

Description:
A way to follow players, or other staff, without having to use the .admin menu and keep on clicking Go To or other more inefficient ways of doing so. When you are following someone using the [follow command it moves you to their location every few seconds without you having to do anything. When you have chosen your target it pops up a small gump to show you the name of the person you are following and a button to cancel following them.

Installation:
Download the FollowCommand.zip below.
Unzip the Follow.cs into the Commands folder or any folder of your choosing in your Scripts directory.
Restart your server and you are ready to go.

Usage:
Type [follow in game (Counselor +) and target who you wish to follow.
If the player that you target has a higher accesslevel than you then you will not be able to follow them.
If you are following a staffmember with accesslevel equal to your own and they go invis then you will stop following them, unless you are in their Visibility List in which case you will continue to follow them.
If you or your target go offline then you will stop following them.
 

Attachments

  • [follow.zip
    1.9 KB · Views: 155
Top