Sunshine said:
I have treid to read through all the pages but still could not find the answer to my quesiton
how can I make it where knives chat system and the jail system work together ?
Is there a way to delete the robe once they are released? I do not want players collecting them
and the smoldering boots
I know players love to collect things and those 2 sound like good choices for some
The instructions for the Chat integration are in the JailCommand.cs script...
PHP:
// Call this from your chat system command handler to have public
// chat monitored.
// For instance, to add monitoring to Knives chat 2.0
// Search for:
// string text = Filter( e.Mobile, e.ArgString );
// and insert this line directly after it (uncommented):
// Xanthos.SpeechCop.Jail.CheckChatSpeech( e.Mobile, text ); // <- xanthos Jail speech change this line only
For example, for Knives specific public chat integration, open PublicChat.cs in the Knives chat Commands folder. Look for...
Code:
string text = Filter.FilterText( e.Mobile, e.ArgString );
if ( text == "" )
return;
in the OnChat event and add the following immediately after...
Code:
Xanthos.SpeechCop.Jail.CheckChatSpeech( e.Mobile, text );
To remove the robe, look for the following in the FreeThem routine of JailCommand.cs...
Code:
// Restore their access level
JailHammer hammer = player.FindItemOnLayer( Layer.OneHanded ) as JailHammer;
if ( null != hammer )
{
player.AccessLevel = hammer.PlayerAccessLevel;
hammer.Delete();
}
Following this, add...
Code:
Robe robe = player.FindItemOnLayer( Layer.OuterTorso ) as Robe;
if ( null != robe )
{
robe.Delete();
}
one thing you will want to do though is make the robe unmovable, so they don't take it off before they exit... to do this, change this line (also in JailCommand.cs)...
Code:
Item robe = new Robe(); robe.Hue = JailConfig.RobeHue; robe.Name = JailConfig.RobeTitle; player.AddItem( robe );
to...
Code:
Item robe = new Robe(); [B]robe.Movable = false;[/B] robe.Hue = JailConfig.RobeHue; robe.Name = JailConfig.RobeTitle; player.AddItem( robe );
Now for the boots, my solution on my shard was to just remove them
Just comment out the following if you want to do this...
Code:
Boots boots = new Boots( 1 );
boots.Name = "Smoldering boots of " + player.Name;
boots.MoveToWorld( player.Location, player.Map );
Hope that helps.