Shazzy

Member
Shazzy submitted a new resource:

Town Crier Advanced - advance town crier

I know everyone probably has this and I have had it so long I do not remember who wrote it...probably one of you guys back on RunUO.
I love this town crier. You can put your own messages in and it makes a news.txt file. You can edit the new, update, you have a gump to change the message speed, random or not, active or not.
A crier stone which is non movable and players can not see when double clicked will give you the basic gump.
I get crier stone which goes in your backpack and then after...

Read more about this resource...
 
there's an issue with that: each restart towncrier stops. Must be deserialized.

To fix replace this

Code:
public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			switch ( version )
			{
				case 0:
				{
					m_Custom = reader.ReadBool();
					m_Random = reader.ReadBool();
					m_Delay = reader.ReadTimeSpan();
					this.Frozen = reader.ReadBool();
					m_Stone = reader.ReadItem() as TownCrierStone;
					m_Active = reader.ReadBool();
					m_Timer = new SpamTimer( this, m_Delay );
					m_Timer.Start();

					break;
				}
			}
		}
 
Last edited:
there's an issue with that: each restart towncrier stops. Must be deserialized.

To fix replace this

Code:
public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			switch ( version )
			{
				case 0:
				{
					m_Custom = reader.ReadBool();
					m_Random = reader.ReadBool();
					m_Delay = reader.ReadTimeSpan();
					this.Frozen = reader.ReadBool();
					m_Stone = reader.ReadItem() as TownCrierStone;
					m_Active = reader.ReadBool();
					m_Timer = new SpamTimer( this, m_Delay );
					m_Timer.Start();

					break;
				}
			}
		}
[doublepost=1482800537][/doublepost]I mave never had that problem it works all the time
 

Active Shards

Donations

Total amount
$80.00
Goal
$1,000.00
Back