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!

[broadcasttotowncrier

Voran

Wanderer
[broadcasttotowncrier

On OSI shards, IGMs (Seers) have the power to make all the towncriers in the world say a message - not the message that appears at the bottom of the screen when you say "News", but an actual spoken thing. I'd like to see something like [broadcasttotowncrier, so you could do:

[broadcasttotowncrier "Hear ye! Hear ye! The town of Minoc is under attack from a horde of ravening pigeons!"
or whatever, and the towncriers would all say that.
 

DustBuster

Wanderer
[code:1]
using System;
using Server;
using System.Collections;
using System.IO;
using Server.Mobiles;


namespace Server.Scripts.Commands
{
public class TownCrierBroadCast
{
public static void Initialize()
{
Register();
}

public static void Register()
{
Server.Commands.Register( "TownCrierBroadCast", AccessLevel.GameMaster, new CommandEventHandler( TownCrierBroadCast_OnCommand ) );
}


[Usage( "TownCrierBroadCast <string>" )]
[Description( "Makes all town criers say the message you tell them to." )]
private static void TownCrierBroadCast_OnCommand( CommandEventArgs e )
{
if ( e.Length < 1 )
{
e.Mobile.SendMessage( "TownCrierBroadCast <string>" );
return;
}

foreach( Mobile m in World.Mobiles.Values )
{
if( m is TownCrier )
{
m.Say( e.GetString(0) );
}
}
}
}
}
[/code:1]
 
Top